deeptrio
Run GPU-accelerated DeepTrio for calling de novo variants.
Parabricks has accelerated Google Deeptrio to extensively use GPUs. The Parabricks flavor of
Deepvariant is more like other command line tools that users are familiar with: It takes two or
three BAM files and reference as inputs and produces both vcf
and g.vcf
as outputs.
Currently, Deepvariant is supported for T4, V100, and A100 GPUs only.
$ pbrun deeptrio \
--ref Ref/Homo_sapiens_assembly38.fasta \
--in-bam-child child.bam \
--in-bam-parent1 parent1.bam \
--in-bam-parent2 parent2.bam \
--sample-name-child sample_child \
--sample-name-parent1 sample_parent1 \
--sample-name-parent2 sample_parent2 \
--out-variants-child child.vcf \
--out-variants-parent1 parent1.vcf \
--out-variants-parent2 parent2.vcf \
--out-variants-gvcf-child child.g.vcf.gz \
--out-variants-gvcf-parent1 parent1.g.vcf.gz \
--out-variants-gvcf-parent2 parent2.g.vcf.gz
The commands below are the Google counterpart of the Parabricks command above. The output from these commands will be identical to the output from the above command. See the Output Comparison page for comparing the results.
mkdir -p output
mkdir -p output/intermediate_results_dir
BIN_VERSION=1.1.0
time sudo docker run \
-v "${PWD}/input":"/input" \
-v "${PWD}/output":"/output" \
-v "${PWD}/reference":"/reference" \
google/deepvariant:deeptrio-"${BIN_VERSION}" \
/opt/deepvariant/bin/deeptrio/run_deeptrio \
--model_type WGS \
--ref /reference/Homo_sapiens_assembly38.fasta \
--reads_child /input/child.bam \
--reads_parent1 /input/parent1.bam \
--reads_parent2 /input/parent2.bam \
--output_vcf_child /output/child.vcf \
--output_vcf_parent1 /output/parent1.vcf \
--output_vcf_parent2 /output/parent2.vcf \
--sample_name_child sample_child \
--sample_name_parent1 sample_parent1 \
--sample_name_parent2 sample_parent2 \
--num_shards $(nproc) \
--intermediate_results_dir /output/intermediate_results_dir \
--output_gvcf_child /output/child.g.vcf.gz \
--output_gvcf_parent1 /output/parent1.g.vcf.gz \
--output_gvcf_parent2 /output/parent2.g.vcf.gz \
--make_examples_extra_args "ws_use_window_selector_model=True"
Run DeepTrio on 3 samples for de novo variant detection
Input/Output file options
- --ref REF
- --in-bam-child IN_BAM_CHILD
- --in-bam-parent1 IN_BAM_PARENT1
- --in-bam-parent2 IN_BAM_PARENT2
- --interval-file INTERVAL_FILE
- --out-variants-child OUT_VARIANTS_CHILD
- --out-variants-parent1 OUT_VARIANTS_PARENT1
- --out-variants-parent2 OUT_VARIANTS_PARENT2
- --out-variants-gvcf-child OUT_VARIANTS_GVCF_CHILD
- --out-variants-gvcf-parent1 OUT_VARIANTS_GVCF_PARENT1
- --out-variants-gvcf-parent2 OUT_VARIANTS_GVCF_PARENT2
- --pb-model-file-child PB_MODEL_FILE_CHILD
- --pb-model-file-parent PB_MODEL_FILE_PARENT
Path to the reference file. (default: None)
Option is required.
Path to the input child bam/cram file for variant calling. (default: None)
Option is required.
Path to the input parent1 bam/cram file for variant calling. (default: None)
Path to the input parent2 bam/cram file for variant calling. (default: None)
Path to a BED file (.bed) for selective access. This option can be used multiple times. (default: None)
Path of child vcf file after variant calling. (default: None)
Option is required.
Path of parent1 vcf file after variant calling (default: None)
Path of parent2 vcf file after variant calling (default: None)
Path of child g.vcf/g.vcf.gz file after variant calling (default: None)
Option is required.
Path of parent1 g.vcf/g.vcf.gz file after variant calling (default: None)
Path of parent2 g.vcf/g.vcf.gz file after variant calling (default: None)
Path of non-default child parabricks model file for deeptrio. (default: None)
Path of non-default parent parabricks model file for deeptrio. (default: None)
Options specific to this tool
- --disable-use-window-selector-model
- --keep-duplicates
- --vsc-min-count-snps VSC_MIN_COUNT_SNPS
- --vsc-min-count-indels VSC_MIN_COUNT_INDELS
- --vsc-min-fraction-snps VSC_MIN_FRACTION_SNPS
- --vsc-min-fraction-indels VSC_MIN_FRACTION_INDELS
- --min-mapping-quality MIN_MAPPING_QUALITY
- --min-base-quality MIN_BASE_QUALITY
- --sample-name-child SAMPLE_NAME_CHILD
- --sample-name-parent1 SAMPLE_NAME_PARENT1
- --sample-name-parent2 SAMPLE_NAME_PARENT2
- --mode MODE
- -L INTERVAL, --interval INTERVAL
Change the window selector model from Allele Count Linear to Variant Reads. This option will increase the accuracy and runtime. (default: None)
Keep reads that are duplicate. (default: None)
SNP alleles occurring at least this many times in our AlleleCount will be advanced as candidates. (default: 2)
Indel alleles occurring at least this many times in our AlleleCount will be advanced as candidates. (default: 2)
SNP alleles occurring at least this fraction of all counts in our AlleleCount will be advanced as candidates. (default: 0.12)
Indel alleles occurring at least this fraction of all counts in our AlleleCount will be advanced as candidates. (default: 0.06)
By default, reads with any mapping quality are kept. Setting this field to a positive integer i will only keep reads that have a MAPQ >= i. Note this only applies to aligned reads. (default: 5)
Minimum base quality. This field indicates that we are enforcing a minimum base quality score for alternate alleles. Alternate alleles will only be considered if all bases in the allele have a quality greater than min_base_quality. (default: 10)
Name of sample for child reads. (default: None)
Option is required.
Name of sample for parent1 reads. (default: None)
Name of sample for parent2 reads. (default: None)
Value can only be [shortread] for now. (default: shortread)
Interval within which to call the variants from the bam/cram file. Overlapping intervals will be combined. Interval files should be passed using the --interval-file option. This option can be used multiple times. e.g. "-L chr1 -L chr2:10000 -L chr3:20000+ -L chr4:10000-20000" (default: None)
Common options:
- --logfile LOGFILE
- --tmp-dir TMP_DIR
- --with-petagene-dir WITH_PETAGENE_DIR
- --keep-tmp
- --license-file LICENSE_FILE
- --no-seccomp-override
- --version
Path to the log file. If not specified, messages will only be written to the standard error output. (default: None)
Full path to the directory where temporary files will be stored.
Full path to the PetaGene installation directory. By default, this should have been installed at /opt/petagene. Use of this option also requires that the PetaLink library has been preloaded by setting the LD_PRELOAD environment variable. Optionally set the PETASUITE_REFPATH and PGCLOUD_CREDPATH environment variables that are used for data and credentials (default: None)
Do not delete the directory storing temporary files after completion.
Path to license file license.bin if not in the installation directory.
Do not override seccomp options for docker (default: None).
View compatible software versions.
GPU options:
- --num-gpus NUM_GPUS
- --gpu-devices GPU_DEVICES
Number of GPUs to use for a run. GPUs 0..(NUM_GPUS-1) will be used.
GPU devices to use for a run. By default, all GPU devices will be used.
To use specific GPU devices, enter a comma-separated list of GPU device
numbers. Possible device numbers can be found by examining the output of
the nvidia-smi
command. For example, using --gpu-devices 0,1
would only use the first two GPUs.