1 #ifndef CONCENSUSCOMMAND_H
2 #define CONCENSUSCOMMAND_H
7 * Created by Sarah Westcott on 4/29/09.
8 * Copyright 2009 Schloss Lab UMASS AMherst. All rights reserved.
12 #include "command.hpp"
15 #include "sharedutilities.h"
19 class ConcensusCommand : public Command {
27 GlobalData* globaldata;
31 vector< map<string, int> > nodePairs; //<maps a pair of nodes joined, number of times that pair occurred> -one entry in vector for each internal node.
32 // i.e. if node 7's child pairs are 1,2 ten times and 1,3 20 times then the map would be [12, 10] and [13, 20];
33 map<string, int>::iterator it;
34 map<string, int>::iterator it2;
35 string outputFile, notIncluded;
37 int numNodes, numLeaves;
39 void getNames(string, string&, string&);