X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=chimera.cpp;h=54124872b7a5e87ce4aa545585fcb4b94c759044;hb=0571957d68cbbc0e425af1db8e808f826010b9e2;hp=685d6dbdbb990867dd4e4e49fe9b3aa4e46a270d;hpb=956cdff34f2d609a7736838b1631cd7957580b8b;p=mothur.git diff --git a/chimera.cpp b/chimera.cpp index 685d6db..5412487 100644 --- a/chimera.cpp +++ b/chimera.cpp @@ -123,7 +123,7 @@ vector Chimera::readSeqs(string file) { //delete inFileName; if (pid == 0) { - positions = setFilePosFasta(file, numSeqs); //fills MPIPos, returns numSeqs + positions = m->setFilePosFasta(file, numSeqs); //fills MPIPos, returns numSeqs //send file positions to all processes for(int i = 1; i < processors; i++) { @@ -167,14 +167,14 @@ vector Chimera::readSeqs(string file) { #else ifstream in; - openInputFile(file, in); + m->openInputFile(file, in); //read in seqs and store in vector while(!in.eof()){ if (m->control_pressed) { return container; } - Sequence* current = new Sequence(in); gobble(in); + Sequence* current = new Sequence(in); m->gobble(in); if (count == 0) { length = current->getAligned().length(); count++; } //gets first seqs length else if (length != current->getAligned().length()) { unaligned = true; } @@ -186,6 +186,8 @@ vector Chimera::readSeqs(string file) { m->mothurOut("Done."); m->mothurOutEndLine(); + filterString = (string(container[0]->getAligned().length(), '1')); + return container; } catch(exception& e) { @@ -241,7 +243,7 @@ void Chimera::setMask(string filename) { #else ifstream infile; - openInputFile(filename, infile); + m->openInputFile(filename, infile); if (!infile.eof()) { Sequence temp(infile);