]> git.donarmstrong.com Git - mothur.git/blobdiff - corraxescommand.cpp
added sets to amova and homova commands. added oligos to make.contigs. added metadat...
[mothur.git] / corraxescommand.cpp
index f8083cc01c10a23b4626c6ea2ccd285a15f59c87..c4454a5181c719302011e6e98410408826183735 100644 (file)
@@ -925,16 +925,11 @@ int CorrAxesCommand::getMetadata(){
                m->openInputFile(metadatafile, in);
                
                string headerLine = m->getline(in); m->gobble(in);
-               istringstream iss (headerLine,istringstream::in);
-               
-               //read the first label, because it refers to the groups
-               string columnLabel;
-               iss >> columnLabel; m->gobble(iss); 
+               vector<string> pieces = m->splitWhiteSpace(headerLine);
                
                //save names of columns you are reading
-               while (!iss.eof()) {
-                       iss >> columnLabel; m->gobble(iss);
-                       metadataLabels.push_back(columnLabel);
+               for (int i = 1; i < pieces.size(); i++) {
+                       metadataLabels.push_back(pieces[i]);
                }
                int count = metadataLabels.size();