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.
cellranger count: start with L001 when renaming files (nf-core#4901)
* cellranger count: start with L001 when renaming files Previously it started with L000 which was still recognized by cellranger, but there would never be a file named L000 generated by demultiplexing. * automated pytest migration * Update nf-test file * Update nf-test snapshot * [automated] Fix linting with Prettier * Fix module lint * Update nf-test * exclude empty file from snap * Fix nf-test --------- Co-authored-by: nf-core-bot <[email protected]> Co-authored-by: Alexander Peltzer <[email protected]>
- Loading branch information
1 parent
dd1b3c4
commit a2dfd9a
Showing
11 changed files
with
170 additions
and
125 deletions.
There are no files selected for viewing
This file was deleted.
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
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,101 @@ | ||
nextflow_process { | ||
|
||
name "Test Process CELLRANGER_COUNT" | ||
script "../main.nf" | ||
process "CELLRANGER_COUNT" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "cellranger" | ||
tag "cellranger/count" | ||
tag "cellranger/mkref" | ||
tag "cellranger/mkgtf" | ||
|
||
setup { | ||
config "./nextflow.config" | ||
|
||
run("CELLRANGER_MKGTF") { | ||
script "../../mkgtf/main.nf" | ||
process { | ||
""" | ||
input[0] = file(params.test_data['homo_sapiens']['genome']['genome_gtf'], checkIfExists: true) | ||
""" | ||
} | ||
} | ||
run("CELLRANGER_MKREF") { | ||
script "../../mkref/main.nf" | ||
process { | ||
""" | ||
input[0] = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true) | ||
input[1] = CELLRANGER_MKGTF.out.gtf | ||
input[2] = "homo_sapiens_chr22_reference" | ||
""" | ||
} | ||
} | ||
} | ||
|
||
test("10x example file") { | ||
config "./nextflow.config" | ||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test_10x', single_end:false, strandedness:'auto' ], // meta map | ||
[ | ||
file(params.test_data['homo_sapiens']['10xgenomics']['cellranger']['test_10x_5k_cmvpos_tcells_gex1_fastq_1_gz'], checkIfExists: true), | ||
file(params.test_data['homo_sapiens']['10xgenomics']['cellranger']['test_10x_5k_cmvpos_tcells_gex1_fastq_2_gz'], checkIfExists: true) | ||
] | ||
] | ||
input[1] = CELLRANGER_MKREF.out.reference | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ | ||
assert snapshot( | ||
process.out.versions, | ||
process.out.outs[0][1].findAll { file(it).name !in [ | ||
'web_summary.html', // unstable checksum | ||
'barcodes.tsv.gz' // empty file in test data -> would raise linting error | ||
]} | ||
).match() | ||
}, | ||
{ assert file(process.out.outs.get(0).get(1).find { file(it).name == 'web_summary.html' }).exists() }, | ||
{ assert file(process.out.outs.get(0).get(1).find { file(it).name == 'barcodes.tsv.gz' }).exists() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("10x example file - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test_10x', single_end:false, strandedness:'auto' ], // meta map | ||
[ | ||
file(params.test_data['homo_sapiens']['10xgenomics']['cellranger']['test_10x_5k_cmvpos_tcells_gex1_fastq_1_gz'], checkIfExists: true), | ||
file(params.test_data['homo_sapiens']['10xgenomics']['cellranger']['test_10x_5k_cmvpos_tcells_gex1_fastq_2_gz'], checkIfExists: true) | ||
] | ||
] | ||
input[1] = CELLRANGER_MKREF.out.reference | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
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
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 @@ | ||
cellranger/count: | ||
- "modules/nf-core/cellranger/count/**" |
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.