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.
* move mafft to mafft_align * add mafft guidetree * update mafft align * add mafft guidetree tests * fixes * up * update other mafft tests * update mafft * fix * don't lint deleted files * filter out main.nf.test and main.nf.snapshot * try different strategy * fix other * fix other * add tests * remove pytest * up * update nftest * fix --------- Co-authored-by: mashehu <[email protected]>
- Loading branch information
1 parent
a35192c
commit a0657ec
Showing
24 changed files
with
502 additions
and
91 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
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,83 @@ | ||
nextflow_process { | ||
|
||
name "Test Process EPANG_SPLIT" | ||
script "../main.nf" | ||
process "EPANG_SPLIT" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "epang" | ||
tag "epang/split" | ||
tag "mafft/align" | ||
|
||
setup { | ||
run("MAFFT_ALIGN") { | ||
script "../../../mafft/align/main.nf" | ||
process { | ||
""" | ||
input[0] = [ [ id:'test', single_end:false ], // meta map | ||
file('https://raw.githubusercontent.com/nf-core/test-datasets/phyloplace/testdata/PF14720_seed.alnfaa', checkIfExists: true) | ||
] | ||
input[1] = [[id:"test2"], | ||
file('https://raw.githubusercontent.com/nf-core/test-datasets/phyloplace/testdata/PF14720_3_sequences.faa', checkIfExists: true) | ||
] | ||
input[2] = [[:],[]] | ||
input[3] = [[:],[]] | ||
input[4] = [[:],[]] | ||
input[5] = [[:],[]] | ||
input[6] = false | ||
""" | ||
} | ||
} | ||
} | ||
|
||
|
||
test("PF14720") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = MAFFT_ALIGN.out.fas.map { | ||
[ | ||
[ id:'test'], | ||
file('https://raw.githubusercontent.com/nf-core/test-datasets/phyloplace/testdata/PF14720_seed.alnfaa', checkIfExists: true), | ||
it[1] | ||
] | ||
} | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
|
||
|
||
test("PF14720 - stub") { | ||
options "-stub" | ||
when { | ||
process { | ||
""" | ||
input[0] = MAFFT_ALIGN.out.fas.map { | ||
[ | ||
[ id:'test'], | ||
file('https://raw.githubusercontent.com/nf-core/test-datasets/phyloplace/testdata/PF14720_seed.alnfaa', checkIfExists: true), | ||
it[1] | ||
] | ||
} | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
} |
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,100 @@ | ||
{ | ||
"PF14720 - stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_query.fasta.gz:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"1": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_reference.fasta.gz:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"2": [ | ||
"versions.yml:md5,83ff91cc742cb443b1793f2b28dbf21a" | ||
], | ||
"query": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_query.fasta.gz:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"reference": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test_reference.fasta.gz:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,83ff91cc742cb443b1793f2b28dbf21a" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.1" | ||
}, | ||
"timestamp": "2024-11-27T15:15:38.13000903" | ||
}, | ||
"PF14720": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.query.fasta.gz:md5,ff1159ff8a5d2587fb20309a81da3c29" | ||
] | ||
], | ||
"1": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.reference.fasta.gz:md5,e7753871101c48c42fc417ce0e9b398a" | ||
] | ||
], | ||
"2": [ | ||
"versions.yml:md5,83ff91cc742cb443b1793f2b28dbf21a" | ||
], | ||
"query": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.query.fasta.gz:md5,ff1159ff8a5d2587fb20309a81da3c29" | ||
] | ||
], | ||
"reference": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.reference.fasta.gz:md5,e7753871101c48c42fc417ce0e9b398a" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,83ff91cc742cb443b1793f2b28dbf21a" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.1" | ||
}, | ||
"timestamp": "2024-11-27T14:47:33.857838942" | ||
} | ||
} |
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 @@ | ||
epang/split: | ||
- "modules/nf-core/epang/split/**" |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
modules/nf-core/mafft/main.nf → modules/nf-core/mafft/align/main.nf
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,4 +1,4 @@ | ||
process MAFFT { | ||
process MAFFT_ALIGN { | ||
tag "$meta.id" | ||
label 'process_high' | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
modules/nf-core/mafft/meta.yml → modules/nf-core/mafft/align/meta.yml
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,4 +1,4 @@ | ||
name: mafft | ||
name: mafft_align | ||
description: Multiple sequence alignment using MAFFT | ||
keywords: | ||
- fasta | ||
|
5 changes: 3 additions & 2 deletions
5
modules/nf-core/mafft/tests/main.nf.test → ...es/nf-core/mafft/align/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
Oops, something went wrong.