Optimised sequence parsing (from previous commit)
This commit is contained in:
@ -174,8 +174,8 @@ void seq_fillSeqOnlyATGC(char *seq, fastaSeqPtr seqElem, int seqLen)
|
|||||||
c = seq[index++];
|
c = seq[index++];
|
||||||
if (strchr(seqAlphabets, c) != NULL)
|
if (strchr(seqAlphabets, c) != NULL)
|
||||||
seqTemp[seqIndex++] = tolower(c);
|
seqTemp[seqIndex++] = tolower(c);
|
||||||
else if ((c == '\n') && (seq[index+1]=='\0'))
|
else if (seq[index+1]=='\0')
|
||||||
goOnParsing = 0; //End of line character terminating the sequence has been reached.
|
goOnParsing = 0; // end of the sequence has been reached.
|
||||||
else if (c != '\n')
|
else if (c != '\n')
|
||||||
notAllATGC = 1;
|
notAllATGC = 1;
|
||||||
if (index == len)
|
if (index == len)
|
||||||
|
Reference in New Issue
Block a user