X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=seqerrorcommand.cpp;h=0a6eae93df72e8556554bef32c5a52074a4d0a54;hb=767c2ab76d70664af19b1afca8e1fd5233962698;hp=67e43aa0d4b7f6a6ff251bc45a8254ca49b8b162;hpb=20071b183e619c122bf9f63b4bb42722507c4e4a;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