I've been looking at the CohortAnalysis code where we have a function that disregards HPO terms that are observed in less than certain fraction of cohort members and I think there is a bug in the function.
The function does not take into account the indirect annotations that result from the annotation propagation. E.g. for a cohort with 2 samples A and B:
A: annotated with Focal seizure
B: annotated with Seizure
Seizure would be accounted for only once, despite being present in A as well since presence of Focal seizure implies presence of Seizure.
@pnrobinson do you agree that the counters should include the indirect annotations as well?
Hi @pnrobinson @lnrekerle
I've been looking at the
CohortAnalysis
code where we have a function that disregards HPO terms that are observed in less than certain fraction of cohort members and I think there is a bug in the function.The function does not take into account the indirect annotations that result from the annotation propagation. E.g. for a cohort with 2 samples
A
andB
:A
: annotated with Focal seizureB
: annotated with SeizureSeizure would be accounted for only once, despite being present in
A
as well since presence of Focal seizure implies presence of Seizure.@pnrobinson do you agree that the counters should include the indirect annotations as well?