]> git.donarmstrong.com Git - mothur.git/blobdiff - getoturepcommand.cpp
removed "shared" from some of the calculator names and classes
[mothur.git] / getoturepcommand.cpp
index ea53f25ed4cd9d215869349fa9159f03deda6258..064455f49e28538c95858ba574dc9ef3b0cc9289 100644 (file)
@@ -83,7 +83,7 @@ int GetOTURepCommand::execute(){
                        if(globaldata->allLines == 1 || globaldata->lines.count(count) == 1 || globaldata->labels.count(list->getLabel()) == 1){
                                
                                //create output file
-                               string outputFileName = getRootName(globaldata->getListFile()) + list->getLabel() + ".fastarep";
+                               string outputFileName = getRootName(globaldata->getListFile()) + list->getLabel() + ".rep.fasta";
                                openOutputFile(outputFileName, out);
 
                                cout << list->getLabel() << '\t' << count << endl;
@@ -96,7 +96,7 @@ int GetOTURepCommand::execute(){
                                        sequence = fasta->getSequence(nameRep);
 
                                        if (sequence != "not found") {
-                                               nameRep = nameRep + "bin" + toString(i+1);
+                                               nameRep = nameRep + "|" + toString(i+1);
                                                out << ">" << nameRep << endl;
                                                out << sequence << endl;
                                        }else { 
@@ -105,6 +105,8 @@ int GetOTURepCommand::execute(){
                                                return 0;
                                        }
                                }
+                               
+                               out.close();
                        }
                        
                        list = input->getListVector();