Skip to content
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

Use target bed files as regions instead of bait intervals for SNV calling in WES samples #636

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### `Changed`

- Suffix used to identify unique fastq pairs from "\_T" to "\_LNUMBER" [#638](https://github.com/nf-core/raredisease/pull/638)
- Change the regions used by deepavariant for WES samples from bait interval files to target bed files [#636](https://github.com/nf-core/raredisease/pull/636)
ramprasadn marked this conversation as resolved.
Show resolved Hide resolved
- Merge output from germlinecnvcaller [#635](https://github.com/nf-core/raredisease/pull/635)
- Update tools [#623](https://github.com/nf-core/raredisease/pull/623)
- Update output file name prefix for upd and chromograph to sample-based [#620](https://github.com/nf-core/raredisease/pull/620)
Expand Down
4 changes: 2 additions & 2 deletions subworkflows/local/call_snv.nf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ workflow CALL_SNV {
ch_dbsnp // channel: [optional] [ val(meta), path(vcf) ]
ch_dbsnp_tbi // channel: [optional] [ val(meta), path(tbi) ]
ch_call_interval // channel: [mandatory] [ path(intervals) ]
ch_bait_intervals // channel: [mandatory] [ path(intervals) ]
ch_target_bed // channel: [mandatory] [ val(meta), path(bed), path(index) ]
ch_ml_model // channel: [mandatory] [ path(model) ]
ch_par_bed // channel: [optional] [ val(meta), path(bed) ]
ch_case_info // channel: [mandatory] [ val(case_info) ]
Expand All @@ -55,7 +55,7 @@ workflow CALL_SNV {
ch_genome_bam_bai,
ch_genome_fasta,
ch_genome_fai,
ch_bait_intervals,
ch_target_bed,
ch_par_bed,
ch_case_info,
ch_foundin_header,
Expand Down
6 changes: 4 additions & 2 deletions subworkflows/local/variant_calling/call_snv_deepvariant.nf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ include { BCFTOOLS_NORM as SPLIT_MULTIALLELICS_GL } from '../../../modules/nf
include { BCFTOOLS_NORM as REMOVE_DUPLICATES_GL } from '../../../modules/nf-core/bcftools/norm/main'
include { DEEPVARIANT_RUNDEEPVARIANT as DEEPVARIANT } from '../../../modules/nf-core/deepvariant/rundeepvariant/main'
include { GLNEXUS } from '../../../modules/nf-core/glnexus/main'
include { TABIX_BGZIP } from '../../../modules/nf-core/tabix/bgzip/main'
include { TABIX_TABIX as TABIX_GL } from '../../../modules/nf-core/tabix/tabix/main'
include { TABIX_TABIX as TABIX_ANNOTATE } from '../../../modules/nf-core/tabix/tabix/main'
include { ADD_VARCALLER_TO_BED } from '../../../modules/local/add_varcallername_to_bed'
Expand All @@ -16,7 +17,7 @@ workflow CALL_SNV_DEEPVARIANT {
ch_bam_bai // channel: [mandatory] [ val(meta), path(bam), path(bai) ]
ch_genome_fasta // channel: [mandatory] [ val(meta), path(fasta) ]
ch_genome_fai // channel: [mandatory] [ val(meta), path(fai) ]
ch_bait_intervals // channel: [mandatory] [ path(intervals) ]
ch_target_bed // channel: [mandatory] [ val(meta), path(bed), path(index) ]
ch_par_bed // channel: [optional] [ val(meta), path(bed) ]
ch_case_info // channel: [mandatory] [ val(case_info) ]
ch_foundin_header // channel: [mandatory] [ path(header) ]
Expand All @@ -26,8 +27,9 @@ workflow CALL_SNV_DEEPVARIANT {
ch_versions = Channel.empty()

if (params.analysis_type.equals("wes")) {
TABIX_BGZIP(ch_target_bed.map{meta, gzbed, index -> return [meta, gzbed]})
ch_bam_bai
.combine (ch_bait_intervals)
.combine (TABIX_BGZIP.out.output.map {meta, bed -> return bed})
.set { ch_deepvar_in }
} else if (params.analysis_type.equals("wgs")) {
ch_bam_bai
Expand Down
2 changes: 1 addition & 1 deletion workflows/raredisease.nf
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ workflow RAREDISEASE {
ch_dbsnp,
ch_dbsnp_tbi,
ch_call_interval,
ch_bait_intervals,
ch_target_bed,
ch_ml_model,
ch_par_bed,
ch_case_info,
Expand Down
Loading