Workflow: Subworkflow to allow calling cnvkit with cram instead of bam files

Fetched 2024-07-31 17:18:09 GMT
children parents
Workflow as SVG
  • Selected
  • Default Values
  • Nested Workflows
  • Tools
  • Inputs/Outputs

Inputs

ID Type Title Doc
access File (Optional)
method
diagram Boolean (Optional)
reference String
tumor_cram File
normal_cram File
scatter_plot Boolean (Optional)
bait_intervals File
drop_low_coverage Boolean (Optional)

Steps

ID Runs Label Doc
run_cnvkit
../tools/cnvkit_batch.cwl (CommandLineTool)

Note: cnvkit batch is a complex command that is capable of running all or part of the cnvkit internal pipeline, depending on the combination of inputs provided to it. In order to take advantage of this, most inputs to this cwl are optional, so that different workflows can use different forms of the command while still using a single cwl file. For further reading, see the relevant cnvkit docs at https://cnvkit.readthedocs.io/en/stable/quickstart.html#build-a-reference-from-normal-samples-and-infer-tumor-copy-ratios https://cnvkit.readthedocs.io/en/stable/pipeline.html#batch In our pipelines, the command form is mainly determined by the components of the reference input. The somatic_exome cwl pipeline provides a fasta file and a normal bam, which causes the batch pipeline to construct a copy number reference (.cnn file) based on the normal bam. The germline_wgs cwl pipeline does not provide a normal bam; instead it passes a cnn reference file as an optional input. This file is intended to be manually generated from a reference normal sample for use in the pipeline. If it is not provided, cnvkit will automatically generate a flat reference file.

tumor_cram_to_bam
../tools/cram_to_bam.cwl (CommandLineTool)
samtools view cram to bam
normal_cram_to_bam
../tools/cram_to_bam.cwl (CommandLineTool)
samtools view cram to bam

Outputs

ID Type Label Doc
cn_diagram File (Optional)
cn_scatter_plot File (Optional)
intervals_target File (Optional)
reference_coverage File (Optional)
intervals_antitarget File (Optional)
tumor_target_coverage File
normal_target_coverage File
tumor_bin_level_ratios File
tumor_segmented_ratios File
tumor_antitarget_coverage File
normal_antitarget_coverage File
Permalink: https://w3id.org/cwl/view/git/5fda2d9eb52a363bd51011b3851c2afb86318c0c/definitions/subworkflows/cram_to_cnvkit.cwl