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.
RevertSam in picards
I need to re-map two kinds of BAMS: a) the re-calibrated BAMs and b) hg19 mapped BAMs to hg38.
I am looking into the GATK tutorial: https://software.broadinstitute.org/gatk/guide/topic?name=tutorials#optionB, on "Convert aligned BAM to uBAM and discard problematic records using RevertSam", and below is an example.
java -Xmx8G -jar /path/picard.jar RevertSam \
MAX_DISCARD_FRACTION=0.005 \ #informational; does not affect processing
ATTRIBUTE_TO_CLEAR=AS \ #Picard release of 9/2015 clears AS by default
SORT_ORDER=queryname \ #default
RESTORE_ORIGINAL_QUALITIES=true \ #default
REMOVE_DUPLICATE_INFORMATION=true \ #default
I have few questions:
1) The re-calibrated BAMs are generated using different GATK versions (3.4-3.6). What version of picard should we use for RevertSam?
2) Can we also use RevertSam on the mapped BAMs? If so, what parameters should be used?
3) It would be much appreciated if you can give more information on the parameters for this RevertSam:
a) MAX_DISCARD_FRACTION=0.005 --> if we don't want to discard any reads, we should set this value to zero, right?
b) What's your recommendation on ATTRIBUTE_TO_CLEAR? It's not clear to me how this parameter will work on top of REMOVE_ALIGNMENT_INFORMATION.