-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added nf-test for pairtools/dedup (#6267)
- Loading branch information
Showing
7 changed files
with
74 additions
and
35 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
nextflow_process { | ||
|
||
name "Test Process PAIRTOOLS_DEDUP" | ||
script "../main.nf" | ||
process "PAIRTOOLS_DEDUP" | ||
config "./nextflow.config" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "pairtools" | ||
tag "pairtools/dedup" | ||
|
||
test("test-pairtools-dedup") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:'test', single_end:false ], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pairtools/mock.4dedup.pairsam', checkIfExists: true) ] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
path(process.out.pairs[0][1]).linesGzip[3..7], | ||
process.out.stat, | ||
process.out.versions | ||
).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,30 @@ | ||
{ | ||
"test-pairtools-dedup": { | ||
"content": [ | ||
[ | ||
"#genome_assembly: unknown", | ||
"#chromosomes: chr1 chr2", | ||
"#columns: readID chrom1 pos1 chrom2 pos2 strand1 strand2 pair_type sam1 sam2", | ||
"readid3\tchr1\t1\tchr1\t20\t+\t+\tUU\t.\t.", | ||
"readid5\tchr1\t1\tchr1\t25\t+\t+\tUU\t.\t." | ||
], | ||
[ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.dedup.pairs.stat:md5,94682d1bc608ade150dd11993fbfd2a3" | ||
] | ||
], | ||
[ | ||
"versions.yml:md5,485fbdd68f35d563c8559e1afedc4c53" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-08-23T11:23:16.451408" | ||
} | ||
} |
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: PAIRTOOLS_DEDUP { | ||
ext.prefix = { "${meta.id}.dedup" } | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.