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!

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.
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.

☞ 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.
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?

Member Posts: 23
edited October 2012

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

Post edited by Geraldine_VdAuwera on
Tagged:

• Member Posts: 50

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

@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

• Member Posts: 50
edited October 2013

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

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

• AustraliaMember Posts: 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

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

• Member Posts: 28

Hi,

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

Thanks !

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

Geraldine Van der Auwera, PhD

• Member, Dev 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?"