From 47af4126c6ece121172cd486c1ca7eeb1ccae2de Mon Sep 17 00:00:00 2001 From: westcott Date: Wed, 4 May 2011 20:37:19 +0000 Subject: [PATCH] trim.seqs fix of gobble --- trimseqscommand.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trimseqscommand.cpp b/trimseqscommand.cpp index b5393a3..a9979e7 100644 --- a/trimseqscommand.cpp +++ b/trimseqscommand.cpp @@ -893,12 +893,14 @@ void TrimSeqsCommand::getOligos(vector >& fastaFileNames, vector< while(!inOligos.eof()){ - inOligos >> type; m->gobble(inOligos); + inOligos >> type; if(type[0] == '#'){ - while (!inOligos.eof()) { char c = inOligos.get(); if (c == 10 || c == 13){ break; } } // get rest of line if there's any crap there + while (!inOligos.eof()) { char c = inOligos.get(); if (c == 10 || c == 13){ break; } } // get rest of line if there's any crap there + m->gobble(inOligos); } else{ + m->gobble(inOligos); //make type case insensitive for(int i=0;i