]> git.donarmstrong.com Git - mothur.git/blobdiff - binsequencecommand.cpp
added get.repseqs command, started matrix output command
[mothur.git] / binsequencecommand.cpp
index 375eec2dd85db754f9bb0491447d2b966b1d5a37..7810ea9f793255e31e44c854a5a4c21639019c60 100644 (file)
@@ -67,10 +67,6 @@ int BinSeqCommand::execute(){
                        
                        if(globaldata->allLines == 1 || globaldata->lines.count(count) == 1 || globaldata->labels.count(list->getLabel()) == 1){
                                
-                               //make new folder for bin info
-                               //string foldername = "/" + getRootName(globaldata->getListFile()) + list->getLabel() + ".bins/";
-                       //      mkdir(foldername.c_str()); 
-                       
                                string outputFileName = getRootName(globaldata->getListFile()) + list->getLabel() + ".fasta";
                                openOutputFile(outputFileName, out);
 
@@ -78,10 +74,6 @@ int BinSeqCommand::execute(){
                                
                                //for each bin in the list vector
                                for (int i = 0; i < list->size(); i++) {
-                               
-                                       //create output file
-                                       //string outputFileName = foldername + getRootName(globaldata->getListFile()) + "bin" + toString(i+1) + ".fasta";
-                                       //openOutputFile(outputFileName, out);
 
                                        binnames = list->get(i);
                                        while (binnames.find_first_of(',') != -1) { 
@@ -113,11 +105,12 @@ int BinSeqCommand::execute(){
                                                remove(outputFileName.c_str());
                                                return 0;
                                        }
-                                       //out.close();
+                                       
                                }
                                out.close();
                        }
                        
+                       delete list;
                        list = input->getListVector();
                        count++;
                }