File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,11 @@ ParticipantIDMismatch:
2424 selectors :
2525 - path == '/participants.tsv'
2626 checks :
27- - allequal(sorted(columns.participant_id), sorted(dataset.subjects.sub_dirs))
27+ - |
28+ allequal(
29+ sorted(intersects(columns.participant_id, dataset.subjects.sub_dirs)),
30+ sorted(dataset.subjects.sub_dirs)
31+ )
2832
2933# 51
3034PhenotypeSubjectsMissing :
@@ -34,10 +38,14 @@ PhenotypeSubjectsMissing:
3438 A phenotype/ .tsv file lists subjects that were not found in the dataset.
3539 level : error
3640 selectors :
37- - path == '/dataset_description.json '
41+ - path == '/participants.tsv '
3842 - type(dataset.subjects.phenotype) != 'null'
3943 checks :
40- - allequal(sorted(dataset.subjects.phenotype), sorted(dataset.subjects.sub_dirs))
44+ - |
45+ allequal(
46+ sorted(intersects(columns.participant_id, dataset.subjects.phenotype)),
47+ sorted(dataset.subjects.phenotype)
48+ )
4149
4250# 214
4351SamplesTSVMissing :
You can’t perform that action at this time.
0 commit comments