-
Notifications
You must be signed in to change notification settings - Fork 938
Add fq2bam fq align dd bwamem #9309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 41 commits
cec1719
e2a4e73
548bcae
222cdc6
f3b9ad7
fc3bd64
7688d5b
370d087
3a4c54b
0201ccb
61a9670
4a214d0
d30ae9a
e8888ff
33a8c26
021771c
509acdc
e90793a
75c7cdf
d40d5b5
f02a8de
3378759
54d4284
3cd511d
1682b6b
a1b02e2
2a7d306
1c96e28
bb9dfe5
509876c
12e9cc6
f87720b
66d1f4e
d80d9d0
dc03a66
20d20fa
8aee1e7
a420277
1835a16
11e81af
1b74374
5b8b7ba
b3b1e73
ddbec0a
40ae71a
8a687c0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| { | ||
| "nextflow.formatting.harshilAlignment": true | ||
| "nextflow.formatting.harshilAlignment": true, | ||
| "nextflow.telemetry.enabled": true | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,213 @@ | ||
| nextflow_workflow { | ||
|
|
||
| name "Test Subworkflow FASTQ_ALIGN_DEDUP_BWAMEM" | ||
| script "../main.nf" | ||
| workflow "FASTQ_ALIGN_DEDUP_BWAMEM" | ||
| config "./nextflow.config" | ||
|
|
||
| tag "gpu" | ||
| tag "subworkflows" | ||
| tag "subworkflows_nfcore" | ||
| tag "subworkflows/fastq_align_dedup_bwamem" | ||
| tag "parabricks/fq2bam" | ||
| tag "samtools/index" | ||
| tag "picard/markduplicates" | ||
| tag "bwa" | ||
| tag "bwa/index" | ||
| tag "parabricks/fq2bam" | ||
| tag "samtools" | ||
| tag "samtools/sort" | ||
| tag "samtools/index" | ||
| tag "samtools/idxstats" | ||
| tag "samtools/flagstat" | ||
| tag "samtools/stats" | ||
| tag "bam_sort_stats_samtools" | ||
| tag "picard/markduplicates" | ||
| tag "picard/addorreplacereadgroups" | ||
|
|
||
| setup { | ||
| run("BWA_INDEX") { | ||
| script "../../../../modules/nf-core/bwa/index/main.nf" | ||
| process { | ||
| """ | ||
| input[0] = Channel.value([ [ id:'genome' ],file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true)]) | ||
| """ | ||
| } | ||
| } | ||
| } | ||
|
|
||
| test("Sarscov2 fasta - SE - deduplicate - with GPU parabricks/fq2bam") { | ||
| when { | ||
| workflow { | ||
| """ | ||
| input[0] = Channel.of([ | ||
| [ id:'test', single_end:true ], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true) | ||
| ]) | ||
| input[1] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
| ]) | ||
| input[2] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta.fai', checkIfExists: true) | ||
| ]) | ||
| input[3] = BWA_INDEX.out.index | ||
| input[4] = false // skip_deduplication | ||
| input[5] = true // use_gpu | ||
| input[6] = [[:], [] ] // interval_file | ||
| input[7] = [[:], [] ] // known_sites | ||
| input[8] = "bam" // output_fmt | ||
|
Comment on lines
55
to
60
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your variables are not passed correcty, ch_reads // channel: [ val(meta), [ reads ] ] Outfmt comes before interval_file & known sites
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks, that totally went under my radar!
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed, still get error: |
||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assertAll( | ||
| { assert workflow.success }, | ||
| { assert snapshot( | ||
| workflow.out.bam.collect { meta, bamfile -> bam(bamfile).getReadsMD5() }, | ||
| workflow.out.bai.collect { meta, bai -> file(bai).name }, | ||
| workflow.out.samtools_flagstat, | ||
| workflow.out.samtools_stats, | ||
| workflow.out.samtools_index_stats, | ||
| workflow.out.picard_metrics.collect { meta, metrics -> file(metrics).name }, | ||
| workflow.out.multiqc.flatten().collect { path -> file(path).name }, | ||
| workflow.out.versions | ||
| ).match() | ||
| } | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| test("Sarscov2 fasta - SE - skip deduplication - with GPU parabricks/fq2bam") { | ||
| when { | ||
| workflow { | ||
| """ | ||
| input[0] = Channel.of([ | ||
| [ id:'test', single_end:true ], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true) | ||
| ]) | ||
| input[1] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
| ]) | ||
| input[2] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta.fai', checkIfExists: true) | ||
| ]) | ||
| input[3] = BWA_INDEX.out.index | ||
| input[4] = true // skip_deduplication | ||
| input[5] = true // use_gpu | ||
| input[6] = Channel.of([[:], []]) // interval_file | ||
| input[7] = Channel.of([[:], []]) // known_sites | ||
| input[8] = "bam" // output_fmt | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assertAll( | ||
| { assert workflow.success }, | ||
| { assert snapshot( | ||
| workflow.out.bam.collect { meta, bamfile -> bam(bamfile).getReadsMD5() }, | ||
| workflow.out.bai.collect { meta, bai -> file(bai).name }, | ||
| workflow.out.samtools_flagstat, | ||
| workflow.out.samtools_stats, | ||
| workflow.out.samtools_index_stats, | ||
| workflow.out.picard_metrics.collect { meta, metrics -> file(metrics).name }, | ||
| workflow.out.multiqc.flatten().collect { path -> file(path).name }, | ||
| workflow.out.versions | ||
| ).match() | ||
| } | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| test("Sarscov2 fasta - PE - skip deduplication - with GPU parabricks/fq2bam") { | ||
|
|
||
| when { | ||
| workflow { | ||
| """ | ||
| input[0] = Channel.of([ | ||
| [ id:'test', single_end:false ], | ||
| [ | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true), | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true) | ||
| ] | ||
| ]) | ||
| input[1] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
| ]) | ||
| input[2] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta.fai', checkIfExists: true) | ||
| ]) | ||
| input[3] = BWA_INDEX.out.index | ||
| input[4] = true // skip_deduplication | ||
| input[5] = true // use_gpu | ||
| input[6] = Channel.of([[:], []]) // interval_file | ||
| input[7] = Channel.of([[:], []]) // known_sites | ||
| input[8] = "bam" // output_fmt | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assertAll( | ||
| { assert workflow.success }, | ||
| { assert snapshot( | ||
| workflow.out.bam.collect { meta, bamfile -> bam(bamfile).getReadsMD5() }, | ||
| workflow.out.bai.collect { meta, bai -> file(bai).name }, | ||
| workflow.out.samtools_flagstat, | ||
| workflow.out.samtools_stats, | ||
| workflow.out.samtools_index_stats, | ||
| workflow.out.picard_metrics.collect { meta, metrics -> file(metrics).name }, | ||
| workflow.out.multiqc.flatten().collect { path -> file(path).name }, | ||
| workflow.out.versions | ||
| ).match() | ||
| } | ||
| ) | ||
| } | ||
| } | ||
|
|
||
| test("Sarscov2 fasta - SE - skip deduplication - with GPU parabricks/fq2bam - stub") { | ||
| options '-stub' | ||
| when { | ||
| workflow { | ||
| """ | ||
| input[0] = Channel.of([ | ||
| [ id:'test', single_end:true ], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true) | ||
| ]) | ||
| input[1] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
| ]) | ||
| input[2] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta.fai', checkIfExists: true) | ||
| ]) | ||
| input[3] = BWA_INDEX.out.index | ||
| input[4] = false // deduplicate | ||
| input[5] = true // use_gpu | ||
| input[6] = Channel.of([[:], []]) // interval_file | ||
| input[7] = Channel.of([[:], []]) // known_sites | ||
| input[8] = "bam" // output_fmt | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assertAll( | ||
| { assert workflow.success }, | ||
| { assert snapshot( | ||
| workflow.out, | ||
| workflow.out.versions.collect{ path(it).yaml } | ||
| ).match() | ||
| } | ||
| ) | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.