Description

Perform variant calling on a single tumor sample using mutect2 tumor only mode. Run the input bam file through getpileupsummarries and then calculatecontaminationto get the contamination and segmentation tables. Filter the mutect2 output vcf using filtermutectcalls and the contamination & segmentation tables for additional filtering.

Input

name
description
pattern

ch_input

One BAM or CRAM file with its index, plus an empty placeholder for the
optional matched normal sample, which is not used in tumour only mode.

Structure: [ val(meta), path(input), path(input_index), [] ]

*.{bam,cram}

ch_fasta

The reference fasta file.

Structure: [ val(meta2), path(fasta) ]

*.fasta

ch_fai

Index of the reference fasta file, plus the index of the bgzipped fasta
if it is compressed.

Structure: [ val(meta2), path(fai), path(gzi) ]

*.fasta.fai

ch_dict

GATK sequence dictionary.

Structure: [ val(meta2), path(dict) ]

*.dict

ch_alleles

vcf file to be used to force-call alleles.

Structure: [ val(meta3), path(alleles) ]

*.vcf.gz

ch_alleles_tbi

Index file for alleles to be force-called.

Structure: [ val(meta4), path(alleles_tbi) ]

*.vcf.gz.tbi

ch_germline_resource

Population vcf of germline sequencing, containing allele fractions.

Structure: [ val(meta5), path(germline_resource) ]

*.vcf.gz

ch_germline_resource_tbi

Index file for the germline resource.

Structure: [ val(meta6), path(germline_resource_tbi) ]

*.vcf.gz.tbi

ch_panel_of_normals

vcf file to be used as a panel of normals.

Structure: [ val(meta7), path(panel_of_normals) ]

*.vcf.gz

ch_panel_of_normals_tbi

Index for the panel of normals.

Structure: [ val(meta8), path(panel_of_normals_tbi) ]

*.vcf.gz.tbi

ch_interval_file

File containing intervals.

Structure: [ val(meta9), path(interval_file) ]

*.interval_list

Output

name
description
pattern

contamination_table

File containing the contamination table.

Structure: [ val(meta), path(contamination_table) ]

*.contamination.table

filtered_stats

File containing statistics of the filtermutectcalls run.

Structure: [ val(meta), path(filtered_stats) ]

*.filteringStats.tsv

filtered_tbi

tbi file that pairs with the filtered vcf.

Structure: [ val(meta), path(filtered_tbi) ]

*.vcf.gz.tbi

filtered_vcf

File containing filtered mutect2 calls.

Structure: [ val(meta), path(filtered_vcf) ]

*.vcf.gz

mutect2_tbi

Index of the mutect2_vcf file.

Structure: [ val(meta), path(mutect2_tbi) ]

*.vcf.gz.tbi

mutect2_stats

Stats file for the mutect2 vcf.

Structure: [ val(meta), path(mutect2_stats) ]

*.vcf.gz.stats

mutect2_vcf

Compressed vcf file to be used for variant_calling.

Structure: [ val(meta), path(mutect2_vcf) ]

*.vcf.gz

pileup_table

File containing the pileup summary table.

Structure: [ val(meta), path(pileup_table) ]

*.pileups.table

segmentation_table

Output table containing segmentation of tumour minor allele fractions.

Structure: [ val(meta), path(segmentation_table) ]

*.segmentation.table