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:
24
24
selectors :
25
25
- path == '/participants.tsv'
26
26
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
+ )
28
32
29
33
# 51
30
34
PhenotypeSubjectsMissing :
@@ -34,10 +38,14 @@ PhenotypeSubjectsMissing:
34
38
A phenotype/ .tsv file lists subjects that were not found in the dataset.
35
39
level : error
36
40
selectors :
37
- - path == '/dataset_description.json '
41
+ - path == '/participants.tsv '
38
42
- type(dataset.subjects.phenotype) != 'null'
39
43
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
+ )
41
49
42
50
# 214
43
51
SamplesTSVMissing :
You can’t perform that action at this time.
0 commit comments