Skip to content

Commit 63760d1

Browse files
authored
Merge pull request #1290 from jmchilton/schema/tests-epigenetics-data-fetching
tests: declare class:Collection / collection_type (epigenetics, data-fetching, chem, read-prep)
2 parents 1abe255 + 3152c8c commit 63760d1

12 files changed

Lines changed: 48 additions & 3 deletions

File tree

workflows/computational-chemistry/gromacs-dctmd/gromacs-dctmd-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
Salt concentration: 0.1
2626
outputs:
2727
XTC files:
28+
class: Collection
2829
element_tests:
2930
split_file_000000.txt:
3031
assert:

workflows/data-fetching/metadata-and-sequences-from-bioproject-ids/metadata-and-sequences-from-bioproject-ids-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
Expand sample attributes in metadata: false
1111
outputs:
1212
SRA metadata table:
13+
class: Collection
1314
element_tests:
1415
PRJNA1417618:
1516
path: test-data/test1_metadata_file_split_file_000000.txt.tsv
1617
Paired End Reads:
18+
class: Collection
1719
element_tests:
1820
SRR37073390:
1921
forward:
@@ -37,6 +39,7 @@
3739
Expand sample attributes in metadata: false
3840
outputs:
3941
SRA metadata table:
42+
class: Collection
4043
element_tests:
4144
PRJNA1425250:
4245
path: test-data/test2_metadata_file_split_file_000000.txt.tsv
@@ -45,6 +48,7 @@
4548
path: test-data/test2_metadata_file_split_file_000001.txt.tsv
4649
compare: contains
4750
Paired End Reads:
51+
class: Collection
4852
element_tests:
4953
SRR37273408:
5054
forward:
@@ -65,6 +69,7 @@
6569
decompress: true
6670
compare: contains
6771
Single End Reads:
72+
class: Collection
6873
element_tests:
6974
SRR37273407:
7075
path: test-data/test2_SRR37273407_forward.fastq
@@ -83,10 +88,12 @@
8388
Expand sample attributes in metadata: true
8489
outputs:
8590
SRA metadata table:
91+
class: Collection
8692
element_tests:
8793
PRJNA1417618:
8894
path: test-data/test3_metadata.tsv
8995
Paired End Reads:
96+
class: Collection
9097
element_tests:
9198
SRR37073390:
9299
forward:

workflows/data-fetching/parallel-accession-download/parallel-accession-download-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
hash_value: 82f7d1a023352b8d99bdf262ccbc0c87723b754b
99
outputs:
1010
Single End Reads:
11+
class: Collection
1112
element_tests:
1213
SRR044777:
1314
file: test-data/SRR044777_head.fastq
@@ -24,8 +25,10 @@
2425
hash_value: cc855f075b8473f89364415d7f30fada8182a40a
2526
outputs:
2627
Paired End Reads:
28+
class: Collection
2729
element_tests:
2830
SRR11953971:
31+
class: Collection
2932
elements:
3033
forward:
3134
file: test-data/SRR11953971_1_head.fastq

workflows/data-fetching/sra-manifest-to-concatenated-fastqs/sra-manifest-to-concatenated-fastqs-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
Column number with final identifier: 22
1111
outputs:
1212
paired_output:
13+
class: Collection
1314
element_tests:
1415
GSM461177-:
16+
class: Collection
1517
element_tests:
1618
forward:
1719
asserts:
@@ -24,6 +26,7 @@
2426
value: 307000000
2527
delta: 30000000
2628
GSM461178___a:
29+
class: Collection
2730
element_tests:
2831
forward:
2932
asserts:
@@ -36,6 +39,7 @@
3639
value: 205000000
3740
delta: 20000000
3841
single_output:
42+
class: Collection
3943
element_tests:
4044
GSM461176.-:
4145
asserts:

workflows/epigenetics/atacseq/atacseq-tests.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
collection_type: list:paired
66
elements:
77
- class: Collection
8-
type: paired
8+
collection_type: paired
99
identifier: SRR891268_chr22_enriched
1010
elements:
1111
- identifier: forward
@@ -28,6 +28,7 @@
2828
Bin size: 1000
2929
outputs:
3030
mapping stats:
31+
class: Collection
3132
element_tests:
3233
SRR891268_chr22_enriched:
3334
asserts:
@@ -38,32 +39,37 @@
3839
- that: "has_text"
3940
text: "119723 (42.32%) aligned concordantly >1 times"
4041
MarkDuplicates metrics:
42+
class: Collection
4143
element_tests:
4244
SRR891268_chr22_enriched:
4345
asserts:
4446
has_text:
4547
text: "0.02"
4648
BAM filtered rmDup:
49+
class: Collection
4750
element_tests:
4851
SRR891268_chr22_enriched:
4952
asserts:
5053
has_size:
5154
value: 15810403
5255
delta: 1000000
5356
histogram of fragment length:
57+
class: Collection
5458
element_tests:
5559
SRR891268_chr22_enriched:
5660
asserts:
5761
has_size:
5862
value: 47718
5963
delta: 4000
6064
MACS2 narrowPeak:
65+
class: Collection
6166
element_tests:
6267
SRR891268_chr22_enriched:
6368
asserts:
6469
has_n_lines:
6570
n: 237
6671
MACS2 report:
72+
class: Collection
6773
element_tests:
6874
SRR891268_chr22_enriched:
6975
asserts:
@@ -72,32 +78,37 @@
7278
- that: "has_text"
7379
text: "# total tags in treatment: 261890"
7480
Coverage from MACS2 (bigwig):
81+
class: Collection
7582
element_tests:
7683
SRR891268_chr22_enriched:
7784
asserts:
7885
has_size:
7986
value: 2892925
8087
delta: 200000
8188
1kb around summits:
89+
class: Collection
8290
element_tests:
8391
SRR891268_chr22_enriched:
8492
asserts:
8593
has_n_lines:
8694
n: 220
8795
Nb of reads in summits +-500bp:
96+
class: Collection
8897
element_tests:
8998
SRR891268_chr22_enriched:
9099
asserts:
91100
has_line:
92101
line: "9522"
93102
bigwig_norm:
103+
class: Collection
94104
element_tests:
95105
SRR891268_chr22_enriched:
96106
asserts:
97107
has_size:
98108
value: 1253177
99109
delta: 100000
100110
bigwig_norm2:
111+
class: Collection
101112
element_tests:
102113
SRR891268_chr22_enriched:
103114
asserts:

