New Gramplet: DNA Matches

Hey, I made a new Gramplet (addon) for my own personal use but thought others may find it useful, so I made a couple of PRs for it. It’s called DNA Matches and is supposed to complement the existing DNA Segment Map addon. It’s for the latest stable Gramps version, 5.1.6 (and I’m on Windows 11, but hopefully it works on any supported OS). More info in the PRs.

Any feedback is appreciated. Thanks for reading!

4 Likes

Thanks for contributing! Since 5.2 is in the late phases of beta testing, I’ll give it a try in the Windows beta too.

By the way, the help_url entry for your .gpr.py file will be:
Addon:DNA_Matches
Addon:DNASegmentMapGramplet

It doesn’t exist yet, but that is the reserved spot for an addon with this name. We’ll create a priliminary page for it today or tomorrow.

@nick, I’m still unsure of the process for submitting to the addons-source repository.
It looks like PR 578 is for the 5.1 maintenance and PR 12 is for the Master. From the way GitHub displays the path, it is unclear if the submission is in the core or the addons.

1 Like

Thanks for this gramplet. The navigation is very nice - especially the right click to edit the Association.

Couple observations.

  1. If I have a person with multiple Associations (from different testing companies), and one has a Source but the other does not, it puts 2 people in the list rather than a single person with multiple sources listed. It does the right thing if both Associations have a Source.
  2. If I look for people with no Sources and then add a Source to the Association, it doesnt seem to save the update. If I go to Person and invoke the Association Editor and add a Source, it correctly saves and updates. It seems that invoking the Association Editor from the gramplet does not save any changes.

Have you thought about making a Report with this info? I made one but have not published for others. It is good for offline work.

1 Like

Thank you for the feedback guys!

By the way, the help_url entry for your .gpr.py file will be Addon:DNA_Matches

Ah, sounds good! I made an account on the Wiki but held off on making a page as I wasn’t sure if the addon was all good to go. :slight_smile:

From the way GitHub displays the path, it is unclear if the submission is in the core or the addons.

It is a third party addon, the PR for the addon master was for it to appear in 5.1 listings I believe.

If I have a person with multiple Associations (from different testing companies), and one has a Source but the other does not, it puts 2 people in the list rather than a single person with multiple sources listed. It does the right thing if both Associations have a Source.

Currently if one person has several DNA associations (or one DNA association with multiple sources and different notes) then a person can show up twice or more in the list. This is because I’ve found that different companies seem to produce fairly different results (GEDmatch vs MyHeritage vs Ancestry). I suppose it may be good to check whether the results are exactly the same, and only have one entry in that case. I can definitely explore that. :slight_smile: Not sure how else to avoid having duplicates though while making it clear which results are from which company, but I’m open to suggestions!

If I look for people with no Sources and then add a Source to the Association, it doesnt seem to save the update. If I go to Person and invoke the Association Editor and add a Source, it correctly saves and updates. It seems that invoking the Association Editor from the gramplet does not save any changes.

Interesting, that definitely sounds like something that needs fixing. I’ll look into it. :+1:

Have you thought about making a Report with this info? I made one but have not published for others. It is good for offline work.

I don’t personally really use reports much, so not really, but if you’ve made one that is similar/the same in functionality then I’m sure people would appreciate it being available! :slight_smile:

The fixed width minimums for the columns are troubling. They make the gramplet unsuitable for use in the Right sidebar.

The following capture has the columns at their minimum width. At 690x140, it is larger than the minimum Gramps width.

Maybe the 2 gramplets could be combined into a single Report? Include the DNA segment chart at the top (without the legend in the chart) and have the DNA Matches content at the bottom (with an added color swatch column)

Is there a way to make the gramplet unavailable for use in the right sidebar? I was basing the layout on the Events gramplet which is even wider I believe.

Alternatively, I can reduce the size of the Person and Relationship columns, I just had some rather long names/relationships in there.

Perhaps you could Reduce some labels too?
“Shared DNA” to “Shared”
“Shared segments” to “Count”
“Largest Segment” to “Largest”

and move the Count to after “Largest”

This allows ALL 6 columns to be resized to the width of the label. And have a preference that remembers the user set widths, With different preferences for Sidebar and Bottombar.

Personally I find those labels a little big vague, but I can change “shared segments” to just “segments” and maybe “largest segment” to “largest seg”.

And again, the layout is based on Events, a default gramplet, which is primarily meant to be used on the bottom bar as far as I can tell. The column sizes are fairly liberal there. I think fitting all that info on the sidebar is going to be unsightly even with reduced labels.

I’m also considering adding person IDs as an extra column because it’s possible several people could have the same name/relationship but not be the same person.

Hopefully double posting is allowed, but if not feel free to delete!

DNA Matches is now on version 1.1.0 . In this version I’ve fixed the associations not saving issue, adjusted the column widths to be less wide and added a new column for gramps IDs. In the next version I will try to provide better sidebar support and fix identical duplicates showing up. :slight_smile: Please look forward to it.

I’ve also closed my pull request to the addons repository as someone on GitHub pointed out that a user with write access there can just build the Gramplet from addons-source and commit it directly.

1 Like

Triple-posting for good measure. :sweat_smile:

Alright, version 2.0.0 is now ready. Duplicate DNA matches should be resolved into a single match now. People can still appear multiple times if the match results are different though (as they sometimes seem to be). This version also sees the introduction of a config so that people who wanna use this in the sidebar should hopefully be able to with the right settings.

The config looks a little bit like this:

[hide-columns]
;;id=0
;;largest-segment=0
;;person=0
;;relationship=0
;;shared-dna=0
;;shared-segments=0
;;sources=0

[short-names]
;;largest-segment=0
;;person=0
;;relationship=0
;;shared-dna=0
;;shared-segments=0
;;sources=0

[widths]
;;id=50
;;largest-segment=150
;;person=150
;;relationship=125
;;shared-dna=125
;;shared-segments=155
;;sources=200

Setting configurations to 1 under hide-columns will hide that particular column. I imagine this will mostly be used to hide the gramps IDs, but all of them can be hidden if people like.

Setting configurations to 1 under short-names will switch that column’s label to a short version. The tooltip will also be updated to help explain the short names in case they are not clear.

The final configurations can be used to set the widths of each column.

Testing is wanted, feedback is appreciated!

P.S.: Please don’t edit my own posts after me emyoulation, no offense but I find that a bit rude. :slight_smile:

1 Like

Hi,

that’s a great idea, thanks for this Gramplet!

Just like I implemented a web version of Gary’s DNA segment map Gramplet in Gramps Web (see below), I think it would be nice to have a DNA matches list just like your Gramplet there as well.

Any opinions on where to put this in Gramps Web? Just into another tab in the person view next to Associations?

1 Like

Hi David,

Sounds good to me! I admit I’m not very familiar with Gramps Web as I haven’t used it (yet), so I’m happy to defer to your judgement when it comes to placement. :slight_smile:

Added matches table to Gramps Web

4 Likes

Looks great! Hopefully we can get the extension into the desktop application as well soon. :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.