]> git.donarmstrong.com Git - mothur.git/blobdiff - nseqs.h
added nseqs and sharednseqs calculators, removed excess tabs in output files.
[mothur.git] / nseqs.h
diff --git a/nseqs.h b/nseqs.h
new file mode 100644 (file)
index 0000000..0a7b0c3
--- /dev/null
+++ b/nseqs.h
@@ -0,0 +1,33 @@
+#ifndef NSEQS_H
+#define NSEQS_H
+
+/*
+ *  nseqs.h
+ *  Mothur
+ *
+ *  Created by Sarah Westcott on 3/16/09.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ *
+ */
+
+
+
+#include "calculator.h"
+
+/***********************************************************************/
+
+class NSeqs : public Calculator {
+
+public:
+       NSeqs() : Calculator("NSeqs", 1) {};
+       EstOutput getValues(SAbundVector* rank){
+               data.resize(1,0);
+               data[0] = (double)rank->getNumSeqs();
+               return data;
+       }
+       EstOutput getValues(SharedRAbundVector* shared1, SharedRAbundVector* shared2) {return data;};
+};
+
+/***********************************************************************/
+
+#endif