Skip to content

Commit

Permalink
Merge pull request #1214 from FriederikeHanssen/controlfreec_bug
Browse files Browse the repository at this point in the history
Don't pass in intervals file to freec
  • Loading branch information
maxulysse authored Sep 8, 2023
2 parents c695d25 + 58457e8 commit 9085dee
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Rapaselet is a delta formed by the Rapaätno river between the Bielloriehppe mas
- [#1203](https://github.com/nf-core/sarek/pull/1203) - Fix issue with Singularity containers on test profiles
- [#1204](https://github.com/nf-core/sarek/pull/1204) - Fix issue with nf-validation: lane can be a requirement of bam too now
- [#1205](https://github.com/nf-core/sarek/pull/1205) - Less tests triggered
- [#1214](https://github.com/nf-core/sarek/pull/1214) - Don't pass in intervals file to ControlFREEC for WGS analysis
- [#1215](https://github.com/nf-core/sarek/pull/1215) - Fix `meta.id` for mutect2 tumor_only subworkflows

### Dependencies
Expand Down
5 changes: 4 additions & 1 deletion subworkflows/local/bam_variant_calling_somatic_all/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ workflow BAM_VARIANT_CALLING_SOMATIC_ALL {
gc_file // channel: [optional] ascat gc content file
rt_file // channel: [optional] ascat rt file
joint_mutect2 // boolean: [mandatory] [default: false] run mutect2 in joint mode
wes // boolean: [mandatory] [default: false] whether targeted data is processed

main:
versions = Channel.empty()
Expand Down Expand Up @@ -94,6 +95,8 @@ workflow BAM_VARIANT_CALLING_SOMATIC_ALL {

length_file = cf_chrom_len ?: fasta_fai

intervals_controlfreec = wes ? intervals_bed_combined : []

BAM_VARIANT_CALLING_SOMATIC_CONTROLFREEC(
mpileup_pair,
fasta,
Expand All @@ -102,7 +105,7 @@ workflow BAM_VARIANT_CALLING_SOMATIC_ALL {
dbsnp_tbi,
chr_files,
mappability,
intervals_bed_combined
intervals_controlfreec
)

versions = versions.mix(MPILEUP_NORMAL.out.versions)
Expand Down
6 changes: 4 additions & 2 deletions subworkflows/local/bam_variant_calling_tumor_only_all/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ workflow BAM_VARIANT_CALLING_TUMOR_ONLY_ALL {
panel_of_normals // channel: [optional] panel_of_normals
panel_of_normals_tbi // channel: [optional] panel_of_normals_tbi
joint_mutect2 // boolean: [mandatory] [default: false] run mutect2 in joint mode
wes // boolean: [mandatory] [default: false] whether targeted data is processed

main:
versions = Channel.empty()
Expand All @@ -61,7 +62,8 @@ workflow BAM_VARIANT_CALLING_TUMOR_ONLY_ALL {

// CONTROLFREEC (depends on MPILEUP)
if (tools.split(',').contains('controlfreec')) {
length_file = cf_chrom_len ?: fasta_fai
length_file = cf_chrom_len ?: fasta_fai
intervals_controlfreec = wes ? intervals_bed_combined : []

BAM_VARIANT_CALLING_TUMOR_ONLY_CONTROLFREEC(
// Remap channel to match module/subworkflow
Expand All @@ -72,7 +74,7 @@ workflow BAM_VARIANT_CALLING_TUMOR_ONLY_ALL {
dbsnp_tbi,
chr_files,
mappability,
intervals_bed_combined
intervals_controlfreec
)

versions = versions.mix(BAM_VARIANT_CALLING_TUMOR_ONLY_CONTROLFREEC.out.versions)
Expand Down
6 changes: 4 additions & 2 deletions workflows/sarek.nf
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,8 @@ workflow SAREK {
mappability,
pon,
pon_tbi,
params.joint_mutect2
params.joint_mutect2,
params.wes
)

// PAIR VARIANT CALLING
Expand Down Expand Up @@ -1175,7 +1176,8 @@ workflow SAREK {
loci_files,
gc_file,
rt_file,
params.joint_mutect2
params.joint_mutect2,
params.wes
)

// POST VARIANTCALLING
Expand Down

0 comments on commit 9085dee

Please sign in to comment.