Skip to content
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

Add parabricks option #1

Open
genericdata opened this issue Feb 14, 2024 · 1 comment
Open

Add parabricks option #1

genericdata opened this issue Feb 14, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@genericdata
Copy link

https://docs.nvidia.com/clara/parabricks/latest/toolreference.html

Add a config option to use parabricks for supported processes such as gatk and bwa.

@genericdata genericdata added the enhancement New feature or request label Feb 14, 2024
@genericdata genericdata self-assigned this Feb 14, 2024
@genericdata
Copy link
Author

It won't be a one to one process to process. For example, haplotypecaller for parabricks will run both gatk ApplyBSQR and gatk HaplotypeCaller which are separeted in two processed currently.

Parabricks Command

# This command assumes all the inputs are in INPUT_DIR and all the outputs go to OUTPUT_DIR.
docker run --rm --gpus all --volume INPUT_DIR:/workdir --volume OUTPUT_DIR:/outputdir \
    --workdir /workdir \
    nvcr.io/nvidia/clara/clara-parabricks:4.2.1-1 \
    pbrun haplotypecaller \
    --ref /workdir/${REFERENCE_FILE} \
    --in-bam /workdir/${INPUT_BAM} \
    --in-recal-file /workdir/${INPUT_RECAL_FILE} \
    --out-variants /outputdir/${OUTPUT_VCF}

Compatible GATK4 Command

# Run ApplyBQSR Step
$ gatk ApplyBQSR \
    --java-options -Xmx30g \
    -R Ref/Homo_sapiens_assembly38.fasta \
    -I mark_dups_cpu.bam \
    --bqsr-recal-file recal_file.txt \
    -O cpu_nodups_BQSR.bam

#Run Haplotype Caller
$ gatk HaplotypeCaller \
    --java-options -Xmx30g \
    --input cpu_nodups_BQSR.bam \
    --output result_cpu.vcf \
    --reference Ref/Homo_sapiens_assembly38.fasta \
    --native-pair-hmm-threads 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant