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.

#### ☞ Got a problem?

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.

Picard 2.10.4 has MAJOR CHANGES that impact throughput of pipelines. Default compression is now 1 instead of 5, and Picard now handles compressed data with the Intel Deflator/Inflator instead of JDK.
GATK version 4.beta.2 (i.e. the second beta release) is out. See the GATK4 BETA page for download and details.

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

Member
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

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?

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

• AustraliaMember

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!

• Member

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.

• Member, Dev

@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?"

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.

• Member

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