+RAbundVector* InputData::getRAbundVector(){
+ try {
+ if(fileHandle){
+ if (format == "list") {
+ input = new ListVector(fileHandle);
+ }
+ else if (format == "shared") {
+ input = new SharedListVector(fileHandle);
+ }
+ else if(format == "rabund"){
+ input = new RAbundVector(fileHandle);
+ }
+ else if(format == "order"){
+ input = new OrderVector(fileHandle);
+ }
+ else if(format == "sabund"){
+ input = new SAbundVector(fileHandle);
+ }
+
+ gobble(fileHandle);
+
+ rabund = new RAbundVector();
+ *rabund = (input->getRAbundVector());
+
+ return rabund;
+ }
+ else{
+ return NULL;
+ }
+ }
+ catch(exception& e) {
+ cout << "Standard Error: " << e.what() << " has occurred in the InputData class Function getRAbundVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ exit(1);
+ }
+ catch(...) {
+ cout << "An unknown error has occurred in the InputData class function getRAbundVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ exit(1);
+ }
+}
+/***********************************************************************/
+
+
+