-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use conda-forge instead of anaconda (#5626)
* use conda-forge instead of anaconda * Update modules/nf-core/homer/maketagdirectory/environment.yml Co-authored-by: Phil Ewels <phil.ewels@seqera.io> * nf-test homer/findpeaks * nf-test homer/maketagdirectory * nf-test homer/pos2bed * fix perl version? * Update modules/nf-core/gawk/environment.yml Co-authored-by: Phil Ewels <phil.ewels@seqera.io> * fix gawk --------- Co-authored-by: Phil Ewels <phil.ewels@seqera.io>
- Loading branch information
Showing
28 changed files
with
616 additions
and
197 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
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
- bioconda | ||
- defaults | ||
dependencies: | ||
- anaconda::gawk=5.1.0 | ||
- conda-forge::gawk=5.3.0 |
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
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
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
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,73 @@ | ||
nextflow_process { | ||
|
||
name "Test Process HOMER_FINDPEAKS" | ||
script "../main.nf" | ||
process "HOMER_FINDPEAKS" | ||
config "./nextflow.config" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "homer" | ||
tag "homer/findpeaks" | ||
tag "homer/maketagdirectory" | ||
|
||
setup { | ||
run("HOMER_MAKETAGDIRECTORY") { | ||
script "../../maketagdirectory/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test' ], | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/bed/test.bed', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/bed/test2.bed', checkIfExists: true) | ||
] | ||
] | ||
input[1] = file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
""" | ||
} | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - tagdir") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = HOMER_MAKETAGDIRECTORY.out.tagdir | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match("tagdir") } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - tagdir - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = HOMER_MAKETAGDIRECTORY.out.tagdir | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match("stub") } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
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,68 @@ | ||
{ | ||
"stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.peaks.txt:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,12c3e88a3eeb96208a1d352504ebebfa" | ||
], | ||
"txt": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.peaks.txt:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,12c3e88a3eeb96208a1d352504ebebfa" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.03.0" | ||
}, | ||
"timestamp": "2024-05-17T13:57:52.208349083" | ||
}, | ||
"tagdir": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.peaks.txt:md5,86e15beaa4b439585786478e58418c0c" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,12c3e88a3eeb96208a1d352504ebebfa" | ||
], | ||
"txt": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.peaks.txt:md5,86e15beaa4b439585786478e58418c0c" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,12c3e88a3eeb96208a1d352504ebebfa" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.03.0" | ||
}, | ||
"timestamp": "2024-05-17T13:56:22.119853182" | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
...s/nf-core/homer/findpeaks/nextflow.config → ...ore/homer/findpeaks/tests/nextflow.config
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 |
---|---|---|
@@ -1,13 +1,8 @@ | ||
process { | ||
|
||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
||
withName: HOMER_MAKETAGDIRECTORY { | ||
ext.args = '-format bed' | ||
} | ||
|
||
withName: HOMER_FINDPEAKS { | ||
ext.args = '-style factor' | ||
} | ||
|
||
} |
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,2 @@ | ||
homer/findpeaks: | ||
- "modules/nf-core/homer/findpeaks/**" |
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
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,3 @@ | ||
process { | ||
ext.args = '-format bed' | ||
} |
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,97 @@ | ||
nextflow_process { | ||
|
||
name "Test Process HOMER_MAKETAGDIRECTORY" | ||
script "../main.nf" | ||
process "HOMER_MAKETAGDIRECTORY" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "homer" | ||
tag "homer/maketagdirectory" | ||
|
||
test("sarscov2 - [bed, bed], fasta") { | ||
|
||
config "./bed.config" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test' ], | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/bed/test.bed', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/bed/test2.bed', checkIfExists: true) | ||
] | ||
] | ||
input[1] = file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match("bed") } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - [bam, bam], fasta") { | ||
|
||
config "./sam.config" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test' ], | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.single_end.sorted.bam', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true) | ||
] | ||
] | ||
input[1] = file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match("bam") } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - [bed, bed], fasta - stub") { | ||
|
||
config "./bed.config" | ||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test' ], | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/bed/test.bed', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/bed/test2.bed', checkIfExists: true) | ||
] | ||
] | ||
input[1] = file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match("stub") } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.