The current GATK version is 3.7-0
Examples: Monday, today, last week, Mar 26, 3/26/04

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Get notifications!


You can opt in to receive email notifications, for example when your questions get answered or when there are new announcements, by following the instructions given here.

Did you remember to?


1. Search using the upper-right search box, e.g. using the error message.
2. Try the latest version of tools.
3. Include tool and Java versions.
4. Tell us whether you are following GATK Best Practices.
5. Include relevant details, e.g. platform, DNA- or RNA-Seq, WES (+capture kit) or WGS (PCR-free or PCR+), paired- or single-end, read length, expected average coverage, somatic data, etc.
6. For tool errors, include the error stacktrace as well as the exact command.
7. For format issues, include the result of running ValidateSamFile for BAMs or ValidateVariants for VCFs.
8. For weird results, include an illustrative example, e.g. attach IGV screenshots according to Article#5484.
9. For a seeming variant that is uncalled, include results of following Article#1235.

Did we ask for a bug report?


Then follow instructions in Article#1894.

Formatting tip!


Wrap blocks of code, error messages and BAM/VCF snippets--especially content with hashes (#)--with lines with three backticks ( ``` ) each to make a code block as demonstrated here.

Jump to another community
Picard 2.9.0 is now available. Download and read release notes here.
GATK 3.7 is here! Be sure to read the Version Highlights and optionally the full Release Notes.

BaseRecalibrator/PrintReads BD and BI flags

genecgenec Member Posts: 8
edited January 2013 in Ask the GATK team

What are the BD and BI flags that get added to my bam files after base recalibration? They seem to consist of a long string of "N"s, and I'm trying to understand if that is correct.

Thanks!

Post edited by Geraldine_VdAuwera on

Best Answer

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie Posts: 11,734 admin
    Accepted Answer

    Hi Gene,

    Those are insertion/deletion base qualities, where N=45, which is the default quality score for indels assigned by the BaseRecalibrator. So it looks like your reads are not getting recalibrated and are just maintaining the default original qualities.

    Geraldine Van der Auwera, PhD

Answers

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie Posts: 11,734 admin
    Accepted Answer

    Hi Gene,

    Those are insertion/deletion base qualities, where N=45, which is the default quality score for indels assigned by the BaseRecalibrator. So it looks like your reads are not getting recalibrated and are just maintaining the default original qualities.

    Geraldine Van der Auwera, PhD

  • genecgenec Member Posts: 8

    Thanks. Is this expected behavior, or does it mean that something is wrong with the recalibration?

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie Posts: 11,734 admin

    If you're only getting Ns everywhere, there may be something wrong, because nothing is getting recalibrated. What's you're command line?

    Geraldine Van der Auwera, PhD

  • genecgenec Member Posts: 8

    I've looked at the quality strings and they do actually get changed, the few I spot checked mostly had individual characters decreased by an average of 5.

    Looking at the command line, it seems that the --disable_indel_quals must be responsible. I'm not sure why I included this originally.

  • wkretzschwkretzsch Member Posts: 6

    How are the BD and BI tags used downstream? Can I safely remove them if I am not using the UnifiedGenotyper to do genotyping?

  • JCGrenierJCGrenier Montreal, QCMember Posts: 28

    Hi, I have a similar question to this. How are those tags now used with the newest version of GATK? Are they really helping for INDELs detection?

    Thanks a lot

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie Posts: 11,734 admin

    @JCGrenier The indel qualities are taken into account by the variant callers (specifically, the pairHMM algorithm) when assessing the amount of evidence there is for a particular variant, in much the same way that base qualities are used to assess evidence for SNPs.

    Geraldine Van der Auwera, PhD

  • JCGrenierJCGrenier Montreal, QCMember Posts: 28

    Thanks Geraldine. Is there any quick way to add again those tags if I removed them from the racalibrated file? Or should I reprocess my files from a step before the recalibration?

    Thanks for your help!

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie Posts: 11,734 admin

    If you still have the recalibration tables you can just rerun the PrintReads step to generate the recalibrated bam.

    Geraldine Van der Auwera, PhD

Sign In or Register to comment.