monarch-initiative / genophenocorr

Genotype Phenotype Correlation
https://monarch-initiative.github.io/genophenocorr/stable
MIT License
4 stars 1 forks source link

genotype_for_sample() #110

Closed pnrobinson closed 1 month ago

pnrobinson commented 7 months ago

I am not sure why I am seeing this method for Variant, that seems like the wrong place to retrieve the genotype for a sample specified in the argument?

ielis commented 6 months ago

It indeed looks a bit weird. The exact details of Variant API still need to be worked out.

We need to figure out how to manage 2 states: individual variant and cohort variant.

The individual variant represents data available right after loading phenopacket. We have the VariantCoordinates and genotype. The genotype is usually non-homozygous reference.

The cohort variant is an aggregation of the data of all cohort members. It includes the VariantCoordinates, functional annotation(s), and mapping from sample_id -> genotype. In contrast with individual variant, here the genotype can be ./. or 0/0.

I think we can model the Variant in a similar fashion to VCF format, where we have 3 levels of information for each variant:

All this said, we may need to discuss this further before starting the actual work.

pnrobinson commented 1 month ago

@lnrekerle is this still active or can the issue be closed?

lnrekerle commented 1 month ago

I think this can be closed since this method no longer exists.