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.

What is the difference between -BadMateFilter and -MappingQualityFilter in Unifiedgenotyper?

leeyoungwhaleeyoungwha Posts: 23
edited October 2012 in Ask the GATK team

It was a bit unclear what the BadMateFilter is doing in the documentation. Any information would be appreciated!

Post edited by Geraldine_VdAuwera on

Best Answers

Answers

  • SophiaSophia Posts: 50

    To follow up with this question: What information from the bam file does this filter need?

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAPosts: 11,743 admin

    @Sophia said:
    To follow up with this question: What information from the bam file does this filter need?

    Which one? Bad Mate or MappingQuality?

    Geraldine Van der Auwera, PhD

  • SophiaSophia Posts: 50
    edited October 2013

    @Geraldine_VdAuwera said:
    Which one? Bad Mate or MappingQuality?

    The BadMateFilter.

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAPosts: 11,743 admin

    BadMateFilter will look at the SAM flags for read paired (1), unmapped read (4), and will check whether the read and its mate are indexed on the same contig.

    Geraldine Van der Auwera, PhD

  • normannorman AustraliaPosts: 1

    Hello there, I have reads from GBS experiments where in the library production process many reads concatemerised. The consequence is that about 40% of the reads get filtered by the 'BadMateFilter' and I have to be able to switch it off. How? any help is greatly appreciated.
    cheers
    Norman

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAPosts: 11,743 admin

    Hi @norman,

    It's not possible to switch off the filters, so you'll need to fix your bam file so that read mate status is correct. I'm not sure how to do that though, and it's not a GATK-specific issue, so I would recommend asking in a more general forum like SeqAnswers or BioStars. Good luck!

    Geraldine Van der Auwera, PhD

  • MaxMax Posts: 28

    Hi,

    concerning the BadMateFilter; does it remove both reads when filtering with the BadMateFilter or just one of them ?

    Thanks !

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAPosts: 11,743 admin

    @Max, I believe it acts on individual reads, not pairs.

    Geraldine Van der Auwera, PhD

  • pdexheimerpdexheimer Posts: 544 ✭✭✭✭

    @Geraldine_VdAuwera‌, can you clarify that? I don't doubt that the filter works on individual reads, but my read of @Max's question is that he's asking whether it will kick out the whole pair or choose one of the reads to keep. It doesn't make sense to me that it would keep one of the reads, and I don't see anything in the code to indicate that either. I think it will filter out both reads, as they both fail to satisfy the question "Is this read's chromosome the same as it's mate's chromosome?"

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAPosts: 11,743 admin

    I fully expect that both reads in a pair would fail the filter, so the end result would be that the entire pair would be filtered, yes. But to be clear, the read filter doesn't have visibility on the mate when it does the filtering.

    Geraldine Van der Auwera, PhD

  • MaxMax Posts: 28

    Ah okay, that makes sense. Thanks for the answers !

Sign In or Register to comment.