workflows/epigenetics/average-bigwig-between-replicates/average-bigwig-between-replicates-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
bin_size: 50
3636
outputs:
3737
average_bigwigs:
38+
class: Collection
3839
attributes:
3940
collection_type: list
4041
element_tests:

workflows/epigenetics/chipseq-pe/chipseq-pe-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
collection_type: list:paired
66
elements:
77
- class: Collection
8-
type: paired
8+
collection_type: paired
99
identifier: wt_H3K4me3
1010
elements:
1111
- identifier: forward
@@ -42,19 +42,22 @@
4242
has_text_matching:
4343
expression: "wt_H3K4me3\t20[12].0\t0.0\t13\t98.[0-9]*\t93.[0-9]*\t4.5[0-9]*\t0.095[0-9]*\t57.[0-9]*\t95.[0-9]*\t95.[0-9]*\t0.19[0-9]*\t51.0\t51.0"
4444
filtered BAM:
45+
class: Collection
4546
element_tests:
4647
wt_H3K4me3:
4748
asserts:
4849
has_size:
4950
value: 5311841
5051
delta: 500000
5152
MACS2 summits:
53+
class: Collection
5254
element_tests:
5355
wt_H3K4me3:
5456
asserts:
5557
has_n_lines:
5658
n: 13
5759
MACS2 peaks:
60+
class: Collection
5861
element_tests:
5962
wt_H3K4me3:
6063
asserts:
@@ -65,12 +68,14 @@
6568
- that: "has_text"
6669
text: "# fragments after filtering in treatment: 42745"
6770
MACS2 narrowPeak:
71+
class: Collection
6872
element_tests:
6973
wt_H3K4me3:
7074
asserts:
7175
has_n_lines:
7276
n: 13
7377
MACS2 report:
78+
class: Collection
7479
element_tests:
7580
wt_H3K4me3:
7681
asserts:
@@ -81,13 +86,15 @@
8186
- that: "has_text"
8287
text: "# fragments after filtering in treatment: 42745"
8388
coverage from MACS2:
89+
class: Collection
8490
element_tests:
8591
wt_H3K4me3:
8692
asserts:
8793
has_size:
8894
value: 568174
8995
delta: 50000
9096
mapping stats:
97+
class: Collection
9198
element_tests:
9299
wt_H3K4me3:
93100
asserts:

workflows/epigenetics/chipseq-sr/chipseq-sr-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,22 @@
3232
has_text_matching:
3333
expression: "wt_H3K4me3\t200.0\t0.0\t9\t98.[0-9]*\t93.[0-9]*\t2.3[0-9]*\t0.049[0-9]*\t57.[0-9]*\t99.[0-9]*\t99.[0-9]*\t0.12[0-9]*\t51.0"
3434
filtered BAM:
35+
class: Collection
3536
element_tests:
3637
wt_H3K4me3:
3738
asserts:
3839
has_size:
3940
value: 2587182
4041
delta: 200000
4142
MACS2 summits:
43+
class: Collection
4244
element_tests:
4345
wt_H3K4me3:
4446
asserts:
4547
has_n_lines:
4648
n: 9
4749
MACS2 peaks:
50+
class: Collection
4851
element_tests:
4952
wt_H3K4me3:
5053
asserts:
@@ -55,12 +58,14 @@
5558
- that: "has_text"
5659
text: "# tags after filtering in treatment: 44528"
5760
MACS2 narrowPeak:
61+
class: Collection
5862
element_tests:
5963
wt_H3K4me3:
6064
asserts:
6165
has_n_lines:
6266
n: 9
6367
MACS2 report:
68+
class: Collection
6469
element_tests:
6570
wt_H3K4me3:
6671
asserts:
@@ -71,13 +76,15 @@
7176
- that: "has_text"
7277
text: "# tags after filtering in treatment: 44528"
7378
coverage from MACS2:
79+
class: Collection
7480
element_tests:
7581
wt_H3K4me3:
7682
asserts:
7783
has_size:
7884
value: 563563
7985
delta: 10000
8086
mapping stats:
87+
class: Collection
8188
element_tests:
8289
wt_H3K4me3:
8390
asserts:

workflows/epigenetics/consensus-peaks/consensus-peaks-atac-cutandrun-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
bin_size: 50
3131
outputs:
3232
individual_macs2_narrowPeaks:
33+
class: Collection
3334
element_tests:
3435
rep1:
3536
asserts:

workflows/epigenetics/consensus-peaks/consensus-peaks-chip-pe-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
bin_size: 50
3131
outputs:
3232
individual_macs2_narrowPeaks:
33+
class: Collection
3334
element_tests:
3435
rep1:
3536
asserts:

0 commit comments

Comments
 (0)