-
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
Open
eduard-watchmaker
wants to merge
46
commits into
master
Choose a base branch
from
add_fq2bam_fq_align_dd_bwamem
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
cec1719
Added fq2bam
eduard-watchmaker e2a4e73
test fix
eduard-watchmaker 548bcae
typo
eduard-watchmaker 222cdc6
PE channel
eduard-watchmaker f3b9ad7
tidying
eduard-watchmaker fc3bd64
gpu snap
7688d5b
test fix for snaps
eduard-watchmaker 370d087
Merge branch 'add_fq2bam_fq_align_dd_bwamem' of github.com:nf-core/mo…
eduard-watchmaker 3a4c54b
gpu snapshot
0201ccb
PR feedback
eduard-watchmaker 61a9670
tests
eduard-watchmaker 4a214d0
cpu snapshot
d30ae9a
tests
eduard-watchmaker e8888ff
Merge branch 'add_fq2bam_fq_align_dd_bwamem' of github.com:nf-core/mo…
eduard-watchmaker 33a8c26
last snapshot
021771c
Merge branch 'master' into add_fq2bam_fq_align_dd_bwamem
eduard-watchmaker 509acdc
fix channels
eduard-watchmaker e90793a
last snapshot
75c7cdf
Merge branch 'master' into add_fq2bam_fq_align_dd_bwamem
eduard-watchmaker d40d5b5
PR feedback
eduard-watchmaker f02a8de
Merge branch 'add_fq2bam_fq_align_dd_bwamem' of github.com:nf-core/mo…
eduard-watchmaker 3378759
PR feedback
eduard-watchmaker 54d4284
new cpu snapshot
3cd511d
changing test
eduard-watchmaker 1682b6b
changing test
eduard-watchmaker a1b02e2
new gpu snapshot
2a7d306
Merge branch 'master' into add_fq2bam_fq_align_dd_bwamem
eduard-watchmaker 1c96e28
Merge branch 'master' into add_fq2bam_fq_align_dd_bwamem
eduard-watchmaker bb9dfe5
Merge branch 'master' into add_fq2bam_fq_align_dd_bwamem
eduard-watchmaker 509876c
[automated] Update gpu snapshot
nf-core-bot 12e9cc6
Merge branch 'master' into add_fq2bam_fq_align_dd_bwamem
Joon-Klaps f87720b
PR feedback
66d1f4e
PR feedback
d80d9d0
PR feedback
dc03a66
PR feedback
20d20fa
PR feedback
8aee1e7
PR feedback
a420277
PR feedback
1835a16
PR feedback
11e81af
PR feedback
1b74374
PR feedback
5b8b7ba
PR feedback
b3b1e73
containerOptions back
ddbec0a
genome test name
40ae71a
genome test name
8a687c0
wrong comment
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Submodule setup-nextflow
added at
6c2e22
This file contains hidden or 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 hidden or 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
4 changes: 3 additions & 1 deletion
4
subworkflows/nf-core/fastq_align_dedup_bwamem/nextflow.config
100644 → 100755
This file contains hidden or 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
213 changes: 213 additions & 0 deletions
213
subworkflows/nf-core/fastq_align_dedup_bwamem/tests/gpu.nf.test
This file contains hidden or 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,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.of([ [ id:'test' ], 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] = 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") { | ||
| 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] = "bam" // output_fmt | ||
| input[7] = Channel.of([[:], []]) // interval_file | ||
| input[8] = Channel.of([[:], []]) // known_sites | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| 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] = "bam" // output_fmt | ||
| input[7] = [[:], [] ] // interval_file | ||
| input[8] = [[:], [] ] // known_sites | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| 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] = "bam" // output_fmt | ||
| input[7] = [[:], [] ] // interval_file | ||
| input[8] = [[:], [] ] // known_sites | ||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assertAll( | ||
| { assert workflow.success }, | ||
| { assert snapshot( | ||
| workflow.out, | ||
| workflow.out.versions.collect{ path(it).yaml } | ||
| ).match() | ||
| } | ||
| ) | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.