# Kneaddata tossing roughly half of the reads at the trimmomatic step

**URL:** <https://forum.biobakery.org/t/kneaddata-tossing-roughly-half-of-the-reads-at-the-trimmomatic-step/7415>\
**Category:** KneadData\
**Created:** [August 29, 2024, 4:11pm UTC](https://forum.biobakery.org/t/kneaddata-tossing-roughly-half-of-the-reads-at-the-trimmomatic-step/7415 "2024-08-29T16:11:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmark](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/gmark/32/3361_2.png) [@gmark](https://forum.biobakery.org/u/gmark)\
**Post date:** [August 29, 2024, 4:11pm UTC](https://forum.biobakery.org/t/kneaddata-tossing-roughly-half-of-the-reads-at-the-trimmomatic-step/7415/1 "2024-08-29T16:11:48Z")

</div>

Hi All,

I’m running kneaddata v0.12.0 on some libraries generated with truseq barcodes. At the trimmomatic step kneaddata tosses out roughly half of the reads of every sample. However, when I run trimmomatic independently of kneaddata I don’t observe half the reads being tossed.

Kneadata was installed by pip inside a conda environment. As is advised in other parts of the forum foward reads are run through the following sed command:

> sed ‘s/ 1.\*//1/g’

and reverse reads are run through the following sed command:

> sed ‘s/ 2.\*//2/g’

Any insight on why running trimmomatic inside of kneaddata results in so many reads being tossed would be appreciated!
