Optimised sequence parsing (from previous commit)

This commit is contained in:
Celine Mercier
2020-04-13 13:48:09 +02:00
parent d7cd7e2677
commit 9f08b85eaf

View File

@ -174,8 +174,8 @@ void seq_fillSeqOnlyATGC(char *seq, fastaSeqPtr seqElem, int seqLen)
c = seq[index++];
if (strchr(seqAlphabets, c) != NULL)
seqTemp[seqIndex++] = tolower(c);
else if ((c == '\n') && (seq[index+1]=='\0'))
goOnParsing = 0; //End of line character terminating the sequence has been reached.
else if (seq[index+1]=='\0')
goOnParsing = 0; // end of the sequence has been reached.
else if (c != '\n')
notAllATGC = 1;
if (index == len)