# Trim.seqs command

**URL:** <https://forum.mothur.org/t/trim-seqs-command/584>\
**Category:** Commands in mothur\
**Created:** [June 23, 2011, 5:17pm UTC](https://forum.mothur.org/t/trim-seqs-command/584 "2011-06-23T17:17:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bastriet](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bastriet](https://forum.mothur.org/u/bastriet)\
**Post date:** [June 23, 2011, 5:17pm UTC](https://forum.mothur.org/t/trim-seqs-command/584/1 "2011-06-23T17:17:30Z")

</div>

If your data has already had the barcode and primer sequences removed, is it still necessary to run the trim.seqs command when pre-processing the data? If you don’t have an oligos file and a qual file, will the trim.seqs command still work to remove other erroneous sequences?

---

<div class="post-metadata">

**Author:** ![pschloss](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/pschloss/32/4_2.png) [@pschloss](https://forum.mothur.org/u/pschloss)\
**Post date:** [June 27, 2011, 12:02pm UTC](https://forum.mothur.org/t/trim-seqs-command/584/2 "2011-06-27T12:02:56Z")

</div>

It will remove sequences that are short, long, have ambiguous bases, or long homopolymers. These can all be done with screen.seqs as well. trim.seqs can also chop sequences to remove the last N bases or keep the first N bases.
