Filter plugin for Y chromosome ancestors?

Hi,

developing a Y chromosome view for Gramps Web, I was puzzled to not find a filter in addons-source that returns all patrilineal ancestors. Or did I not look hard enough? I see in FilterRules2 there are X chromosome ancestors and descendants, mtDNA descendants, Y descendants…

I guess @prculley or @Mattkmmr know best :slightly_smiling_face:

Thanks!

FilterRules2 : Plugin Manager Rulebook Collection

Genetic Genealogy Filter Rule Addons

The following rules are based on the logical rules of genetics, not on comparing DNA data. They are introduced in the “New filter rules for genetic genealogy” thread of the Discourse community support forum.

  • Matrilineal progenitrix of <person>
    Matches the earliest recorded matrilineal ancestor mother.
  • Mitochondrial inheritance of <filter>
    Matches recorded descendants of a filter result following mitochondrial inheritance patterns.
  • Mitochondrial inheritance of <person>
    Matches recorded descendants of person following mitochondrial inheritance patterns.
  • Patrilineal progenitor of <person>
    Matches the earliest recorded patrilineal ancestor father.
  • X-chromosomal ancestors of <person>
    Matches ancestors of <person> following a X-chromosomal inheritance pattern.
  • X-chromosomal descendants of <person>
    Matches descendants of <person> following a X-chromosomal inheritance pattern.
  • Y-chromosomal inheritance of <person filter>
    Matches recorded descendants of a filter result following Y-chromosomal inheritance patterns.
  • Y-chromosomal inheritance of <person>
    Matches recorded descendants of person following Y-chromosomal inheritance patterns.

Pre-Release Rules

  • Descendants of <person> sharing yDNA with each other
    Matches descendants of a sharing yDNA

created a workaround filter to Import and use with FilterParams.

Of course, that doesn’t help with Gramps Web.

<filters>

  <object type="Person">
    <filter name="Patrilineal line" function="and" comment="Set the &lt;Person&gt; using FilterParams will keep the focus in sync.">
      <rule class="DeepRelationshipPathBetween" use_regex="False" use_case="False">
        <arg value="I0000"/>
        <arg value="Progenitor"/>
      </rule>
    </filter>
  </object>

  <object type="Person">
    <filter name="Progenitor" function="and">
      <rule class="PatrilinealProgenitor" use_regex="False" use_case="False">
        <arg value="I0000"/>
      </rule>
    </filter>
  </object>

</filters>