-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
specimen: days_to_collection field #41
Comments
Here's the definition of days_to_collection from GDC: "The number of days from the index date to the date a sample was collected for a specific study or project." The Biosample element time_of_collection is "Age of the proband at the time the sample was taken. RECOMMENDED." So we need to use the index age of the subject + days from the index date = age of subject at time sample was taken. I'm not sure how to get the age of the subject (line 58 of cda_biosample_factory.py) |
@pnrobinson @ielis I have a question about the Phenopacket age element. The documentation says it should be age: iso8601duration: "P25Y3M2D", but in op_individual the parameter is described as ":param iso8601duration: age represented as an ISO 8601 Period". Is the element 'Age' or 'iso8601duration'? https://phenopacket-schema.readthedocs.io/en/latest/age.html |
Hi @msierk
However, with the benefit of hindsight, I think To create a well-formatted You may need to fight the Protobuf bindings to get it done though.. 😕 In the long term, I would like to create a Python library to simplify this. We have such a library in Java (Phenopacket tools, in particular the builder package), but Python needs one too. Finally, I agree that we should compute the age at collection per your suggestion, and it is not yet clear to me how to make the subject's age available in the function. We'll have to work something out. Let's keep this issue open until we can resolve it. |
This should be mapped to the time_of_collection field of the GA4GH Biosample message.
Check what data is coming for this. Probably use the same days to ISO 8601 function as for disease and individual.
The text was updated successfully, but these errors were encountered: