[FIX][SCHEMA] Phenotype subjects are a subset of participants.tsv - #2468
Conversation
The existing check required a superset relation. Probably not frequently hit because equality will be the norm.
psadil
left a comment
There was a problem hiding this comment.
lgtm regarding this change now expressing a subset. But, doesn't the message imply a set difference? I interpret the message as being equivalent to "The phenotype/ .tsv file contains subjects absent from participants.tsv (participant_id column)." Should it instead be something like "The phenotype/ .tsv file contains some (possibly all) participants listed in participants.tsv (participant_id column)."
|
I think the existing diagnostic is consistent with the corrected relation. The validity condition is P_phenotype ⊆ P_participants, while the failure condition is P_phenotype \ P_participants ≠ ∅. So saying that the phenotype TSV contains subjects absent from participants.tsv describes the error correctly. “A phenotype TSV contains participant_id values that are absent from participants.tsv.” |
Ah, of course! Thanks for spelling that out. |
|
Thanks for having a look, both! |
The existing check required a superset relation. Probably not frequently hit because equality will be the norm.
Note that the error message implies a subset relation, and that was the intent in #2044.
Bug introduced in 1ff73de when moving away from an aggregated
dataset.subjects.phenotypefield.