-
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.
Ported arcashla/extract to nf-test (#6225)
- Loading branch information
Showing
8 changed files
with
121 additions
and
74 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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
|
||
nextflow_process { | ||
|
||
name "Test Process ARCASHLA_EXTRACT" | ||
script "../main.nf" | ||
process "ARCASHLA_EXTRACT" | ||
config "./nextflow.config" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "arcashla" | ||
tag "arcashla/extract" | ||
|
||
test("test-arcashla-extract") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert file(process.out.log[0]).text.contains('Converting bam to fastq') }, | ||
{ assert snapshot( | ||
process.out.extracted_reads_fastq[0][1].collect { file(it).name }, | ||
process.out.intermediate_bam[0][1].collect { bam(it).getReadsMD5() }, | ||
file(process.out.intermediate_sam[0][1]).name, | ||
bam(process.out.intermediate_sorted_bam[0][1]).getReadsMD5(), | ||
process.out.versions | ||
).match() | ||
} | ||
) | ||
} | ||
} | ||
|
||
test("test-arcashla-extract-single-end") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test_single_end', single_end:true ], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test3.single_end.markduplicates.sorted.bam', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert file(process.out.log[0]).text.contains('Converting bam to fastq') }, | ||
{ assert snapshot( | ||
file(process.out.extracted_reads_fastq[0][1]).name, | ||
process.out.intermediate_bam[0][1].collect { bam(it).getReadsMD5() }, | ||
file(process.out.intermediate_sam[0][1]).name, | ||
bam(process.out.intermediate_sorted_bam[0][1]).getReadsMD5(), | ||
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,43 @@ | ||
{ | ||
"test-arcashla-extract-single-end": { | ||
"content": [ | ||
"test3.single_end.markduplicates.sorted.extracted.fq.gz", | ||
[ | ||
"c7f49f93d2aebb68f128b85c6b6a36c0", | ||
"13f0c075d7bfddcf19a48669bb69ae4c" | ||
], | ||
"test3.single_end.markduplicates.sorted.hla.sam", | ||
"13f0c075d7bfddcf19a48669bb69ae4c", | ||
[ | ||
"versions.yml:md5,bad529c7a165615b9641e7780cc13160" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-08-21T12:36:32.699685" | ||
}, | ||
"test-arcashla-extract": { | ||
"content": [ | ||
[ | ||
"test.paired_end.sorted.extracted.1.fq.gz", | ||
"test.paired_end.sorted.extracted.2.fq.gz" | ||
], | ||
[ | ||
"ef014d5b0cd0903595da255cdce79662", | ||
"ef014d5b0cd0903595da255cdce79662" | ||
], | ||
"test.paired_end.sorted.hla.sam", | ||
"ef014d5b0cd0903595da255cdce79662", | ||
[ | ||
"versions.yml:md5,bad529c7a165615b9641e7780cc13160" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-08-21T12:30:28.486246" | ||
} | ||
} |
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: ARCASHLA_EXTRACT { | ||
ext.args = '--unmapped --keep_files' | ||
} | ||
} |
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.