# align.seqs 'Error in reading your fastafile, at position -1'

**URL:** <https://forum.mothur.org/t/align-seqs-error-in-reading-your-fastafile-at-position-1/2765>\
**Category:** mothur bugs\
**Created:** [March 17, 2016, 8:34pm UTC](https://forum.mothur.org/t/align-seqs-error-in-reading-your-fastafile-at-position-1/2765 "2016-03-17T20:34:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![campenr](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@campenr](https://forum.mothur.org/u/campenr)\
**Post date:** [March 17, 2016, 8:34pm UTC](https://forum.mothur.org/t/align-seqs-error-in-reading-your-fastafile-at-position-1/2765/1 "2016-03-17T20:34:56Z")

</div>

Hi,

When I run align.seqs using 4 or more processors I get the error: Error in reading your fastafile, at position -1

At first I thought it may be a memory issue, as I am almost maxing out my 16 GB of RAM, but using 2 or 3 processors also appears to use the same amount of RAM as using 4. I was wondering if maybe it’s a thread not being able to access the fasta file instead.

A logfile with the logs from using 1, 2, 3, and 4 processors is available [here](http://pastebin.com/qzLEjHXP). I first noticed this when using 8 processors.

The alignment is between the full SILVA v123 reference alignment and a fasta file containing three V45 sequences.

Let me know if you need more information from me.

Thanks for your help,  
Richard

---

<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:** [March 21, 2016, 1:08pm UTC](https://forum.mothur.org/t/align-seqs-error-in-reading-your-fastafile-at-position-1/2765/2 "2016-03-21T13:08:29Z")

</div>

Thanks for reporting this bug. We have fixed it for version 1.37 coming soon. The problem stems from the number of sequences being less than the number of processors. Mothur should adjust for this and did, but was +1 on the adjustment. Setting the number of processors \<= the number of sequences will resolve the issue.

---

<div class="post-metadata">

**Author:** ![campenr](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@campenr](https://forum.mothur.org/u/campenr)\
**Post date:** [March 21, 2016, 1:42pm UTC](https://forum.mothur.org/t/align-seqs-error-in-reading-your-fastafile-at-position-1/2765/3 "2016-03-21T13:42:38Z")

</div>

Ah that makes sense. Thanks for fixing this.

Cheers  
Richard
