# Problem with screen.seqs parameter 'minsim'

**URL:** <https://forum.mothur.org/t/problem-with-screen-seqs-parameter-minsim/20667>\
**Category:** mothur bugs\
**Created:** [September 1, 2020, 7:12pm UTC](https://forum.mothur.org/t/problem-with-screen-seqs-parameter-minsim/20667 "2020-09-01T19:12:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjdr](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jjdr](https://forum.mothur.org/u/jjdr)\
**Post date:** [September 1, 2020, 7:12pm UTC](https://forum.mothur.org/t/problem-with-screen-seqs-parameter-minsim/20667/1 "2020-09-01T19:12:00Z")

</div>

Hello!

I am new to posting here so apologies in advance if it’s a mess of a question!

Within the function below, the minsim parameter is not working and seems to be filtering wrong (?). Having it set to 90 removes all my sequences. I have tried changing this parameter to a decimal (minsim=0.90), as that is how the similarity to template sequence result appears in the align.report file, but still too many reads are disappearing as almost all of them are above 90% similarity to the template sequence (and this has not been an issue before). The similarity score from align.seqs is not in decimal form, but it is in screen.seqs - could this be part of the issue/a bug?

screen.seqs(fasta=x.trim.contigs.good.align, alignreport=x.trim.contigs.good.align.report, minsim=90, minscore=10, group=x.contigs.good.groups)

I am using Mothur with ITS2 sequences, and have not previously encountered this problem. Other than coding a workaround or removing the minsim parameter entirely, I’m not sure how to solve this.

Thank you in advance! 🙂

---

<div class="post-metadata">

**Author:** ![westcott](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/westcott/32/18_2.png) [@westcott](https://forum.mothur.org/u/westcott)\
**Post date:** [September 4, 2020, 2:19pm UTC](https://forum.mothur.org/t/problem-with-screen-seqs-parameter-minsim/20667/2 "2020-09-04T14:19:07Z")

</div>

Thanks for reporting this bug. It originated in the align.seqs command. The align.seqs command was not printing the alignment method column in the align.report file. This omission caused the reading of the align report file to fail in screen.seqs, resulting in all reads being removed. This will be fixed in our next release.

In the meantime, you can work around it by adding the column manually. To do so, open the \*align.report file in excel, and fill the ‘AlignmentMethod’ column with ‘needleman’. Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![jjdr](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jjdr](https://forum.mothur.org/u/jjdr)\
**Post date:** [September 6, 2020, 2:04am UTC](https://forum.mothur.org/t/problem-with-screen-seqs-parameter-minsim/20667/3 "2020-09-06T02:04:33Z")

</div>

Ah that makes sense! Thank you for the work around!!

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/system/32/2_2.png) [@system](https://forum.mothur.org/u/system)\
**Post date:** [September 16, 2020, 2:04am UTC](https://forum.mothur.org/t/problem-with-screen-seqs-parameter-minsim/20667/4 "2020-09-16T02:04:35Z")

</div>

Closed on September 16, 2020, 2:04am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
