Heads up:
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
Notice:
If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra


Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.

How to create a Haplotype file from HaplotypeCaller

peterchungpeterchung Member
edited April 24 in Ask the GATK team
I am new to use GATK4. I would like to generate a Haplotype file (.bam or vcf file with haplotype information). I followed the Best Practice step till haplotypecaller.

REF="refs/ucsc.hg19.fasta"
name="sample1"

gatk --java-options "-Xmx16g" HaplotypeCaller \
-R $REF \
-I ${name}.addRG.mkdup.recal.bam \
-ERC GVCF \
-O ${name}.g.vcf.gz \
-bamout ${name}.haplotypes.bam \
--bam-writer-type CALLED_HAPLOTYPES \
--do-not-run-physical-phasing false

However, the bamout output file is 0kb and there is not warning/error messages.
Is it a create a ${name}.haplotypes.bam bam file with haplotype information ?
or how can i generate a vcf file with haplotype information ("0|1" or with PS")?

Thanks.

Answers

Sign In or Register to comment.