-
Notifications
You must be signed in to change notification settings - Fork 447
[DRAFT] Add NGSCheckMate in as part of a cram sampleQC subworkflow #1252
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
94ca07d
Add NGSCheckMate
SPPearce 21d38a2
Update CHANGELOG
SPPearce 2e72d1c
Update tools list for sampleqc
SPPearce cee8614
Update CHANGELOG.md
SPPearce 9c48c87
Merge branch 'dev' into ngscheckmate
SPPearce a2496de
Update conf/igenomes.config
SPPearce 05f681e
Update conf/igenomes.config
SPPearce 9d9105c
Update CHANGELOG.md
SPPearce 2ab1e4d
Update conf/igenomes.config
SPPearce ac649e0
Update conf/igenomes.config
SPPearce a0e5f43
Add tests, swap to ngscheckmate
SPPearce 2c95984
Merge branch 'dev' into ngscheckmate
SPPearce 97e1fa6
Fix NGSCheckMate test name
SPPearce 64273f3
Merge remote-tracking branch 'refs/remotes/origin/ngscheckmate' into …
SPPearce ad97096
Update test
SPPearce 7378fe9
Update output path and docs
SPPearce d37c24e
Change ngscheckmate publishdir
SPPearce 4e73bdb
Update tests/config/tags.yml
SPPearce 8f59abc
Merge branch 'dev' into ngscheckmate
maxulysse 3acaef9
Fix mer
8000
ge conflict
SPPearce e1706a3
Apply code review suggestions, fix channel to mpileup
SPPearce 01ae112
Swap around bed location in confs
SPPearce 13df981
Swap to modules test-data
SPPearce 32227d3
Apply suggestions from code review
SPPearce 10185fa
Add getGenomeAttribute check
SPPearce ac87102
Update conf/test.config
SPPearce cf1e116
Move blank line
SPPearce 5f25439
Add to somatic full test
SPPearce 4e55d5d
Merge remote-tracking branch 'origin/dev' into ngscheckmate
SPPearce 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
There are no files selected for viewing
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
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,26 @@ | ||
process { | ||
withName: ".*BAM_NGSCHECKMATE:BCFTOOLS_MPILEUP" { | ||
|
||
publishDir = [ | ||
mode: params.publish_dir_mode, | ||
path: { "${params.outdir}/reports/ngscheckmate/vcfs" }, | ||
pattern: "*{vcf.gz}" | ||
] | ||
ext.prefix = { "${meta.id}.ngscheckmate" } | ||
ext.when = { params.tools && params.tools.split(',').contains('ngscheckmate') } | ||
ext.args2 = '--no-version --ploidy 1 -c' | ||
ext.args3 = '--no-version' | ||
} | ||
|
||
withName: ".*BAM_NGSCHECKMATE:NGSCHECKMATE_NCM" { | ||
ext.args = '-V' | ||
|
||
publishDir = [ | ||
mode: params.publish_dir_mode, | ||
path: { "${params.outdir}/reports/ngscheckmate/" }, | ||
pattern: "*" | ||
] | ||
|
||
} | ||
|
||
} |
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,30 @@ | ||
include { BAM_NGSCHECKMATE } from '../../../subworkflows/nf-core/bam_ngscheckmate/main' | ||
|
||
workflow CRAM_SAMPLEQC { | ||
|
||
take: | ||
ch_cram // channel: [ val(meta), cram, crai ] | ||
ngscheckmate_bed // channel: [ ngscheckmate_bed ] | ||
fasta // channel: [ fasta ] | ||
|
||
main: | ||
|
||
ch_versions = Channel.empty() | ||
|
||
ch_ngscheckmate_bed = ngscheckmate_bed.map{bed -> [[id: "ngscheckmate"], bed]} | ||
|
||
ch_fasta = fasta.map{fasta -> [[id: "genome"], fasta]} | ||
|
||
BAM_NGSCHECKMATE ( ch_cram.map{meta, cram, crai -> [meta, cram]}, ch_ngscheckmate_bed, ch_fasta) | ||
ch_versions = ch_versions.mix(BAM_NGSCHECKMATE.out.versions.first()) | ||
|
||
emit: | ||
corr_matrix = BAM_NGSCHECKMATE.out.corr_matrix // channel: [ meta, corr_matrix ] | ||
matched = BAM_NGSCHECKMATE.out.matched // channel: [ meta, matched ] | ||
all = BAM_NGSCHECKMATE.out.all // channel: [ meta, all ] | ||
vcf = BAM_NGSCHECKMATE.out.vcf // channel: [ meta, vcf ] | ||
pdf = BAM_NGSCHECKMATE.out.pdf // channel: [ meta, pdf ] | ||
|
||
versions = ch_versions // channel: [ versions.yml ] | ||
} | ||
|
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.