{"@id":"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl","retrievedFrom":{"repoUrl":"https://github.com/genome/analysis-workflows.git","branch":"9a657bc8c462542dc7f57fba9e04dc1669f966ba","path":"definitions/pipelines/bisulfite.cwl","packedId":null,"type":"GITHUB","rawUrl":"https://raw.githubusercontent.com/genome/analysis-workflows/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl","url":"https://github.com/genome/analysis-workflows/blob/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl"},"retrievedOn":"2026-10-11T12:46:51.474+00:00","lastCommit":"9a657bc8c462542dc7f57fba9e04dc1669f966ba","label":"Bisulfite alignment and QC","inputs":{"sample_name":{"type":"String"},"QCannotation":{"type":"File"},"read_group_id":{"type":"String[]"},"reference_index":{"type":"String"},"reference_sizes":{"type":"File"},"trimming_adapters":{"type":"File"},"instrument_data_bams":{"type":"File[]"},"trimming_max_uncalled":{"type":"Integer"},"trimming_min_readlength":{"type":"Integer"},"trimming_adapter_trim_end":{"type":"String"},"trimming_adapter_min_overlap":{"type":"Integer"}},"outputs":{"vcf":{"type":"File"},"cpgs":{"type":"File"},"cram":{"type":"File"},"cpg_bigwig":{"type":"File"},"gathered_directory":{"type":"Directory"}},"steps":{"merge":{"label":"Sambamba: merge","run":"../tools/merge_bams.cwl","runType":"COMMANDLINETOOL","sources":{"merge":{"sourceIDs":["bam_to_trimmed_fastq_and_biscuit_alignments"]}}},"pileup":{"label":"Biscuit pileup","run":"../tools/biscuit_pileup.cwl","runType":"COMMANDLINETOOL","sources":{"pileup":{"sourceIDs":["merge"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#pileup/reference":{"sourceIDs":["reference_index"]}}},"vcf2bed":{"label":"convert a biscuit pileup vcf to a bed and bedgraph file, via a wrapper script","run":"../tools/bisulfite_vcf2bed.cwl","runType":"COMMANDLINETOOL","sources":{"vcf2bed":{"sourceIDs":["reference_index"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#vcf2bed/vcf":{"sourceIDs":["pileup"]}}},"index_cram":{"label":"samtools index cram","run":"../tools/index_cram.cwl","runType":"COMMANDLINETOOL","sources":{"index_cram":{"sourceIDs":["bam_to_cram"]}}},"bam_to_cram":{"label":"BAM to CRAM conversion","run":"../tools/bam_to_cram.cwl","runType":"COMMANDLINETOOL","sources":{"bam_to_cram":{"sourceIDs":["reference_index"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bam_to_cram/bam":{"sourceIDs":["merge"]}}},"bisulfite_qc":{"label":"Bisulfite QC tools","run":"../subworkflows/bisulfite_qc.cwl","runType":"WORKFLOW","sources":{"bisulfite_qc":{"sourceIDs":["merge"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bisulfite_qc/vcf":{"sourceIDs":["pileup"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bisulfite_qc/reference":{"sourceIDs":["reference_index"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bisulfite_qc/QCannotation":{"sourceIDs":["QCannotation"]}}},"bedgraph_to_bigwig":{"label":"bedGraph to bigwig conversion","run":"../tools/bedgraph_to_bigwig.cwl","runType":"COMMANDLINETOOL","sources":{"bedgraph_to_bigwig":{"sourceIDs":["vcf2bed"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bedgraph_to_bigwig/reference_sizes":{"sourceIDs":["reference_sizes"]}}},"bam_to_trimmed_fastq_and_biscuit_alignments":{"label":"bam to trimmed fastqs and biscuit alignments","run":"../subworkflows/bam_to_trimmed_fastq_and_biscuit_alignments.cwl","runType":"WORKFLOW","sources":{"bam_to_trimmed_fastq_and_biscuit_alignments":{"sourceIDs":["reference_index"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bam_to_trimmed_fastq_and_biscuit_alignments/bam":{"sourceIDs":["instrument_data_bams"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bam_to_trimmed_fastq_and_biscuit_alignments/adapters":{"sourceIDs":["trimming_adapters"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bam_to_trimmed_fastq_and_biscuit_alignments/max_uncalled":{"sourceIDs":["trimming_max_uncalled"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bam_to_trimmed_fastq_and_biscuit_alignments/read_group_id":{"sourceIDs":["read_group_id"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bam_to_trimmed_fastq_and_biscuit_alignments/min_readlength":{"sourceIDs":["trimming_min_readlength"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bam_to_trimmed_fastq_and_biscuit_alignments/adapter_trim_end":{"sourceIDs":["trimming_adapter_trim_end"]},"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl#bam_to_trimmed_fastq_and_biscuit_alignments/adapter_min_overlap":{"sourceIDs":["trimming_adapter_min_overlap"]}}}},"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    \"read_group_id\" [fillcolor=\"#94DDF4\",label=\"read_group_id\"];\n    \"trimming_min_readlength\" [fillcolor=\"#94DDF4\",label=\"trimming_min_readlength\"];\n    \"trimming_adapter_min_overlap\" [fillcolor=\"#94DDF4\",label=\"trimming_adapter_min_overlap\"];\n    \"QCannotation\" [fillcolor=\"#94DDF4\",label=\"QCannotation\"];\n    \"trimming_adapter_trim_end\" [fillcolor=\"#94DDF4\",label=\"trimming_adapter_trim_end\"];\n    \"reference_sizes\" [fillcolor=\"#94DDF4\",label=\"reference_sizes\"];\n    \"instrument_data_bams\" [fillcolor=\"#94DDF4\",label=\"instrument_data_bams\"];\n    \"trimming_adapters\" [fillcolor=\"#94DDF4\",label=\"trimming_adapters\"];\n    \"trimming_max_uncalled\" [fillcolor=\"#94DDF4\",label=\"trimming_max_uncalled\"];\n    \"sample_name\" [fillcolor=\"#94DDF4\",label=\"sample_name\"];\n    \"reference_index\" [fillcolor=\"#94DDF4\",label=\"reference_index\"];\n  }\n  subgraph cluster_outputs {\n    rank = \"same\";\n    style = \"dashed\";\n    labelloc = \"b\";\n    label = \"Workflow Outputs\";\n    \"cpg_bigwig\" [fillcolor=\"#94DDF4\",label=\"cpg_bigwig\"];\n    \"vcf\" [fillcolor=\"#94DDF4\",label=\"vcf\"];\n    \"gathered_directory\" [fillcolor=\"#94DDF4\",label=\"gathered_directory\"];\n    \"cpgs\" [fillcolor=\"#94DDF4\",label=\"cpgs\"];\n    \"cram\" [fillcolor=\"#94DDF4\",label=\"cram\"];\n  }\n  \"vcf2bed\" [label=\"convert a biscuit pileup vcf to a bed and bedgraph file, via a wrapper script\"];\n  \"bedgraph_to_bigwig\" [label=\"bedGraph to bigwig conversion\"];\n  \"bam_to_cram\" [label=\"BAM to CRAM conversion\"];\n  \"index_cram\" [label=\"samtools index cram\"];\n  \"bam_to_trimmed_fastq_and_biscuit_alignments\" [label=\"bam to trimmed fastqs and biscuit alignments\", fillcolor=\"#F3CEA1\"];\n  \"bisulfite_qc\" [label=\"Bisulfite QC tools\", fillcolor=\"#F3CEA1\"];\n  \"pileup\" [label=\"Biscuit pileup\"];\n  \"merge\" [label=\"Sambamba: merge\"];\n  \"reference_index\" -> \"vcf2bed\" [label=\"reference\"];\n  \"pileup\" -> \"vcf2bed\" [label=\"vcf\"];\n  \"vcf2bed\" -> \"bedgraph_to_bigwig\" [label=\"bedgraph\"];\n  \"reference_sizes\" -> \"bedgraph_to_bigwig\" [label=\"reference_sizes\"];\n  \"reference_index\" -> \"bam_to_cram\" [label=\"reference\"];\n  \"merge\" -> \"bam_to_cram\" [label=\"bam\"];\n  \"bam_to_cram\" -> \"index_cram\" [label=\"cram\"];\n  \"reference_index\" -> \"bam_to_trimmed_fastq_and_biscuit_alignments\" [label=\"reference_index\"];\n  \"trimming_adapter_trim_end\" -> \"bam_to_trimmed_fastq_and_biscuit_alignments\" [label=\"adapter_trim_end\"];\n  \"trimming_adapter_min_overlap\" -> \"bam_to_trimmed_fastq_and_biscuit_alignments\" [label=\"adapter_min_overlap\"];\n  \"trimming_max_uncalled\" -> \"bam_to_trimmed_fastq_and_biscuit_alignments\" [label=\"max_uncalled\"];\n  \"trimming_adapters\" -> \"bam_to_trimmed_fastq_and_biscuit_alignments\" [label=\"adapters\"];\n  \"read_group_id\" -> \"bam_to_trimmed_fastq_and_biscuit_alignments\" [label=\"read_group_id\"];\n  \"trimming_min_readlength\" -> \"bam_to_trimmed_fastq_and_biscuit_alignments\" [label=\"min_readlength\"];\n  \"instrument_data_bams\" -> \"bam_to_trimmed_fastq_and_biscuit_alignments\" [label=\"bam\"];\n  \"merge\" -> \"bisulfite_qc\" [label=\"bam\"];\n  \"pileup\" -> \"bisulfite_qc\" [label=\"vcf\"];\n  \"reference_index\" -> \"bisulfite_qc\" [label=\"reference\"];\n  \"QCannotation\" -> \"bisulfite_qc\" [label=\"QCannotation\"];\n  \"merge\" -> \"pileup\" [label=\"bam\"];\n  \"reference_index\" -> \"pileup\" [label=\"reference\"];\n  \"bam_to_trimmed_fastq_and_biscuit_alignments\" -> \"merge\" [label=\"bams\"];\n  \"bedgraph_to_bigwig\" -> \"cpg_bigwig\";\n  \"pileup\" -> \"vcf\";\n  \"bisulfite_qc\" -> \"gathered_directory\";\n  \"vcf2bed\" -> \"cpgs\";\n  \"index_cram\" -> \"cram\";\n}\n","licenseLink":"https://spdx.org/licenses/MIT","permalink":"https://w3id.org/cwl/view/git/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl","packed":false,"visualisationXdot":"/graph/xdot/github.com/genome/analysis-workflows/blob/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl","visualisationPng":"/graph/png/github.com/genome/analysis-workflows/blob/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl","visualisationSvg":"/graph/svg/github.com/genome/analysis-workflows/blob/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl","roBundle":"/robundle/github.com/genome/analysis-workflows/blob/9a657bc8c462542dc7f57fba9e04dc1669f966ba/definitions/pipelines/bisulfite.cwl","licenseName":"MIT License"}