10 * Created by Pat Schloss on 8/31/11.
11 * Copyright 2011 Patrick D. Schloss. All rights reserved.
15 /*****************************************************************************************************************************/
16 /*****************************************************************************************************************************/
17 /* NOTE: Order matters in this class. If you are going to use it, make sure your files have the sequences in the same order. */
18 /*****************************************************************************************************************************/
19 /*****************************************************************************************************************************/
22 #include "mothurout.h"
23 /**************************************************************************************************/
27 freqData(int i, int freq) : frequency(freq), index(i){ }
29 bool operator<( freqData const& rhs ) const {
30 return frequency < rhs.frequency;
37 /**************************************************************************************************/
41 seqNoise() { m = MothurOut::getInstance(); }
44 int getSequenceData(string, vector<string>&);
45 int addSeq(string, vector<string>&);
46 int getRedundantNames(string, vector<string>&, vector<string>&, vector<int>&);
47 int addRedundantName(string, string, vector<string>&, vector<string>&, vector<int>&);
48 int getDistanceData(string, vector<double>&);
49 int getListData(string, double, vector<int>&, vector<int>&, vector<vector<int> >&);
50 int updateOTUCountData(vector<int>, vector<vector<int> >, vector<vector<int> >, vector<int>&, vector<int>&, vector<int>&);
51 double calcNewWeights(vector<double>&,vector<int>,vector<int>,vector<int>,vector<int>,vector<int>,vector<double>);
52 int calcCentroids(vector<int>,vector<int>,vector<int>&,vector<int>&,vector<int>,vector<double>,vector<int>,vector<int>,vector<double>);
53 int checkCentroids(vector<double>&, vector<int>);
54 int setUpOTUData(vector<int>&, vector<double>&, vector<int>, vector<double>, vector<int>, vector<int>, vector<int>);
55 int finishOTUData(vector<int>, vector<int>&, vector<int>&, vector<int>&, vector<int>&, vector<vector<int> >&, vector<vector<int> >&, vector<double>&);
56 int writeOutput(string, string, string, vector<int>, vector<int>, vector<int>, vector<string>, vector<string>, vector<string>, vector<int>, vector<double>&);
62 int getLastMatch(char, vector<vector<char> >&, int, int, vector<int>&, vector<int>&);
63 int countDiffs(vector<int>, vector<int>);
64 vector<int> convertSeq(string);
65 string degapSeq(string);
69 /**************************************************************************************************/