-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from nf-core/homer-uniqmap
test(#57): Add uniqmap test
- Loading branch information
Showing
8 changed files
with
270 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
24 changes: 13 additions & 11 deletions
24
subworkflows/nf-core/homer_groseq/tests/main.nf.test.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
nextflow_pipeline { | ||
|
||
name "HOMER Uniqmap" | ||
script "../../../../main.nf" | ||
tag "input" | ||
tag "homer" | ||
|
||
test("Should run with an zipped uniqmap") { | ||
|
||
config "./nextflow.config" | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
use_homer_uniqmap = true | ||
homer_uniqmap = 'https://raw.githubusercontent.com/nf-core/test-datasets/nascent/reference/uniqmap.GRCh38_chr21.50nt.zip' | ||
skip_grohmm = true | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert workflow.success }, | ||
{ assert snapshot(removeNextflowVersion("$outputDir/pipeline_info/nf_core_pipeline_software_mqc_versions.yml")).match("software_versions") }, | ||
// Files should have -uniqmap <directory> in the header | ||
{ assert path("$outputDir/transcript_identification/homer/cd4.bed").readLines()[18].contains("uniqMapDirectory = uniqmap.GRCh38_chr21.50nt") }, | ||
{ assert path("$outputDir/transcript_identification/homer/cd4.bed").readLines()[20].contains("-uniqmap") }, | ||
{ assert path("$outputDir/transcript_identification/homer/jurkat.bed").readLines()[18].contains("uniqMapDirectory = uniqmap.GRCh38_chr21.50nt") }, | ||
{ assert path("$outputDir/transcript_identification/homer/jurkat.bed").readLines()[20].contains("-uniqmap") }, | ||
// TODO Test for uniqmap unzip process | ||
// { assert workflow.trace.tasks().find { it.process == "UNZIP" } }, | ||
{ assert snapshot( | ||
workflow.trace.tasks().size(), | ||
path("$outputDir/transcript_identification/homer/cd4.bed").readLines()[18], | ||
path("$outputDir/transcript_identification/homer/cd4.bed").readLines()[20], | ||
path("$outputDir/transcript_identification/homer/jurkat.bed").readLines()[18], | ||
path("$outputDir/transcript_identification/homer/jurkat.bed").readLines()[20], | ||
path("$outputDir/transcript_identification/homer/cd4.bed"), | ||
path("$outputDir/transcript_identification/homer/jurkat.bed"), | ||
path("$outputDir/transcript_identification/homer/cd4-uniqmap.GRCh38_chr21.peaks.txt"), | ||
path("$outputDir/transcript_identification/homer/jurkat-uniqmap.GRCh38_chr21.peaks.txt"), | ||
path("$outputDir/transcript_identification/intersect/").list(), | ||
path("$outputDir/transcript_identification/filtered/").list(), | ||
// FIXME Not determinstic because of the order of files | ||
// Add to the other tests when fixed | ||
// path("$outputDir/quantification/").list(), | ||
path("$outputDir/multiqc/multiqc_report.html").exists(), | ||
).match("output_files") | ||
}, | ||
) | ||
} | ||
} | ||
// TODO Check for running with unzipped uniqmap | ||
} |
Oops, something went wrong.