-
Notifications
You must be signed in to change notification settings - Fork 420
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
Add module bcftools/norm to sarek (in progress) #1483
base: dev
Are you sure you want to change the base?
Changes from 13 commits
4772da1
451aaec
d97726b
e034ff0
8469832
e885888
9e94a05
2bdba7e
1214f10
b7ba4f2
34bf47b
6dff9af
d289261
c78af62
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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. Well, I've tried an approach, but now I've got a new error: -- Check script './workflows/sarek/../../subworkflows/local/post_variantcalling/../vcf_concatenate_germline/main.nf' at line: 27 or see '.nextflow.log' file for more details I've never done groovy, I think I've broken everything or maybe I'm making it too complex ^^' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ workflow POST_VARIANTCALLING { | |
|
||
take: | ||
vcfs | ||
fasta | ||
concatenate_vcfs | ||
|
||
main: | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -5,6 +5,7 @@ | |||||
// Concatenation of germline vcf-files | ||||||
include { ADD_INFO_TO_VCF } from '../../../modules/local/add_info_to_vcf/main' | ||||||
include { TABIX_BGZIPTABIX as TABIX_EXT_VCF } from '../../../modules/nf-core/tabix/bgziptabix/main' | ||||||
include { BCFTOOLS_NORM as GERMLINE_VCFS_NORM } from '../../../modules/nf-core/bcftools/norm/main' | ||||||
include { BCFTOOLS_CONCAT as GERMLINE_VCFS_CONCAT } from '../../../modules/nf-core/bcftools/concat/main' | ||||||
include { BCFTOOLS_SORT as GERMLINE_VCFS_CONCAT_SORT } from '../../../modules/nf-core/bcftools/sort/main' | ||||||
include { TABIX_TABIX as TABIX_GERMLINE_VCFS_CONCAT_SORT } from '../../../modules/nf-core/tabix/tabix/main' | ||||||
|
@@ -13,6 +14,7 @@ workflow CONCATENATE_GERMLINE_VCFS { | |||||
|
||||||
take: | ||||||
vcfs | ||||||
fasta | ||||||
|
||||||
main: | ||||||
versions = Channel.empty() | ||||||
|
@@ -23,14 +25,18 @@ workflow CONCATENATE_GERMLINE_VCFS { | |||||
|
||||||
// Gather vcfs and vcf-tbis for concatenating germline-vcfs | ||||||
germline_vcfs_with_tbis = TABIX_EXT_VCF.out.gz_tbi.map{ meta, vcf, tbi -> [ meta.subMap('id'), vcf, tbi ] }.groupTuple() | ||||||
|
||||||
GERMLINE_VCFS_CONCAT(germline_vcfs_with_tbis) | ||||||
|
||||||
// Normalize vcf-files and concat | ||||||
GERMLINE_VCFS_NORM(germline_vcfs_with_tbis, fasta) | ||||||
GERMLINE_VCFS_CONCAT(GERMLINE_VCFS_NORM.out.vcf) | ||||||
GERMLINE_VCFS_CONCAT_SORT(GERMLINE_VCFS_CONCAT.out.vcf) | ||||||
TABIX_GERMLINE_VCFS_CONCAT_SORT(GERMLINE_VCFS_CONCAT_SORT.out.vcf) | ||||||
|
||||||
|
||||||
|
||||||
// Gather versions of all tools used | ||||||
versions = versions.mix(ADD_INFO_TO_VCF.out.versions) | ||||||
versions = versions.mix(TABIX_EXT_VCF.out.versions) | ||||||
versions = versions.mix(GERMLINE_VCFS_NORM.out.versions) | ||||||
versions = versions.mix(GERMLINE_VCFS_CONCAT.out.versions) | ||||||
versions = versions.mix(GERMLINE_VCFS_CONCAT.out.versions) | ||||||
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.
Suggested change
That seems like a copy-paste bug. Probably my bad |
||||||
versions = versions.mix(TABIX_GERMLINE_VCFS_CONCAT_SORT.out.versions) | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we expand this to all vcfs