-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add expected CN-files (for XX/XY), MAF-vcf and option to use an exclu…
…de regions file. Also update HiFiCNV version to v.0.1.7
- Loading branch information
Showing
6 changed files
with
108 additions
and
33 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
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
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 |
---|---|---|
@@ -1,19 +1,48 @@ | ||
include { HIFICNV } from '../../modules/local/hificnv' | ||
include { HIFICNV } from '../../modules/local/pacbio/hificnv' | ||
|
||
workflow CNV { | ||
|
||
take: | ||
ch_bam_bai // channel: [ val(meta), [[ bam ], [bai]] ] | ||
ch_bam_bai_vcf // channel: [ val(meta), [[ bam ], [bai], [vcf] ] | ||
ch_fasta | ||
ch_expected_xy_bed | ||
ch_expected_xx_bed | ||
ch_exclude_bed | ||
|
||
main: | ||
ch_versions = Channel.empty() | ||
|
||
HIFICNV(ch_bam_bai, ch_fasta, [[],[]], [], []) | ||
// Split samples if male or female | ||
ch_bam_bai_vcf | ||
.branch{ meta, bam, bai, vcf -> | ||
male: meta.sex == '1' | ||
female: meta.sex == '2' | ||
} | ||
.set{branched_bam} | ||
|
||
// Then merge male with XY-bed | ||
branched_bam | ||
.male | ||
.combine(ch_expected_xy_bed) | ||
.set {branched_bam_male} | ||
|
||
// And female with XX-bed | ||
branched_bam | ||
.female | ||
.combine(ch_expected_xx_bed) | ||
.set {branched_bam_female} | ||
|
||
// Concatenate the two channels | ||
branched_bam_male | ||
.concat(branched_bam_female) | ||
.set{ ch_hificnv_in } | ||
|
||
// Run HiFiCNV | ||
HIFICNV(ch_hificnv_in, ch_fasta, ch_exclude_bed) | ||
|
||
ch_versions = ch_versions.mix(HIFICNV.out.versions) | ||
|
||
emit: | ||
versions = ch_versions // channel: [ versions.yml ] | ||
versions = ch_versions // channel: [ versions.yml ] | ||
} | ||
|
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