# Copyright (C) The Lightning Authors. All rights reserved. # # SPDX-License-Identifier: AGPL-3.0 cwlVersion: v1.1 class: CommandLineTool label: Untar, concatenate, and get no call BED and variant only VCF from gVCF requirements: ShellCommandRequirement: {} hints: DockerRequirement: dockerPull: vcfutil ResourceRequirement: ramMin: 5000 outdirMin: 40000 inputs: sampleid: type: string label: Sample ID vcftar: type: File label: Input gVCF tar gqcutoff: type: int label: GQ (Genotype Quality) cutoff for filtering genomebed: type: File label: Whole genome BED bashscript: type: File label: Script to untar and concatenate vcf tar ball default: class: File location: src/untar-concat.sh outputs: nocallbed: type: File label: No call BED of gVCF outputBinding: glob: "*_nocall.bed" varonlyvcf: type: File label: Variant only VCF outputBinding: glob: "*_varonly.vcf.gz" secondaryFiles: [.tbi] baseCommand: bash arguments: - $(inputs.bashscript) - $(inputs.sampleid) - $(inputs.vcftar) - shellQuote: False valueFrom: "&&" - "/gvcf_regions/gvcf_regions.py" - prefix: "--min_GQ" valueFrom: $(inputs.gqcutoff) - $(inputs.sampleid).vcf.gz - shellQuote: False valueFrom: ">" - $(inputs.sampleid).bed - shellQuote: False valueFrom: "&&" - "bedtools" - "subtract" - prefix: "-a" valueFrom: $(inputs.genomebed) - prefix: "-b" valueFrom: $(inputs.sampleid).bed - shellQuote: False valueFrom: ">" - $(inputs.sampleid)_nocall.bed - shellQuote: False valueFrom: "&&" - "bgzip" - "-dc" - $(inputs.sampleid).vcf.gz - shellQuote: False valueFrom: "|" - "grep" - "-v" - "END=" - shellQuote: False valueFrom: "|" - "bgzip" - "-c" - shellQuote: False valueFrom: ">" - $(inputs.sampleid)_varonly.vcf.gz - shellQuote: False valueFrom: "&&" - "tabix" - $(inputs.sampleid)_varonly.vcf.gz - shellQuote: False valueFrom: "&&" - "rm" - $(inputs.sampleid).vcf.gz - $(inputs.sampleid).bed