d3b-center / d3b-cds-manifest-prep

scripts to prep manifests for cds
Apache License 2.0
1 stars 0 forks source link

🐛 missing diagnoses and remove normal samples from bs_dx #122

Closed chris-s-friedman closed 1 year ago

chris-s-friedman commented 1 year ago

🐛 missing diagnoses and remove normal samples from bs_dx

When a participant has only normal samples submitted to CDS and those normal samples are the only samples related to the event from which they come from (see #120 for an example of this), the diagnosis needs to come from the other event(s) from that participant.

Likewise, normal samples should not be in the diagnosis-sample mapping. this PR removes those samples. This is done by setting the sample_id to be NA when there is no diagnosis associated with the sample.