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) generate a complete realigned bam file using -bamout argument in HaplotypeCaller?

Hello, I want to get a realigned bam file for other tools to call variants, so I used the -bamout argument in HaplotypeCaller. I found that bam file is incomplete when I used only -bamout argument. When I set --disable-optimizations and -bamout arguments and added -forceActive and -dontTrimActiveRegions flags, error messages said that " A USER ERROR has occurred: f is not a recognized option". Maybe the program didn't recognize these flags. My command line is shown below:
java -Dsamjdk.use_async_io_read_samtools=false -Dsamjdk.use_async_io_write_samtools=true -Dsamjdk.use_async_io_write_tribble=false -Dsamjdk.compression_level=2 -jar /software/bin/gatk-package- HaplotypeCaller -R /root/data/reference/gatk_bundle/Homo_sapiens_assembly38.fasta -I /root/data/output/6_BQSR/SRR2188163.bqsr.bam --dbsnp /root/data/reference/gatk_bundle/dbsnp_146.hg38.vcf.gz -O SRR2188163.raw.2.vcf -bamout SRR2188163.bamout.2.bam --disable-optimizations true -forceActive -dontTrimActiveRegions
Could you tell me how I can use HplotypeCaller to get a complet realigned bam file? Thanks a lot.
The first picture is the screenshot of the output bam file which I used -bamout to generate. I used -bamout and --disable-optimizations arguments without add any flags to get the result in second picture. And I failed to add flags.

Best Answers


Sign In or Register to comment.