-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump kallistobustools to 0.28.2 (#4981)
* bump version, add new options from 0.28.2 * waiting on conda * style * Update environment.yml * workflow mode is reqd * editing tests: the quantification logic has changed * fixing licenses * workflow should be specified explicitly * container fixed at bioconda * incorrectly recorded md5s * Added nf-tests for kallistobustools modules * Delete modules/nf-core/kallistobustools/ref/tests/nextflow.config * Added kallistobustools/ref tag to kallistobustools/count test * Don't include path lines in count test * Apply suggestions from code review Co-authored-by: Jasmin Frangenberg <73216762+jasmezz@users.noreply.github.com> --------- Co-authored-by: Carson J Miller <carsonjmiller@outlook.com> Co-authored-by: Carson J Miller <68351153+CarsonJM@users.noreply.github.com> Co-authored-by: Jasmin Frangenberg <73216762+jasmezz@users.noreply.github.com>
- Loading branch information
1 parent
3f5f517
commit de82159
Showing
20 changed files
with
531 additions
and
178 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 |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
- bioconda | ||
- defaults | ||
dependencies: | ||
- bioconda::kb-python=0.27.2 | ||
- bioconda::kb-python=0.28.2 |
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,98 @@ | ||
nextflow_process { | ||
|
||
name "Test Process KALLISTOBUSTOOLS_COUNT" | ||
script "../main.nf" | ||
process "KALLISTOBUSTOOLS_COUNT" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "kallistobustools" | ||
tag "kallistobustools/count" | ||
tag "kallistobustools/ref" | ||
|
||
setup { | ||
run("KALLISTOBUSTOOLS_REF") { | ||
script "../../ref/main.nf" | ||
process { | ||
""" | ||
input[0] = file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true) | ||
input[1] = file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.gtf', checkIfExists: true) | ||
input[2] = "standard" | ||
""" | ||
} | ||
} | ||
} | ||
|
||
test("genome.fasta + genome.gtf + '10X3' + 'standard'") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = Channel.of( | ||
[ | ||
[id:'test'], // meta map | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/10xgenomics/cellranger/10k_pbmc_cmo/fastqs/gex_1/subsampled_SC3_v3_NextGem_DI_CellPlex_Human_PBMC_10K_1_gex_S2_L001_R1_001.fastq.gz', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/10xgenomics/cellranger/10k_pbmc_cmo/fastqs/gex_1/subsampled_SC3_v3_NextGem_DI_CellPlex_Human_PBMC_10K_1_gex_S2_L001_R2_001.fastq.gz', checkIfExists: true) | ||
] | ||
] | ||
) | ||
input[1] = KALLISTOBUSTOOLS_REF.out.index | ||
input[2] = KALLISTOBUSTOOLS_REF.out.t2g | ||
input[3] = KALLISTOBUSTOOLS_REF.out.cdna_t2c.ifEmpty{ [] } // when empty the module doesn't run unless something is passed. | ||
input[4] = KALLISTOBUSTOOLS_REF.out.intron_t2c.ifEmpty{ [] } // when empty the module doesn't run unless something is passed. | ||
input[5] = "10XV3" | ||
input[6] = "standard" | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
process.out.versions, | ||
process.out.matrix, | ||
path(process.out.count.get(0).get(1)).list().findAll { file(it.toString()).name != "run_info.json" && file(it.toString()).name != "kb_info.json" }, | ||
file(path(process.out.count.get(0).get(1)).list().find { file(it.toString()).name == "kb_info.json" }.toString()).readLines()[15..22], | ||
file(path(process.out.count.get(0).get(1)).list().find { file(it.toString()).name == "run_info.json" }.toString()).readLines()[0..9] | ||
).match() | ||
} | ||
) | ||
} | ||
} | ||
|
||
test("genome.fasta + genome.gtf + '10X3' + 'standard' - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = Channel.of( | ||
[ | ||
[id:'test'], // meta map | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/10xgenomics/cellranger/10k_pbmc_cmo/fastqs/gex_1/subsampled_SC3_v3_NextGem_DI_CellPlex_Human_PBMC_10K_1_gex_S2_L001_R1_001.fastq.gz', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/10xgenomics/cellranger/10k_pbmc_cmo/fastqs/gex_1/subsampled_SC3_v3_NextGem_DI_CellPlex_Human_PBMC_10K_1_gex_S2_L001_R2_001.fastq.gz', checkIfExists: true) | ||
] | ||
] | ||
) | ||
input[1] = KALLISTOBUSTOOLS_REF.out.index | ||
input[2] = KALLISTOBUSTOOLS_REF.out.t2g | ||
input[3] = KALLISTOBUSTOOLS_REF.out.cdna_t2c.ifEmpty{ [] } // when empty the module doesn't run unless something is passed. | ||
input[4] = KALLISTOBUSTOOLS_REF.out.intron_t2c.ifEmpty{ [] } // when empty the module doesn't run unless something is passed. | ||
input[5] = "10XV3" | ||
input[6] = "standard" | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
} |
100 changes: 100 additions & 0 deletions
100
modules/nf-core/kallistobustools/count/tests/main.nf.test.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
process { | ||
withName: KALLISTOBUSTOOLS_COUNT { | ||
ext.args = '--cellranger -m 1' | ||
} | ||
} |
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 @@ | ||
kallistobustools/count: | ||
- "modules/nf-core/kallistobustools/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 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.