The DNA in an organism 's genome can be analyzed to diagnose vulnerabilities to inherited diseases , and can also be used to determine a child 's paternity ( genetic father ) or a person 's ancestry .