# Kneaddata stringent bowtie2 filtering

**URL:** <https://forum.biobakery.org/t/kneaddata-stringent-bowtie2-filtering/6889>\
**Category:** KneadData\
**Created:** [April 3, 2024, 4:35pm UTC](https://forum.biobakery.org/t/kneaddata-stringent-bowtie2-filtering/6889 "2024-04-03T16:35:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ym2877](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/ym2877/32/2809_2.png) [@ym2877](https://forum.biobakery.org/u/ym2877)\
**Post date:** [April 3, 2024, 4:35pm UTC](https://forum.biobakery.org/t/kneaddata-stringent-bowtie2-filtering/6889/1 "2024-04-03T16:35:28Z")

</div>

Hi all!

I had a question about kneaddata filtering using the bowtie2 --un-conc option (which I noticed kneaddata uses when running on paired-end reads). From my understanding, this option writes out reads for which _one or both_ of a pair do not align.

However, in many cases, we want to run more stringent filtering and only keep reads for which _both_ mates failed to align (i.e. if even one pair aligns, it is considered a contaminant).

Does kneaddata have this option? If not, is there any reason why we would not want to do this?
