forked from nf-core/modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding updated modules and nf-tests * Remove pytest folders and edut the pytest file * reverting convert to 2.14 * reverting convert to 2.15 * Forgot the conda environmrnt
- Loading branch information
1 parent
8e78842
commit e982959
Showing
30 changed files
with
520 additions
and
184 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
- bioconda | ||
- defaults | ||
dependencies: | ||
- bioconda::blast=2.13.0 | ||
- bioconda::blast=2.15.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
5 changes: 5 additions & 0 deletions
5
modules/nf-core/windowmasker/convert/tests/convert_binary.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
process { | ||
withName: WINDOWMASKER_CONVERT { | ||
ext.args = '-sformat binary' | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
modules/nf-core/windowmasker/convert/tests/convert_oascii.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
process { | ||
withName: WINDOWMASKER_CONVERT { | ||
ext.args = '-sformat oascii' | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
modules/nf-core/windowmasker/convert/tests/convert_obinary.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
process { | ||
withName: WINDOWMASKER_CONVERT { | ||
ext.args = '-sformat obinary' | ||
} | ||
} |
105 changes: 105 additions & 0 deletions
105
modules/nf-core/windowmasker/convert/tests/main.nf.test
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,105 @@ | ||
nextflow_process { | ||
|
||
name "Test Process WINDOWMASKER_CONVERT" | ||
script "../main.nf" | ||
process "WINDOWMASKER_CONVERT" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "windowmasker" | ||
tag "windowmasker/convert" | ||
tag "windowmasker/mkcounts" | ||
|
||
setup { | ||
run("WINDOWMASKER_MKCOUNTS") { | ||
script "../../mkcounts/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[id: "test" ], | ||
[ file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)] | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
test("sarscov2_fasta_binary") { | ||
config "./convert_binary.config" | ||
when { | ||
process { | ||
""" | ||
input[0] = WINDOWMASKER_MKCOUNTS.out.counts | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2_fasta_obinary") { | ||
config "./convert_obinary.config" | ||
when { | ||
process { | ||
""" | ||
input[0] = WINDOWMASKER_MKCOUNTS.out.counts | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2_fasta_oascii") { | ||
config "./convert_oascii.config" | ||
when { | ||
process { | ||
""" | ||
input[0] = WINDOWMASKER_MKCOUNTS.out.counts | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2_fasta_stub") { | ||
|
||
options '-stub' | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[id: "test" ], | ||
[ file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)] | ||
] | ||
""" | ||
} | ||
} | ||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
} |
118 changes: 118 additions & 0 deletions
118
modules/nf-core/windowmasker/convert/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,2 @@ | ||
windowmasker/convert: | ||
- "modules/nf-core/windowmasker/convert/**" |
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: | ||
- bioconda::blast=2.14.0 | ||
- bioconda::blast=2.15.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
nextflow_process { | ||
|
||
name "Test Process WINDOWMASKER_MKCOUNTS" | ||
script "../main.nf" | ||
process "WINDOWMASKER_MKCOUNTS" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "windowmasker" | ||
tag "windowmasker/mkcounts" | ||
|
||
test("sarscov2_fasta") { | ||
|
||
when { | ||
params { | ||
// define parameters here. Example: | ||
// outdir = "tests/results" | ||
} | ||
process { | ||
""" | ||
input[0] = [ | ||
[id: "test" ], | ||
[ file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)] | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
test("sarscov2_fasta_stub") { | ||
|
||
options '-stub' | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[id: "test" ], | ||
[ file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)] | ||
] | ||
""" | ||
} | ||
} | ||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.