* Genetic Relationship

Writing and using plugins for Version 5 and above.
Post Reply
User avatar
Jane
Site Admin
Posts: 7782
Joined: 01 Nov 2002 15:00
Family Historian: V6.2
Location: Somerset, England
Contact:

Genetic Relationship

Post by Jane » 05 Feb 2019 17:47

I have been experimenting with a simple plugin to compute genetic relatedness.

It does not yet have a progress bar, so it will take a while if you run in on a BIG file.

It is based on the computations suggested here
https://apps.nolanlawson.com/relatednes ... ator/index
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
David2416
Famous
Posts: 146
Joined: 12 Nov 2017 16:37
Family Historian: V6.2

Re: Genetic Relationship

Post by David2416 » 06 Feb 2019 11:03

Nice, how about a column showing the average centimorgans based on a total 6800? Problem is there is a range of centimorgans actually shared.

User avatar
Jane
Site Admin
Posts: 7782
Joined: 01 Nov 2002 15:00
Family Historian: V6.2
Location: Somerset, England
Contact:

Re: Genetic Relationship

Post by Jane » 06 Feb 2019 11:13

Can you point me to a page for the computation, is it simply 6800 * times the percentage, plus minus an amount?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 1445
Joined: 28 Dec 2005 22:02
Family Historian: V6.2
Location: Cirencester, Gloucestershire
Contact:

Re: Genetic Relationship

Post by ColeValleyGirl » 06 Feb 2019 11:24


User avatar
Jane
Site Admin
Posts: 7782
Joined: 01 Nov 2002 15:00
Family Historian: V6.2
Location: Somerset, England
Contact:

Re: Genetic Relationship

Post by Jane » 06 Feb 2019 11:59

I was hoping for some sort of computable figure, in theory it would be possible to work from the descriptions, but it would be better if the ranges could be computed, as at the moment the plugin takes account of multiple relationships, so for example my husbands "double" cousins come up to 25%.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
ColeValleyGirl
Megastar
Posts: 1445
Joined: 28 Dec 2005 22:02
Family Historian: V6.2
Location: Cirencester, Gloucestershire
Contact:

Re: Genetic Relationship

Post by ColeValleyGirl » 06 Feb 2019 12:08

I think the whole point is that the ranges can't be computed exactly -- or rather they can but the probability varies through the range.

User avatar
David2416
Famous
Posts: 146
Joined: 12 Nov 2017 16:37
Family Historian: V6.2

Re: Genetic Relationship

Post by David2416 » 06 Feb 2019 12:28

The 100% is 6800, then I would expect 50% from each parent, actually Ancestry shows 3421 match for my mother. Have a look at Whoyouaremadeof. Com It's always a range, and you can have more distant direct ancestors who you inherit none from!

User avatar
Jane
Site Admin
Posts: 7782
Joined: 01 Nov 2002 15:00
Family Historian: V6.2
Location: Somerset, England
Contact:

Re: Genetic Relationship

Post by Jane » 06 Feb 2019 12:48

If you want me to add it as a column I need some sort of table to go from the percentage to the ranges. So far I have seen a variety of ranges from different sources for different providers and different tests.

I suspect there is probably an inverse relationship to the percentage size that increases the size of the range but I have not found any examples yet.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
Jane
Site Admin
Posts: 7782
Joined: 01 Nov 2002 15:00
Family Historian: V6.2
Location: Somerset, England
Contact:

Re: Genetic Relationship

Post by Jane » 06 Feb 2019 13:48

Based on the percentages here:
https://thednageek.com/the-limits-of-pr ... using-dna/

This version shows the ranges for the groups over .4 percent. The table controlling the range values is right at the top of the source code if you want to try tweaking it.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
Valkrider
Megastar
Posts: 1106
Joined: 04 Jun 2012 19:03
Family Historian: V6.2
Location: Spain
Contact:

Re: Genetic Relationship

