X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=seqerrorcommand.cpp;h=0a6eae93df72e8556554bef32c5a52074a4d0a54;hb=567e4bca5d62bd8ea316ce5def320d070d7507b8;hp=67e43aa0d4b7f6a6ff251bc45a8254ca49b8b162;hpb=eb71e28b7b7afd82540f4a8f0bac9429c5b9d713;p=mothur.git diff --git a/seqerrorcommand.cpp b/seqerrorcommand.cpp index 67e43aa..0a6eae9 100644 --- a/seqerrorcommand.cpp +++ b/seqerrorcommand.cpp @@ -1381,6 +1381,10 @@ int SeqErrorCommand::setLines(string filename, string qfilename, string rfilenam string sname = ""; nameStream >> sname; sname = sname.substr(1); + + for (int i = 0; i < sname.length(); i++) { + if (sname[i] == ':') { sname[i] = '_'; m->changedSeqNames = true; } + } map::iterator it = firstSeqNames.find(sname); @@ -1441,6 +1445,10 @@ int SeqErrorCommand::setLines(string filename, string qfilename, string rfilenam istringstream nameStream(input); string sname = ""; nameStream >> sname; + for (int i = 0; i < sname.length(); i++) { + if (sname[i] == ':') { sname[i] = '_'; m->changedSeqNames = true; } + } + map::iterator it = firstSeqNamesReport.find(sname); if(it != firstSeqNamesReport.end()) { //this is the start of a new chunk