1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
#ifndef TREEGROUPCOMMAND_H
#define TREEGROUPCOMMAND_H
/*
* treesharedcommand.h
* Mothur
*
* Created by Sarah Westcott on 4/8/09.
* Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
*
*/
#include "command.hpp"
#include "inputdata.h"
#include "groupmap.h"
#include "validcalculator.h"
#include "tree.h"
#include "counttable.h"
#include "readmatrix.hpp"
#include "readcolumn.h"
#include "readphylip.h"
#include "sharedsobscollectsummary.h"
#include "sharedchao1.h"
#include "sharedace.h"
#include "sharednseqs.h"
#include "sharedjabund.h"
#include "sharedsorabund.h"
#include "sharedjclass.h"
#include "sharedsorclass.h"
#include "sharedjest.h"
#include "sharedsorest.h"
#include "sharedthetayc.h"
#include "sharedthetan.h"
#include "sharedkstest.h"
#include "whittaker.h"
#include "sharedochiai.h"
#include "sharedanderbergs.h"
#include "sharedkulczynski.h"
#include "sharedkulczynskicody.h"
#include "sharedlennon.h"
#include "sharedmorisitahorn.h"
#include "sharedbraycurtis.h"
#include "whittaker.h"
#include "odum.h"
#include "canberra.h"
#include "structeuclidean.h"
#include "structchord.h"
#include "hellinger.h"
#include "manhattan.h"
#include "structpearson.h"
#include "soergel.h"
#include "spearman.h"
#include "structkulczynski.h"
#include "structchi2.h"
#include "speciesprofile.h"
#include "hamming.h"
#include "gower.h"
#include "memchi2.h"
#include "memchord.h"
#include "memeuclidean.h"
#include "mempearson.h"
#include "sharedrjsd.h"
#include "sharedjsd.h"
/* This command create a tree file for each similarity calculator at distance level, using various calculators to find the similiarity between groups.
The user can select the lines or labels they wish to use as well as the groups they would like included.
They can also use as many or as few calculators as they wish. */
/**************************************************************************************************************/
class TreeSharedCommand : public Command {
public:
TreeSharedCommand(string);
TreeSharedCommand();
~TreeSharedCommand();
vector<string> setParameters();
string getCommandName() { return "tree.shared"; }
string getCommandCategory() { return "OTU-Based Approaches"; }
string getHelpString();
string getOutputPattern(string);
string getCitation() { return "http://www.mothur.org/wiki/Tree.shared"; }
string getDescription() { return "generate a tree file that describes the dissimilarity among groups"; }
int execute();
void help() { m->mothurOut(getHelpString()); }
private:
string lastLabel;
string format, groupNames, filename, sharedfile, countfile, inputfile;
int numGroups, subsampleSize, iters, processors;
ofstream out;
float precision, cutoff;
vector<string> Treenames;
bool abort, allLines, subsample, withReplacement;
set<string> labels; //holds labels to be used
string phylipfile, columnfile, namefile, calc, groups, label;
vector<string> Estimators, Groups, outputNames; //holds estimators to be used
int createProcesses(SharedRAbundVectors*& thisLookup, CountTable&);
void printSims(ostream&, vector< vector<double> >&, vector<string>);
vector< vector<double> > makeSimsDist(SparseDistanceMatrix*, int);
};
/**************************************************************************************************************/
#endif
|