# Trim Overrepresented Effect Downstream

**URL:** <https://forum.biobakery.org/t/trim-overrepresented-effect-downstream/2292>\
**Category:** KneadData\
**Created:** [June 24, 2021, 5:23pm UTC](https://forum.biobakery.org/t/trim-overrepresented-effect-downstream/2292 "2021-06-24T17:23:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Testerman](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/todd_testerman/32/885_2.png) [@Todd\_Testerman](https://forum.biobakery.org/u/Todd_Testerman)\
**Post date:** [June 24, 2021, 5:23pm UTC](https://forum.biobakery.org/t/trim-overrepresented-effect-downstream/2292/1 "2021-06-24T17:23:02Z")

</div>

Hello,

I processed a set of shotgun metagenomes about a year ago using kneaddata. At the time, the “–run-trim-repetitive” flag was not mentioned in the readme/exposed to the user as a flag. I proceeded with data processing over the course of the year and am now finishing things up. I am seeing this as a recommended parameter and am wondering if I will need to reprocess everything.

How large of an effect would not using this option likely have downstream? I looked through some of the fastqc files and it seems that most don’t have overrepresented sequences flagged by fastqc but some do.

Would there be any way to handle this without having to rerun kneaddata and start from square one?

Thanks again, I realize the program is in development so things can change periodically just hoping to rationalize whether to rerun this or not.

TNT

---

<div class="post-metadata">

**Author:** ![sagunmaharjann](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/sagunmaharjann/32/168_2.png) [@sagunmaharjann](https://forum.biobakery.org/u/sagunmaharjann)\
**Post date:** [July 9, 2021, 5:34pm UTC](https://forum.biobakery.org/t/trim-overrepresented-effect-downstream/2292/2 "2021-07-09T17:34:48Z")

</div>

Hi @Todd_Testerman ,

Thank you for reaching out to the bioBakery Lab. Our latest version of Kneaddata runs :

- Trim overrepresented sequences using Fastqc reports → 
- Trimmomatic(trim adapters, sliding window, minimum bp length) → 
- TRF(trim repetitive sequences) → 
- bowtie2 database(Trim contaminants reads)  
in this order for Shotgun sequences.

Therefore, if you use the `--bypass-trim`,`--bypass-trf`, and not provide the `-db` flag to skip the `bowtie2` step, you will be able to just trim the overrepresented seqences using FASTQC.

So, the final command would look something like this:

```auto
kneaddata --input demo.fastq -o kneaddata_output --run-trim-repetitive --fastqc FastQC --bypass-trim --bypass-trf

```

Documentation here:

> **[biobakery/kneaddata](https://github.com/biobakery/kneaddata#example-trimming-overrepresented-sequences-using-the-fastqc-reports)**
>
> Quality control tool on metagenomic and metatranscriptomic sequencing data, especially data from microbiome experiments. - biobakery/kneaddata

Regards,  
Sagun
