Commit 7b5a55dd authored by Eric Coissac's avatar Eric Coissac

No commit message

No commit message
parent 47d48676
......@@ -103,6 +103,14 @@ uint32_t readPairedFastq(char* dest,
if (readLength > 0)
{
/* If the read length is even then shorten it by one base */
if ((readLength & 1) ==0)
{
readLength--;
fprintf(stderr,"Read length adjusted to %d",readLength);
}
forwardLength16 = round16(readLength);
if (forwardLength16*2 > maxsize)
......@@ -126,6 +134,13 @@ uint32_t readPairedFastq(char* dest,
if (forwardLength16==0)
{
/* If the read length is even then shorten it by one base */
if ((forwardLength & 1) ==0)
{
forwardLength--;
fprintf(stderr,"Read length adjusted to %d",forwardLength);
}
forwardLength16 = round16(forwardLength);
if (forwardLength16*2 > maxsize)
return 0;
......
......@@ -158,13 +158,6 @@ if (errflag)
#define MAXREAD 2000000000
/* If the read length is even then shorten it by one base */
if ((readLength & 1) ==0)
{
readLength--;
fprintf(stderr,"Read length adjusted to %d",readLength);
}
reads = buildIndex(forwardFileName,reverseFileName,indexfiles,95,toread,MAXREAD,readLength);
freeBuffer(reads);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment