{"@id":"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl","retrievedFrom":{"repoUrl":"https://github.com/genome/analysis-workflows.git","branch":"7b4b489474473c3d2d992a838b89632c2b97dc2c","path":"definitions/subworkflows/phase_vcf.cwl","packedId":null,"type":"GITHUB","rawUrl":"https://raw.githubusercontent.com/genome/analysis-workflows/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl","url":"https://github.com/genome/analysis-workflows/blob/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl"},"retrievedOn":"2026-09-09T19:55:50.591+00:00","lastCommit":"7b4b489474473c3d2d992a838b89632c2b97dc2c","label":"phase VCF","inputs":{"bam":{"type":"File"},"reference":{"type":"File"},"somatic_vcf":{"type":"File"},"germline_vcf":{"type":"File"},"reference_dict":{"type":"File"},"tumor_sample_name":{"type":"String"},"normal_sample_name":{"type":"String"}},"outputs":{"phased_vcf":{"type":"File"}},"steps":{"sort":{"label":"Sort VCF","run":"../tools/sort_vcf.cwl","runType":"COMMANDLINETOOL","sources":{"sort":{"sourceIDs":["reference_dict"]},"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl#sort/vcf":{"sourceIDs":["combine_variants"]}}},"phase_vcf":{"label":"Read-backed phasing","run":"../tools/read_backed_phasing.cwl","runType":"COMMANDLINETOOL","sources":{"phase_vcf":{"sourceIDs":["reference"]},"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl#phase_vcf/bam":{"sourceIDs":["bam"]},"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl#phase_vcf/vcf":{"sourceIDs":["bgzip_and_index"]}}},"bgzip_and_index":{"label":"bgzip and index VCF","run":"bgzip_and_index.cwl","runType":"WORKFLOW","sources":{"bgzip_and_index":{"sourceIDs":["sort"]}}},"combine_variants":{"label":"Combine germline and somatic vcf for pVACseq phasing","run":"../tools/pvacseq_combine_variants.cwl","runType":"COMMANDLINETOOL","sources":{"combine_variants":{"sourceIDs":["index_renamed_germline"]},"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl#combine_variants/reference":{"sourceIDs":["reference"]},"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl#combine_variants/somatic_vcf":{"sourceIDs":["index_filtered_somatic"]}}},"rename_germline_vcf":{"run":"../tools/replace_vcf_sample_name.cwl","runType":"COMMANDLINETOOL","sources":{"rename_germline_vcf":{"sourceIDs":["germline_vcf"]},"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl#rename_germline_vcf/new_sample_name":{"sourceIDs":["tumor_sample_name"]},"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl#rename_germline_vcf/sample_to_replace":{"sourceIDs":["normal_sample_name"]}}},"index_filtered_somatic":{"label":"vcf index","run":"../tools/index_vcf.cwl","runType":"COMMANDLINETOOL","sources":{"index_filtered_somatic":{"sourceIDs":["select_somatic_tumor_sample"]}}},"index_renamed_germline":{"label":"vcf index","run":"../tools/index_vcf.cwl","runType":"COMMANDLINETOOL","sources":{"index_renamed_germline":{"sourceIDs":["rename_germline_vcf"]}}},"bgzip_and_index_phased_vcf":{"label":"bgzip and index VCF","run":"bgzip_and_index.cwl","runType":"WORKFLOW","sources":{"bgzip_and_index_phased_vcf":{"sourceIDs":["phase_vcf"]}}},"select_somatic_tumor_sample":{"label":"SelectVariants (GATK 3.6)","run":"../tools/select_variants.cwl","runType":"COMMANDLINETOOL","sources":{"select_somatic_tumor_sample":{"sourceIDs":["reference"]},"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl#select_somatic_tumor_sample/vcf":{"sourceIDs":["somatic_vcf"]},"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl#select_somatic_tumor_sample/samples_to_include":{"sourceIDs":["tumor_sample_name"]},"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl#select_somatic_tumor_sample/output_vcf_basename":{"defaultVal":"\\\"somatic_tumor_only\\\""}}}},"cwltoolVersion":"3.1.20230201224320","visualisationDot":"digraph workflow {\n  graph [\n    bgcolor = \"#eeeeee\"\n    color = \"black\"\n    fontsize = \"10\"\n    labeljust = \"left\"\n    clusterrank = \"local\"\n    ranksep = \"0.22\"\n    nodesep = \"0.05\"\n  ]\n  node [\n    fontname = \"Helvetica\"\n    fontsize = \"10\"\n    fontcolor = \"black\"\n    shape = \"record\"\n    height = \"0\"\n    width = \"0\"\n    color = \"black\"\n    fillcolor = \"lightgoldenrodyellow\"\n    style = \"filled\"\n  ];\n  edge [\n    fontname=\"Helvetica\"\n    fontsize=\"8\"\n    fontcolor=\"black\"\n    color=\"black\"\n    arrowsize=\"0.7\"\n  ];\n  subgraph cluster_inputs {\n    rank = \"same\";\n    style = \"dashed\";\n    label = \"Workflow Inputs\";\n    \"reference\" [fillcolor=\"#94DDF4\",label=\"reference\"];\n    \"reference\" [fillcolor=\"#94DDF4\",label=\"reference\"];\n    \"reference_dict\" [fillcolor=\"#94DDF4\",label=\"reference_dict\"];\n    \"tumor_sample_name\" [fillcolor=\"#94DDF4\",label=\"tumor_sample_name\"];\n    \"somatic_vcf\" [fillcolor=\"#94DDF4\",label=\"somatic_vcf\"];\n    \"bam\" [fillcolor=\"#94DDF4\",label=\"bam\"];\n    \"normal_sample_name\" [fillcolor=\"#94DDF4\",label=\"normal_sample_name\"];\n    \"germline_vcf\" [fillcolor=\"#94DDF4\",label=\"germline_vcf\"];\n  }\n  subgraph cluster_outputs {\n    rank = \"same\";\n    style = \"dashed\";\n    labelloc = \"b\";\n    label = \"Workflow Outputs\";\n    \"phased_vcf\" [fillcolor=\"#94DDF4\",label=\"phased_vcf\"];\n  }\n  \"index_filtered_somatic\" [label=\"vcf index\"];\n  \"bgzip_and_index_phased_vcf\" [label=\"bgzip and index VCF\", fillcolor=\"#F3CEA1\"];\n  \"bgzip_and_index\" [label=\"bgzip and index VCF\", fillcolor=\"#F3CEA1\"];\n  \"combine_variants\" [label=\"Combine germline and somatic vcf for pVACseq phasing\"];\n  \"select_somatic_tumor_sample\" [label=\"SelectVariants (GATK 3.6)\"];\n  \"rename_germline_vcf\" [label=\"rename_germline_vcf\"];\n  \"index_renamed_germline\" [label=\"vcf index\"];\n  \"sort\" [label=\"Sort VCF\"];\n  \"phase_vcf\" [label=\"Read-backed phasing\"];\n  \"select_somatic_tumor_sample\" -> \"index_filtered_somatic\" [label=\"vcf\"];\n  \"phase_vcf\" -> \"bgzip_and_index_phased_vcf\" [label=\"vcf\"];\n  \"sort\" -> \"bgzip_and_index\" [label=\"vcf\"];\n  \"index_renamed_germline\" -> \"combine_variants\" [label=\"germline_vcf\"];\n  \"reference\" -> \"combine_variants\" [label=\"reference\"];\n  \"index_filtered_somatic\" -> \"combine_variants\" [label=\"somatic_vcf\"];\n  \"reference\" -> \"select_somatic_tumor_sample\" [label=\"reference\"];\n  \"default1\" -> \"select_somatic_tumor_sample\" [label=\"output_vcf_basename\"];\n  \"default1\" [label=\"\\\"somatic_tumor_only\\\"\", fillcolor=\"#D5AEFC\"];\n  \"tumor_sample_name\" -> \"select_somatic_tumor_sample\" [label=\"samples_to_include\"];\n  \"somatic_vcf\" -> \"select_somatic_tumor_sample\" [label=\"vcf\"];\n  \"germline_vcf\" -> \"rename_germline_vcf\" [label=\"input_vcf\"];\n  \"tumor_sample_name\" -> \"rename_germline_vcf\" [label=\"new_sample_name\"];\n  \"normal_sample_name\" -> \"rename_germline_vcf\" [label=\"sample_to_replace\"];\n  \"rename_germline_vcf\" -> \"index_renamed_germline\" [label=\"vcf\"];\n  \"reference_dict\" -> \"sort\" [label=\"reference_dict\"];\n  \"combine_variants\" -> \"sort\" [label=\"vcf\"];\n  \"reference\" -> \"phase_vcf\" [label=\"reference\"];\n  \"bgzip_and_index\" -> \"phase_vcf\" [label=\"vcf\"];\n  \"bam\" -> \"phase_vcf\" [label=\"bam\"];\n  \"bgzip_and_index_phased_vcf\" -> \"phased_vcf\";\n}\n","licenseLink":"https://spdx.org/licenses/MIT","permalink":"https://w3id.org/cwl/view/git/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl","packed":false,"visualisationXdot":"/graph/xdot/github.com/genome/analysis-workflows/blob/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl","visualisationPng":"/graph/png/github.com/genome/analysis-workflows/blob/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl","visualisationSvg":"/graph/svg/github.com/genome/analysis-workflows/blob/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl","roBundle":"/robundle/github.com/genome/analysis-workflows/blob/7b4b489474473c3d2d992a838b89632c2b97dc2c/definitions/subworkflows/phase_vcf.cwl","licenseName":"MIT License"}