-
Notifications
You must be signed in to change notification settings - Fork 15
feat: aligners & variant callers #282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
adthrasher
wants to merge
171
commits into
main
Choose a base branch
from
feat/minimap2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 23 commits
Commits
Show all changes
171 commits
Select commit
Hold shift + click to select a range
f911ef4
feat: minimap2 tool wrapper
adthrasher fd2bca4
refactor: handle optionally gzipped reference
adthrasher 1ebe2a0
chore: fill in options
adthrasher 9533656
chore: add samtools to minimap2 image and convert to BAM
adthrasher 1b28075
chore: lint
adthrasher 0ac46db
chore: add disk specification
adthrasher 5161669
feat: add bwa-mem2 task
adthrasher af994e2
chore: lint
adthrasher 00deed4
feat: add hisat2 task
adthrasher 4434666
chore: change base image as other segfaults
adthrasher b07d769
feat: add `vg` indexing
adthrasher cb47772
chore: localize fasta for indexing
adthrasher 39ca901
feat: add vg giraffe task
adthrasher a921e17
chore: avoid writing intermediate SAM to disk
adthrasher 733368e
Merge branch 'feat/minimap2' of https://github.com/stjudecloud/workfl…
adthrasher 2dc478a
chore: use database prefix
adthrasher 1c832fc
chore: bump resources for azure
adthrasher bd84132
chore: format+lint
adthrasher 8abaf9c
chore: remove memory oversubscribe
adthrasher d42fbfb
feat: add strelka and manta wrappers
adthrasher 589190d
feat: add clair3 wrapper
adthrasher efb1d50
chore: fix invocation
adthrasher 25681c7
feat: add NGSEP wrapper
adthrasher 1083326
feat: add deepsomatic and deepvariant wrappers with GPU support
adthrasher 30d1159
chore: change hisat2 output to BAM
adthrasher e58c2ed
chore: write to stdout instead of fifo
adthrasher e680a5b
chore: add undocumented FAI requirement
adthrasher 60dce46
chore: add error checking to minimap2
adthrasher f614485
chore: cleanup reference files
adthrasher 352fa6f
chore: minimum cores to 1
adthrasher 339f20a
chore: update danio rerio url and add memory request
adthrasher df13caf
chore: scale memory with threads
adthrasher 8ca1901
chore: update disk specification and memory requests
adthrasher a37db77
chore: add missing bam index
adthrasher 5badc77
chore: update danio rerio url
adthrasher fb1ed43
chore: fix bad merge
adthrasher b8411d5
feat: add readgroup to array conversion for addreplacerg
adthrasher f749a6c
chore: bump disk requirements
adthrasher b2659f4
chore: bump requirements
adthrasher 6bf5936
chore: correct container
adthrasher c17a874
feat: add samtools calmd implementation
adthrasher 31d32b1
chore: eclipse 8 -> 21
adthrasher bc6af62
chore: add index files
adthrasher d53e15c
Merge remote-tracking branch 'refs/remotes/origin/feat/minimap2' into…
adthrasher fe34740
chore: address lint
adthrasher 3afa3e0
feat: add samtools sort implementation
adthrasher e0e602d
Merge branch 'main' into feat/minimap2
adthrasher a9948bd
chore: address lint
adthrasher 81224cf
chore: unify docker image version
adthrasher 455f4d7
chore: GiB -> GB for new tools
adthrasher f197aef
chore: update outputs
adthrasher 56328f2
chore: update sorting disk requirements
adthrasher 174703f
chore: updates for somatic calling
adthrasher fd50c7e
feat: add octopus wrapper
adthrasher 34e808e
chore: fixes for clair3
adthrasher c084df7
chore: update deepvariant to 1.10 plus fixes
adthrasher c6fdb1a
chore: cleanup FAI
adthrasher 6b6b92e
chore: update sort memory
adthrasher f7b7fb1
chore: cleanup FAI
adthrasher 664a0d1
chore: add BAM indices
adthrasher f470afa
chore: add octopus warning
adthrasher fcafe1e
chore: add FASTA index to manta
adthrasher b4621c3
chore: localize BAM and index
adthrasher dd35f36
chore: add index file
adthrasher ab2496a
chore: fix deepsomatic arguments
adthrasher 5ba4e5a
chore: check
adthrasher 99d645e
Merge branch 'feat/minimap2' of https://github.com/stjudecloud/workfl…
adthrasher 7ab7375
feat: clairS wrapper
adthrasher cda5a4a
chore: lint and format
adthrasher e579d69
chore: add region filtering to manta
adthrasher 9d07e09
chore: update tools
adthrasher 810cbe6
chore: add outputs for strelka and manta somatic
adthrasher a8e2148
feat: mutect2 wrapper
adthrasher db57b47
chore: add dictionary because of course GATK needs that
adthrasher 707b702
chore: ensure names match GATK's expectations
adthrasher 0bb848a
chore: clean up mutect output
adthrasher ff82245
chore: localize files for Haplotype Caller
adthrasher 9adf2f5
chore: localize inputs for deepvariant
adthrasher 2efd098
chore: localize inputs for clair3 and strelka
adthrasher 9f62956
chore: lint
adthrasher 0929b67
feat: add mutect2 filtering
adthrasher 211ba8e
feat: add mutect2 filtering
adthrasher d002e55
chore: clarify workflow name
adthrasher 7ef3492
feat: add germline variant calling best practices workflow
adthrasher 95a075d
chore: localize vcf
adthrasher 5862a97
chore: cp instead of ln since tool resolves symlinks
adthrasher 95d08cd
chore: add vcf index to output
adthrasher e5b5695
chore: add localization to base recalibrator and revert image version
adthrasher 89882df
chore: redirect /tmp in SortSam
adthrasher 4aeb876
chore: add index files to output
adthrasher 5e29fb6
chore: add undocumented input to FilterMutectCalls and tweak resources
adthrasher 942e51e
chore: set mode to gVCF
adthrasher ddf2f9d
chore: more updates for GATK
adthrasher af86744
chore: override /tmp
adthrasher b8ad722
chore: fix extension for output
adthrasher 8edb6c8
chore: more undocumented dependencies
adthrasher 6b3fc73
chore: add exome mode to manta
adthrasher be50eb5
Merge branch 'main' into feat/minimap2
adthrasher b709ccf
chore: fix bad merge
adthrasher f12b66b
chore: address lints
adthrasher 7c5e9e6
chore: picard lints
adthrasher ee107bd
test: add bwamem2 index fixture for GRCh38 chrY/chrM
adthrasher ab4fb5b
test: write tests for bwamem2 align and index tasks
adthrasher 6f610cf
test: add fixture symlinks for bwamem2 tests
adthrasher ee5657e
test: add minimap2 .mmi index fixture for GRCh38 chrY/chrM
adthrasher 955451c
test: write tests for minimap2 align and index tasks
adthrasher 1e9c395
test: add FASTA-reference and boolean flag tests for minimap2 align
adthrasher 941f101
test: add vg giraffe index fixtures for GRCh38 chrY/chrM
adthrasher 2e414ab
test: write tests for vg giraffe task covering output formats and pre…
adthrasher 91ec9ab
test: split vg presets test — chaining presets require unpaired reads
adthrasher 9c56c03
test: add tests for clair, deepvariant, strelka, and manta
adthrasher 633286f
chore: reorg fixtures to match #263
adthrasher ba51f9c
chore: add @ prefix for json files
adthrasher 62556c5
chore: disable pytest
adthrasher 8183ac3
chore: remove LineWidth exceptions
adthrasher dbb89bd
chore: merge main
adthrasher 85e3f23
chore: correct param
adthrasher 21c4f6d
chore: link inputs
adthrasher e671287
Merge branch 'feat/minimap2' of https://github.com/stjudecloud/workfl…
adthrasher 9b5cffd
chore: fix clair tests
adthrasher 94b9583
chore: resolve bad merge
adthrasher 2dd4880
chore: fix strelka tests
adthrasher 264575f
chore: fix clair test
adthrasher 313f38c
chore: fix deepsomatic tests
adthrasher 4c76f80
chore: fix manta tests
adthrasher 7399793
chore: add exception
adthrasher f294f8d
chore: run tests verbosely to get failure information
adthrasher 0ae6503
chore: bulk output test stderr and stdout for debugging
adthrasher eb57f9a
chore: drop verbose, write to stderr
adthrasher 2a268c3
chore: cat if test fails
adthrasher 2b5baa3
chore: roll back container in mark_duplicates_spark to address JVM de…
adthrasher de11d2c
chore: use bgzipped files
adthrasher 0222220
chore: drop CPU requirements for GATK4 tasks to 1
adthrasher af74388
chore: try JVM argument to test
adthrasher a9b5492
ci: install sprocket from binary for speed
adthrasher 8c4c535
chore: disable Java overriding memory in container
adthrasher 6c86f5f
ci: install sprocket from binary for speed
adthrasher d53c1b8
chore: remove debug logging
adthrasher 9604f07
chore: move except to ignore lint issue
adthrasher f48596d
chore: sprocket format
adthrasher 7c7a3c2
chore: fix paramter_meta after format
adthrasher f214124
chore: mutect2 tests
adthrasher 14f3e5b
chore: ngsep test
adthrasher 5a596c1
chore: add AGENTS file for AI tools
adthrasher ba20b2c
chore: add metrics tests for picard
adthrasher 48271df
chore: fix gzipped input handling, add picard tests
adthrasher 0b3ca21
chore: CHANGELOGs
adthrasher 6ad7227
feat: add evaluation workflows
adthrasher f9f13a0
feat: germline variant calling evaluation workflow
adthrasher 986d9f1
chore: address lint and format
adthrasher 9103ac8
chore: rename from reserved keyword
adthrasher 6c5febe
chore: rename from reserved keyword
adthrasher 80051a9
chore: fix typo
adthrasher 803719a
chore: remove keyword
adthrasher 671ce4e
chore: add missing calmd step for giraffe
adthrasher 2e73bec
Merge branch 'main' into feat/minimap2
adthrasher fa25a10
chore: switch to enum for clair3 pre-built models
adthrasher b7567a2
chore: disable minimap2 secondary alignments by default
adthrasher bdf142f
feat: mako implementation
adthrasher b88a2a1
chore: update mako task
adthrasher def58ae
chore: meta update
adthrasher fc05002
chore: update memory
adthrasher ea6e75e
chore: format
adthrasher 3bb4448
chore: update sprocket dev test arguments
adthrasher 78038bd
test: update tests to reflect parameter default changes
adthrasher 6fa0f96
chore: add interval split and merge
adthrasher 072220f
chore: rename output file
adthrasher be72b30
chore: update mako
adthrasher d9fdd8e
chore: merge
adthrasher d65b84e
chore: use prior implementation for scattering intervals
adthrasher a18a5fe
Merge branch 'main' into feat/minimap2
adthrasher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| FROM quay.io/biocontainers/samtools:1.17--h00cdaf9_0 AS samtools | ||
| FROM quay.io/biocontainers/bwa-mem2:2.3--he70b90d_0 | ||
|
|
||
| COPY --from=samtools /usr/local/bin/ /usr/local/bin/ | ||
| COPY --from=samtools /usr/local/lib/ /usr/local/lib/ | ||
| COPY --from=samtools /usr/local/libexec/ /usr/local/libexec/ | ||
|
|
||
| ENTRYPOINT [ "bwa-mem2" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "bwamem2", | ||
| "version": "2.3", | ||
| "revision": "0" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| FROM quay.io/biocontainers/samtools:1.17--h00cdaf9_0 AS samtools | ||
| FROM quay.io/biocontainers/hisat2:2.2.1--hdbdd923_7 | ||
|
|
||
| COPY --from=samtools /usr/local/bin/ /usr/local/bin/ | ||
| COPY --from=samtools /usr/local/lib/ /usr/local/lib/ | ||
| COPY --from=samtools /usr/local/libexec/ /usr/local/libexec/ | ||
|
|
||
| ENTRYPOINT [ "hisat2" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "hisat2", | ||
| "version": "2.2.1", | ||
| "revision": "0" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| FROM quay.io/biocontainers/samtools:1.17--h00cdaf9_0 AS samtools | ||
| FROM quay.io/biocontainers/minimap2:2.30--h577a1d6_0 | ||
|
|
||
| COPY --from=samtools /usr/local/bin/ /usr/local/bin/ | ||
| COPY --from=samtools /usr/local/lib/ /usr/local/lib/ | ||
| COPY --from=samtools /usr/local/libexec/ /usr/local/libexec/ | ||
|
|
||
| ENTRYPOINT [ "minimap2" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "minimap2", | ||
| "version": "2.30", | ||
| "revision": "0" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| FROM eclipse-temurin:8 | ||
|
|
||
|
|
||
| RUN wget https://github.com/NGSEP/NGSEPcore/releases/download/v5.1.0/NGSEPcore_5.1.0.jar -O /usr/local/bin/NGSEPcore.jar | ||
|
|
||
| ENTRYPOINT [ "java", "-jar", "/usr/local/bin/NGSEPcore.jar" ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "ngsep", | ||
| "version": "5.1.0", | ||
| "revision": "0" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,130 @@ | ||
| version 1.2 | ||
|
|
||
| task align { | ||
| meta { | ||
| description: "Align DNA sequences against a large reference database using BWA-MEM2" | ||
| outputs: { | ||
| alignments: "The output alignment file in SAM format" | ||
| } | ||
| } | ||
|
|
||
| parameter_meta { | ||
| read_one_fastq_gz: "Input gzipped FASTQ read one file to align with BWA-MEM2" | ||
| reference_index: "The BWA-MEM2 index file for the reference genome" | ||
| read_group: "The read group string to be included in the SAM header. Format: '@RG\\tID:foo\\tSM:bar'" | ||
| read_two_fastq_gz: "Input gzipped FASTQ read two file to align with BWA-MEM2" | ||
| prefix: "Prefix for the BAM file. The extension `.bam` will be added." | ||
| smart_pairing: "If true, enable smart pairing mode for paired-end reads" | ||
| skip_mate_rescue: "If true, skip mate rescue for paired-end reads" | ||
| threads: "Number of threads to use for alignment" | ||
| modify_disk_size_gb: "Additional disk space to allocate (in GB)" | ||
| seed_length: "Seed value for the BWA-MEM2 aligner" | ||
| min_score: "Minimum score threshold for reporting alignments" | ||
| } | ||
|
|
||
| input { | ||
| File read_one_fastq_gz | ||
| File reference_index | ||
| String read_group | ||
| File? read_two_fastq_gz | ||
| String prefix = sub( | ||
| basename(read_one_fastq_gz), | ||
| "([_\\.][rR][12])?(\\.subsampled)?\\.(fastq|fq)(\\.gz)?$", | ||
| "" | ||
| ) | ||
| Boolean smart_pairing = false | ||
| Boolean skip_mate_rescue = false | ||
| Int threads = 4 | ||
| Int modify_disk_size_gb = 0 | ||
| Int seed_length = 19 | ||
| Int min_score = 30 | ||
| } | ||
|
|
||
| String output_name = prefix + ".bam" | ||
| Int disk_size_gb = ceil(( | ||
| size(read_one_fastq_gz, "GiB") + size(read_two_fastq_gz, "GiB") | ||
| ) * 2) | ||
| + ceil(size(reference_index, "GiB")) | ||
| + 10 | ||
| + modify_disk_size_gb | ||
|
|
||
| command <<< | ||
| set -euo pipefail | ||
|
|
||
| mkdir bwa_db | ||
| tar -C bwa_db -xzf "~{reference_index}" --no-same-owner | ||
| PREFIX=$(basename bwa_db/*.ann ".ann") | ||
|
|
||
| bwa-mem2 mem \ | ||
| -t ~{threads} \ | ||
| -R "~{read_group}" \ | ||
| -k ~{seed_length} \ | ||
| -T ~{min_score} \ | ||
| ~{if smart_pairing then "-p" else ""} \ | ||
| ~{if skip_mate_rescue then "-S" else ""} \ | ||
| bwa_db/"$PREFIX" \ | ||
| "~{read_one_fastq_gz}" \ | ||
| ~{if defined(read_two_fastq_gz) then "\"~{read_two_fastq_gz}\"" else ""} | | ||
| samtools view -b -o "~{output_name}" - | ||
| >>> | ||
|
|
||
| output { | ||
| File alignments = output_name | ||
| } | ||
|
|
||
| requirements { | ||
| container: "ghcr.io/stjudecloud/bwamem2:branch-minimap2-2.3-0" | ||
| cpu: threads | ||
| memory: "64 GB" | ||
| disks: "~{disk_size_gb} GB" | ||
| } | ||
| } | ||
|
|
||
| task index { | ||
| meta { | ||
| description: "Index a reference genome for alignment with minimap2" | ||
| outputs: { | ||
| reference_index: "The minimap2 index file for the reference genome" | ||
| } | ||
| } | ||
|
|
||
| parameter_meta { | ||
| reference_fasta: "The reference genome in FASTA format to be indexed" | ||
| db_name: "The base name for the output index files" | ||
| modify_disk_size_gb: "Additional disk space to allocate (in GB)" | ||
| } | ||
|
|
||
| input { | ||
| File reference_fasta | ||
| String db_name = "reference" | ||
| Int modify_disk_size_gb = 0 | ||
| } | ||
|
|
||
| Float input_fasta_size = size(reference_fasta, "GiB") | ||
| Int disk_size_gb = ceil(input_fasta_size * 2) + 10 + modify_disk_size_gb | ||
| String bwa_db_out_name = db_name + ".tar.gz" | ||
|
|
||
| command <<< | ||
| set -euo pipefail | ||
|
|
||
| ref_fasta=~{basename(reference_fasta, ".gz")} | ||
| gunzip -c "~{reference_fasta}" > "$ref_fasta" \ | ||
| || ln -sf "~{reference_fasta}" "$ref_fasta" | ||
|
|
||
| bwa-mem2 index \ | ||
| "$ref_fasta" | ||
|
|
||
| tar -czf "~{bwa_db_out_name}" "$ref_fasta"* | ||
| >>> | ||
|
|
||
| output { | ||
| File reference_index = bwa_db_out_name | ||
| } | ||
|
|
||
| requirements { | ||
| container: "ghcr.io/stjudecloud/bwamem2:branch-minimap2-2.3-0" | ||
| cpu: 1 | ||
| memory: "120 GB" | ||
| disks: "~{disk_size_gb} GB" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| version 1.2 | ||
|
|
||
| task clair3 { | ||
| meta { | ||
| description: "Run Clair3 variant caller for small variants using deep neural networks" | ||
| outputs: { | ||
| pileup_vcf: "VCF file with variants called using pileup model", | ||
| full_alignment_vcf: "VCF file with variants called using full-alignment model", | ||
| merged_vcf: "Final merged VCF file with variants from both models", | ||
| } | ||
| } | ||
|
|
||
| parameter_meta { | ||
| reference_fasta: "Reference genome in FASTA format" | ||
| bam: "Input BAM file with aligned reads" | ||
| model: "Pre-trained Clair3 model to use for variant calling" | ||
| bed_regions: "Optional BED file specifying regions to call variants in" | ||
| vcf_candidates: "Optional VCF file with candidate variants to consider" | ||
| output_dir: "Directory to store Clair3 output" | ||
| platform: { | ||
| description: "Sequencing platform used to generate the reads", | ||
| choices: [ | ||
| "ont", | ||
| "hifi", | ||
| "ilmn", | ||
| ], | ||
| } | ||
| all_contigs: "Boolean indicating whether to include all contigs in variant calling. If false only chr{1..22,X,Y} are called." | ||
| print_ref_calls: "Boolean indicating whether to print reference calls in the output VCF" | ||
| gvcf: "Boolean indicating whether to output gVCF format" | ||
| threads: "Number of threads to use" | ||
| modify_disk_size_gb: "Additional disk size in GB to allocate" | ||
| } | ||
|
|
||
| input { | ||
| File reference_fasta | ||
| File bam | ||
| File model | ||
| File? bed_regions | ||
| File? vcf_candidates | ||
| String output_dir = "clair3_output" | ||
| String platform = "ilmn" | ||
| Boolean all_contigs = false | ||
| Boolean print_ref_calls = false | ||
| Boolean gvcf = false | ||
| Int threads = 4 | ||
| Int modify_disk_size_gb = 0 | ||
| } | ||
|
|
||
| Int disk_size_gb = ceil(size(reference_fasta, "GiB") * 2) | ||
| + ceil(size(bam, "GiB")) | ||
| + 20 | ||
| + modify_disk_size_gb | ||
|
|
||
| command <<< | ||
| set -euo pipefail | ||
|
|
||
| ref_fasta=~{basename(reference_fasta, ".gz")} | ||
| gunzip -c "~{reference_fasta}" > "$ref_fasta" \ | ||
| || ln -sf "~{reference_fasta}" "$ref_fasta" | ||
|
|
||
| run_clair3.sh \ | ||
| --bam_fn="~{bam}" \ | ||
| --ref_fn="$ref_fasta" \ | ||
| --threads="~{threads}" \ | ||
| --platform="~{platform}" \ | ||
| --model_path="~{model}" \ | ||
| --output="~{output_dir}" \ | ||
| ~{if all_contigs then "--include_all_ctgs" else ""} \ | ||
| ~{if print_ref_calls then "--print_ref_calls" else ""} \ | ||
| ~{if defined(bed_regions) then "--bed_fn='~{bed_regions}'" else ""} \ | ||
| ~{if defined(vcf_candidates) then "--vcf_fn='~{vcf_candidates}'" else ""} \ | ||
| ~{if gvcf then "--gvcf" else ""} | ||
|
|
||
| rm -rf "$ref_fasta" | ||
| >>> | ||
|
|
||
| output { | ||
| File pileup_vcf = "~{output_dir}/pileup.vcf.gz" | ||
| File full_alignment_vcf = "~{output_dir}/full_alignment.vcf.gz" | ||
| File merged_vcf = "~{output_dir}/merge_output.vcf.gz" | ||
| } | ||
|
|
||
| requirements { | ||
| container: "quay.io/biocontainers/clair3:1.2.0--py310h779eee5_0" | ||
| cpu: threads | ||
| memory: "16 GB" | ||
| disks: "~{disk_size_gb} GB" | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.