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.

indel realingment in RNAseq reads

YogeshYogesh south koreaMember

I am Trying to find SNP in the transcriptome. I have finished the Split'N'Trim and reassign mapping qualities step. after this can I do indel realingment using these command: But sorted bam file is needed, can I sort the bam file using samtool:

/home/samtools/samtool sort dedup.bam >sorted.dedub.bam

Generate intervals of interest from sample alignments:
java -jar GenomeAnalysisTK.jar \
-T RealignerTargetCreator \
-nt 4 \
-R refgenome.fa \
-I **sorted.dedup.bam **\
-o realign.intervals

Realign (multiple sequence alignment):
java -jar GenomeAnalysisTK.jar \
-T IndelRealigner \
-R refgenome.fa\
-targetIntervals realign.intervals \
-I sample1.sorted.dedup.bam \
-o sample1.sorted.dedup.realigned.bam

Fix mate pair info in BAM (PICARD):
java -jar $PICARDDIR/picard.jar FixMateInformation \
INPUT=sample1.sorted.dedup.realigned.bam \
OUTPUT=sample1.sorted.dedup.realigned.fixmate.bam \
SO=coordinate \
CREATE_INDEX=true

Best Answers

Answers

  • YogeshYogesh south koreaMember

    Can you please suggest in case of HaplotypeCaller,why Indel realingment is not recommended ?what is the difference between Haptotypecaller and UnifiledGenotyper?

  • YogeshYogesh south koreaMember

    Thanks. after variant calling, I want to separate SNP and Indels. Which parameter should I use to remove false positive from SNP and Indels?

    I do not have know SNP database for my species, the only draft genome is available, how I can do base recalibration before calling variant using HaplotypeCaller?

  • shleeshlee CambridgeMember, Broadie ✭✭✭✭✭

    Hi @Yogesh,

    If you have decided you need BQSR, then you can bootstrap a database of known SNPs. This article talks about bootstrapping and the forum has multiple discussion threads that discuss some finer details. You can search the forum for these using the upper-right Search.

    For considerations and commands before and after VQSR, I'd like to refer you to the Variant Filtering workshop hands-on tutorial. You can find the most recent iteration of this tutorial, as well as the data bundle (for hands-on practice), under DAY 2 on this blogpost. The command in section 4.1 shows you how to select out just SNPs using SelectVariants. You can similarly select out INDELs. Remember that these options exclude MIXED type sites. Be sure to check your data after commands to ensure they are as you expect.

    Also see this post, this post and this doc. The last document has a number of links to other informative documents.

Sign In or Register to comment.