analyze_dna
Analyze DNA matches and Y-DNA haplogroups from Gramps genealogy data. Parse raw 23andMe/Ancestry segment strings into structured segments.
Instructions
DNA match analysis and raw match-string parsing. Writes: parse only.
Actions:
matches -> GET /people//dna/matches; per-match relationship,
segments, common-ancestor profiles and citation-linked notes.
ydna -> GET /people//ydna; Y-DNA haplogroup clade lineage.
parse -> POST /parsers/dna-match with data = the raw DNA match text
(e.g. 23andMe/Ancestry segment blocks); returns parsed segments.
matches accepts raw=true to include the raw segment strings. Matches
are stored as "DNA" associations plus notes; see manage_person/manage_note.
Args: action: "matches", "ydna" or "parse". handle: Person handle; required for matches and ydna. data: Raw DNA match string; required for parse. raw: If true, include raw segment strings in matches output. instance: Gramps Web base URL from get_instances; default = first.
Returns: dict: {"status", "url", "data": matches, clade or parsed segments}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| data | No | ||
| action | Yes | ||
| handle | No | ||
| instance | No |