X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=fastamap.cpp;h=14065231e96f4a7303921424ab53ce633e0984ec;hb=16bea3130e36addc54e2116dfbcd02d706ebee45;hp=0e6c22e21f48aec62b4a365db1e2454cd65ce7c9;hpb=1b2517db06f3c6cd5f5c67198261361ce8dad611;p=mothur.git diff --git a/fastamap.cpp b/fastamap.cpp index 0e6c22e..1406523 100644 --- a/fastamap.cpp +++ b/fastamap.cpp @@ -107,3 +107,22 @@ void FastaMap::print(ostream& out){ //prints data } } /*******************************************************************************/ +void FastaMap::printCondensedFasta(ostream& out){ //prints data + try { + // two column file created with groupname and them list of identical sequence names + for (it = data.begin(); it != data.end(); it++) { + out << ">" << it->second.groupname << endl; + out << it->first << endl; + } + } + catch(exception& e) { + cout << "Standard Error: " << e.what() << " has occurred in the FastaMap class Function print. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + exit(1); + } + catch(...) { + cout << "An unknown error has occurred in the FastaMap class function print. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + exit(1); + } +} +/*******************************************************************************/ +