Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -16,6 +16,7 @@ Piellorieppe is one of the main massif in the Sarek National Park.
- [#117](https://github.com/nf-core/sarek/pull/117) - Add `Trim Galore` possibilities to Sarek
- [#141](https://github.com/nf-core/sarek/pull/141) - Add containers for `WBcel235`
- [#150](https://github.com/nf-core/sarek/pull/150), [#151](https://github.com/nf-core/sarek/pull/151), [#154](https://github.com/nf-core/sarek/pull/154) - Add AWS mega test GitHub Actions
- [#153](https://github.com/nf-core/sarek/pull/153) - Add `CNVkit` possibilities to Sarek
- [#158](https://github.com/nf-core/sarek/pull/158) - Added `ggplot2` version `3.3.0`
- [#163](https://github.com/nf-core/sarek/pull/163) - Add [MSIsensor](https://github.com/ding-lab/msisensor) in tools and container
- [#164](https://github.com/nf-core/sarek/pull/164) - Add `--no_gatk_spark` params and tests
Expand Down
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies:
- bioconda::bcftools=1.9
- bioconda::bwa=0.7.17
- bioconda::cancerit-allelecount=4.0.2
- bioconda::cnvkit=0.9.6
- bioconda::control-freec=11.5
- bioconda::ensembl-vep=99.2
- bioconda::fastqc=0.11.9
Expand All @@ -32,4 +33,4 @@ dependencies:
- bioconda::vcfanno=0.3.2
- bioconda::vcftools=0.1.16
- conda-forge::pigz=2.3.4
- conda-forge::r-ggplot2=3.3.0
- conda-forge::r-ggplot2=3.3.0
36 changes: 34 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def helpMessage() {
--target_bed [file] Target BED file for whole exome or targeted sequencing
Default: 1000.0
--tools [str] Specify tools to use for variant calling:
Available: ASCAT, ControlFREEC, FreeBayes, HaplotypeCaller
Available: ASCAT, CNVkit, ControlFREEC, FreeBayes, HaplotypeCaller
Manta, mpileup, MSIsensor, Mutect2, Strelka, TIDDIT
and/or for annotation:
snpEff, VEP, merge
Expand Down Expand Up @@ -2317,7 +2317,7 @@ pairBam = bamNormal.cross(bamTumor).map {
pairBam = pairBam.dump(tag:'BAM Somatic Pair')

// Manta, Strelka, Mutect2, MSIsensor
(pairBamManta, pairBamStrelka, pairBamStrelkaBP, pairBamCalculateContamination, pairBamFilterMutect2, pairBamMsisensor, pairBam) = pairBam.into(7)
(pairBamManta, pairBamStrelka, pairBamStrelkaBP, pairBamCalculateContamination, pairBamFilterMutect2, pairBamMsisensor, pairBamCNVkit, pairBam) = pairBam.into(8)

// Making Pair Bam for Sention

Expand Down Expand Up @@ -2866,6 +2866,37 @@ process StrelkaBP {

vcfStrelkaBP = vcfStrelkaBP.dump(tag:'Strelka BP')

// STEP CNVkit

process CNVkit {
tag {idSampleTumor + "_vs_" + idSampleNormal}

publishDir "${params.outdir}/VariantCalling/${idSampleTumor}_vs_${idSampleNormal}/CNVkit", mode: params.publish_dir_mode

input:
set idPatient, idSampleNormal, file(bamNormal), file(baiNormal), idSampleTumor, file(bamTumor), file(baiTumor) from pairBamCNVkit
file(targetBED) from ch_target_bed
file(fasta) from ch_fasta
output:
set idPatient, idSampleNormal, idSampleTumor, file("${idSampleTumor}*"), file("${idSampleNormal}*") into cnvkitOut

when: 'cnvkit' in tools && params.target_bed

script:
"""
cnvkit.py \
batch \
${bamTumor} \
--normal ${bamNormal} \
--targets ${targetBED} \
--fasta ${fasta} \
--output-reference output_reference.cnn \
--output-dir ./ \
--diagram \
--scatter
"""
}

// STEP MSISENSOR.1 - SCAN

// Scan reference genome for microsattelites
Expand Down Expand Up @@ -3954,6 +3985,7 @@ def defineStepList() {
def defineToolList() {
return [
'ascat',
'cnvkit',
'controlfreec',
'dnascope',
'dnaseq',
Expand Down