Skip to content
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

The phenopacket examples are not valid phenopackets #37

Open
cmungall opened this issue May 13, 2024 · 3 comments
Open

The phenopacket examples are not valid phenopackets #37

cmungall opened this issue May 13, 2024 · 3 comments

Comments

@cmungall
Copy link
Member

I'm looking at the documentation to see if I can understand whether the proposed Conceptual Model is equivalent to or more expressive than the Phenopackets Pedigree element.

The examples page here https://pedigree.readthedocs.io/en/latest/examples.html is potentially useful here, but I'm confused by it. It says

"As a Phenopacket GA4GHPedigree message:"

and then gives:

id: FAM1
narrative: A Phenopacket GA4GHPedigree of a trio with an affected child
date: 2022-06-23
individuals:
  - id: 1
    subject:
      id: MOTHER
      sex: FEMALE
  - id: 2
    subject:
      id: FATHER
      sex: MALE
  - id: 3
    subject:
      id: CHILD
      sex: UNKNOWN
relationships:
  - individual_id: MOTHER
    relation:
      id: KIN:027
      label: isBiologicalMotherOf
    relative_id: CHILD
  - individual_id: FATHER
    relation:
      id: KIN:028
      label: isBiologicalFatherOf
    relative_id: CHILD
index_patients:
  - CHILD

But this doesn't seem to be conformant with the phenopacket spec

It looks more like a variant of the CM here (but differs in the cardinality of individual_id).

I think it would be very useful to look at examples of the same familiar relationships in different data models side by side, but I'm not totally sure what I am looking at here

@cmungall
Copy link
Member Author

cmungall commented May 13, 2024

@julesjacobsen
Copy link

The GA4GH Pedigree has been in flux for a while and I was trying to keep up with things using Phenopacket semantics for the conceptual model (phenopackets/phenopacket-schema#333) rather than a standalone Pedigree schema which was originally proposed. The current Phenopacket-schema pedigree message (https://github.com/phenopackets/phenopacket-schema/blob/master/src/main/proto/phenopackets/schema/v2/core/pedigree.proto) predates the GA4GH Pedigree working group as it is the same as the Phenopacket-schema v1 pedigree (https://github.com/phenopackets/phenopacket-schema/blob/a22a652c9445de84e35eff9d393e9ec172442ec4/src/main/proto/phenopackets/schema/v1/base.proto#L367-L383) which is identical to a PED file.

@cmungall
Copy link
Member Author

OK, so I think the docs in this repo at least need qualified. It should say "here is an example of a pedigree in a proposed extension to the current phenopackets standard"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants