parse_dna_segments
Parse shared-segment data to check a match file before recording. Returns segments, totals, and flags unreadable input instead of zero shared DNA.
Instructions
Parse pasted shared-segment data into structured segments and totals.
Use this to check what a match file actually contains before recording it. Returns each segment plus the total and largest-segment centiMorgans.
If nothing parses, parsed is false and the reason is given. That
distinction matters: the server answers unreadable input with zero
segments and a success status, which would otherwise read as "this person
shares no DNA" rather than "I could not read that".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Raw shared-segment data, as a testing company exports it: rows of chromosome, start, stop, centiMorgans, SNPs, separated by commas or tabs, with an optional side of M, P or U. A header row is tolerated. |