BrAPI icon indicating copy to clipboard operation
BrAPI copied to clipboard

Add support for advanced pedigree notation

Open trife opened this issue 11 months ago • 2 comments

Current pedigree only includes the simple pedigree string - "pedigreeString": "Jamestown/AGS 2060"

Advanced pedigree notation (standardized around the Purdy format) allows more complex pedigree structure - "Jamestown/3/FR-81-19/FL-302//FL-302/IN-71761-A-3-31-5-48"

A more comprehensive implementation could allow for more formats - "pedigreeString": [ { "string": "Jamestown/AGS 2060", "type": "simple" }, { "string": "Jamestown/3/FR-81-19/FL-302//FL-302/IN-71761-A-3-31-5-48", "type": "purdy" }]

trife avatar Mar 13 '24 10:03 trife

All the examples have a simple pedigree string because it is shorter, but there is no reason why the "pedigreeString" field couldn't be used for Purdy notation right now. Are there use cases where you would want both/multiple versions? Is this truly an issue with the BrAPI spec or an issue with a data provider who is not sending Purdy notation? Could this be achieved with a request parameter? /pedigree?pedigreeStringNotation=purdy

BrapiCoordinatorSelby avatar Mar 13 '24 19:03 BrapiCoordinatorSelby

pedigreeString could be used for Purdy notation right now, but having it specifically marked as Purdy format would act as a catch for downstream tools that want to parse it using Purdy notation rules.

trife avatar Mar 16 '24 13:03 trife