[med-svn] [Git][med-team/sumalibs][upstream] New upstream version 1.0.36
Pierre Gruet
gitlab at salsa.debian.org
Tue Apr 14 16:43:53 BST 2020
Pierre Gruet pushed to branch upstream at Debian Med / sumalibs
Commits:
b51bac16 by Pierre Gruet at 2020-04-13T15:05:09+02:00
New upstream version 1.0.36
- - - - -
1 changed file:
- libfasta/sequence.c
Changes:
=====================================
libfasta/sequence.c
=====================================
@@ -162,19 +162,24 @@ void seq_fillSeqOnlyATGC(char *seq, fastaSeqPtr seqElem, int seqLen)
{
char* seqTemp;
char c;
- int32_t index = 0, seqIndex = 0, len = strlen(seq);
+ int32_t index = 1, seqIndex = 0, len = strlen(seq);
char* seqAlphabets = "acgtACGT";
int notAllATGC = 0;
+ int goOnParsing = 1;
seqTemp = (char*) util_malloc(seqLen*sizeof(char), __FILE__, __LINE__);
- while (index < len)
+ while (goOnParsing)
{
c = seq[index++];
if (strchr(seqAlphabets, c) != NULL)
seqTemp[seqIndex++] = tolower(c);
+ else if (seq[index+1]=='\0')
+ goOnParsing = 0; // end of the sequence has been reached.
else if (c != '\n')
notAllATGC = 1;
+ if (index == len)
+ goOnParsing = 0;
}
if (notAllATGC)
View it on GitLab: https://salsa.debian.org/med-team/sumalibs/-/commit/b51bac168ca8431d9dd5e7aa26c20fb6ec03f6f8
--
View it on GitLab: https://salsa.debian.org/med-team/sumalibs/-/commit/b51bac168ca8431d9dd5e7aa26c20fb6ec03f6f8
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200414/0e5bc019/attachment-0001.html>
More information about the debian-med-commit
mailing list