-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add nf-test to the module porechop_abi * update standard output * update licence * update tags.yml * Update modules/nf-core/porechop/abi/main.nf Co-authored-by: Simon Pearce <[email protected]> * Update modules/nf-core/porechop/abi/main.nf Co-authored-by: Simon Pearce <[email protected]> * Update modules/nf-core/porechop/abi/main.nf Co-authored-by: Simon Pearce <[email protected]> * Update modules/nf-core/porechop/abi/meta.yml Co-authored-by: Simon Pearce <[email protected]> * remove pytest and update the prefix * Update modules/nf-core/porechop/abi/main.nf Co-authored-by: Simon Pearce <[email protected]> * Update modules/nf-core/porechop/abi/tests/main.nf.test Co-authored-by: Simon Pearce <[email protected]> * Update modules/nf-core/porechop/abi/tests/main.nf.test Co-authored-by: Simon Pearce <[email protected]> * Update modules/nf-core/porechop/abi/tests/main.nf.test Co-authored-by: Simon Pearce <[email protected]> * update main.nf.test * Update main.nf check input and output are not same --------- Co-authored-by: Simon Pearce <[email protected]>
- Loading branch information
1 parent
e61e5a1
commit 870f9af
Showing
7 changed files
with
180 additions
and
10 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
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 PORECHOP_ABI" | ||
script "../main.nf" | ||
process "PORECHOP_ABI" | ||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "porechop" | ||
tag "porechop/abi" | ||
|
||
test("sarscov2-nanopore") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test'], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/nanopore/fastq/test.fastq.gz', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
process.out.reads, | ||
file(process.out.log.get(0).get(1)).readLines()[20..40], | ||
process.out.versions).match() | ||
} | ||
) | ||
} | ||
} | ||
|
||
test("sarscov2-nanopore - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
|
||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test'], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/nanopore/fastq/test.fastq.gz', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
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,94 @@ | ||
{ | ||
"sarscov2-nanopore": { | ||
"content": [ | ||
[ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.porechop_abi.fastq.gz:md5,886fdb859fb50e0dddd35007bcff043e" | ||
] | ||
], | ||
[ | ||
" Best \u001b[0m", | ||
" read Best \u001b[0m", | ||
" start read end\u001b[0m", | ||
" \u001b[4mSet %ID %ID \u001b[0m", | ||
" \u001b[32mSQK-NSK007 100.0 73.1\u001b[0m", | ||
" Rapid 40.4 0.0", | ||
" RBK004_upstream 77.5 0.0", | ||
" SQK-MAP006 75.8 72.7", | ||
" SQK-MAP006 short 65.5 66.7", | ||
" PCR adapters 1 73.9 69.6", | ||
" PCR adapters 2 80.0 72.7", | ||
" PCR adapters 3 70.8 69.6", | ||
" 1D^2 part 1 71.4 70.0", | ||
" 1D^2 part 2 84.8 75.8", | ||
" cDNA SSP 63.0 61.7", | ||
" \u001b[32mBarcode 1 (reverse) 100.0 100.0\u001b[0m", | ||
" Barcode 2 (reverse) 70.8 69.2", | ||
" Barcode 3 (reverse) 76.0 70.4", | ||
" Barcode 4 (reverse) 74.1 71.4", | ||
" Barcode 5 (reverse) 77.8 80.8", | ||
" Barcode 6 (reverse) 73.1 70.8" | ||
], | ||
[ | ||
"versions.yml:md5,0e9e5e0d35a68ff8e6490c949b257f98" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.04.1" | ||
}, | ||
"timestamp": "2024-07-29T13:50:49.318599" | ||
}, | ||
"sarscov2-nanopore - stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.porechop_abi.fastq.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"1": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.porechop_abi.log:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"2": [ | ||
"versions.yml:md5,0e9e5e0d35a68ff8e6490c949b257f98" | ||
], | ||
"log": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.porechop_abi.log:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"reads": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.porechop_abi.fastq.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,0e9e5e0d35a68ff8e6490c949b257f98" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.04.1" | ||
}, | ||
"timestamp": "2024-07-29T13:50:54.425389" | ||
} | ||
} |
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 @@ | ||
porechop/abi: | ||
- "modules/nf-core/porechop/abi/**" |
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