Post by Valkrider » 06 Feb 2019 15:10

Jane

Thanks for this. I tried the first version and it ran fine.

Unfortunately this latest version seems to have a coding bug.
Capture.JPG
Capture.JPG (20.31 KiB) Viewed 1690 times

User avatar
Valkrider
Megastar
Posts: 1106
Joined: 04 Jun 2012 19:03
Family Historian: V6.2
Location: Spain
Contact:

Re: Genetic Relationship

Post by Valkrider » 06 Feb 2019 15:30

Thanks Jane that runs fine.

A very useful plugin for those who have done DNA tests.

User avatar
David2416
Famous
Posts: 146
Joined: 12 Nov 2017 16:37
Family Historian: V6.2

Re: Genetic Relationship

Post by David2416 » 06 Feb 2019 15:41

Really like that latest version, like the ranges. Very useful. Thank you

(A trivial error on the first row showing myself - the min/max don't make sense.)

User avatar
Valkrider
Megastar
Posts: 1106
Joined: 04 Jun 2012 19:03
Family Historian: V6.2
Location: Spain
Contact:

Re: Genetic Relationship

Post by Valkrider » 06 Feb 2019 15:42

Jane

I have found one little gotcha that you may want to consider. One of my close relatives was in fact adopted and has no blood relationship with me. He is recorded as adopted in FH but still shows on the report.

It may be too much work to cope with this more for your information rather than anything else.

User avatar
tatewise
Megastar
Posts: 16863
Joined: 25 May 2010 11:00
Family Historian: V6.2
Location: Torbay, Devon, UK
Contact:

Re: Genetic Relationship

Post by tatewise » 06 Feb 2019 15:52

Trivial comments:
The cmTable needs an entry for root 100% otherwise the Expected CM of 6800 > Max CM of 3672.
The columns for Expected CM, Min CM & Max CM could be wider to show column headings in full.
width=50 works well for all four numerical columns including Relatedness.

I think Colin's comment is valid, and should also cater for Foster children.
Similar complaints are levelled at FH Reports, etc, for not taking such relationships into account, and suggesting blood relationships that don't exist, e.g. Timeline Facts saying Son/Daughter was born... when actually adopted/fostered children.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Jane
Site Admin
Posts: 7782
Joined: 01 Nov 2002 15:00
Family Historian: V6.2
Location: Somerset, England
Contact:

Re: Genetic Relationship

Post by Jane » 06 Feb 2019 16:32

At the moment there is no easy way to access this information, without using Lua to build the relationships, which would be really slow, as you need to check all the linking ancestors of each person looking for Adoption etc.

I'll log a request to be able to only include blood relations in the Relationship function with Calico.

For now I suspect this will at least help with checking the percentages and ranges against actuals.

Relatedness Report.fh_lua
(11.83 KiB) Downloaded 44 times
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
David2416
Famous
Posts: 146
Joined: 12 Nov 2017 16:37
Family Historian: V6.2

Re: Genetic Relationship

Post by David2416 » 17 Mar 2019 08:51

Hi,

just ran the Check Installed Plugins against the Store plugin, and notices the Relatedness report I have is newer that the store version. Not a problem, just mentioning it.

I find the report is very useful in reminding me how much DNA might be shared with any ancestor.
Check Installed Plugins against the Store 20190317.jpg
Check Installed Plugins against the Store 20190317.jpg (39.74 KiB) Viewed 1273 times

User avatar
Jane
Site Admin
Posts: 7782
Joined: 01 Nov 2002 15:00
Family Historian: V6.2
Location: Somerset, England
Contact:

Re: Genetic Relationship

Post by Jane » 18 Mar 2019 10:31

David2416 wrote:Hi,

just ran the Check Installed Plugins against the Store plugin, and notices the Relatedness report I have is newer that the store version. Not a problem, just mentioning it.
Sorted
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

Post Reply