X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=chimeraperseuscommand.h;h=b6d4fc9323f659abe52cd70a1e3598a84d9db936;hp=664200fd85e486ddca190acea16228aeaf76ddc6;hb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d;hpb=859e3a473a3e63e0060c49be70b80f9289253da2 diff --git a/chimeraperseuscommand.h b/chimeraperseuscommand.h index 664200f..b6d4fc9 100644 --- a/chimeraperseuscommand.h +++ b/chimeraperseuscommand.h @@ -130,7 +130,7 @@ static DWORD WINAPI MyPerseusThreadFunction(LPVOID lpParam){ SequenceCountParser* cparser; if (pDataArray->hasCount) { CountTable* ct = new CountTable(); - ct->readTable(pDataArray->namefile); + ct->readTable(pDataArray->namefile, true); cparser = new SequenceCountParser(pDataArray->fastafile, *ct); delete ct; }else { @@ -343,10 +343,10 @@ static DWORD WINAPI MyPerseusThreadFunction(LPVOID lpParam){ chimeraFile << j << '\t' << sequences[j].seqName << "\t0\t0\tNull\t0\t0\t0\tNull\tNull\t0.0\t0.0\t0.0\t0\t0\t0\t0.0\t0.0\tgood" << endl; } //report progress - if((j+1) % 100 == 0){ pDataArray->m->mothurOut("Processing sequence: " + toString(j+1) + "\n"); } + if((j+1) % 100 == 0){ pDataArray->m->mothurOutJustToScreen("Processing sequence: " + toString(j+1) + "\n"); } } - if((numSeqs) % 100 != 0){ pDataArray->m->mothurOut("Processing sequence: " + toString(numSeqs) + "\n"); } + if((numSeqs) % 100 != 0){ pDataArray->m->mothurOutJustToScreen("Processing sequence: " + toString(numSeqs) + "\n"); } chimeraFile.close(); accnosFile.close(); @@ -362,11 +362,11 @@ static DWORD WINAPI MyPerseusThreadFunction(LPVOID lpParam){ if (pDataArray->hasCount) { while (!in.eof()) { in >> name; pDataArray->m->gobble(in); - outCountList << name << '\t' << groups[u] << endl; + outCountList << name << '\t' << pDataArray->groups[u] << endl; } in.close(); }else { - map thisnamemap = parser->getNameMap(groups[u]); + map thisnamemap = parser->getNameMap(pDataArray->groups[u]); map::iterator itN; ofstream out; pDataArray->m->openOutputFile(accnosFileName+".temp", out);