1 #ifndef TAXONOMYEQUALIZER_H
2 #define TAXONOMYEQUALIZER_H
9 * Created by westcott on 11/20/09.
10 * Copyright 2009 Schloss Lab. All rights reserved.
15 #include "mothurout.h"
17 //reads in taxonomy file and makes all the taxonomies the same length
18 //by appending the last taxon to a given taxonomy as many times as needed to
19 //make it as long as the longest taxonomy in the file
21 /**************************************************************************************************/
26 TaxEqualizer(string, int, string);
29 string getEqualizedTaxFile() { return equalizedFile; }
30 int getHighestLevel() { return highestLevel; }
34 string equalizedFile, testTax, outputDir;
35 bool containsConfidence;
36 int cutoff, highestLevel;
37 map<string, int> seqLevels; //maps name to level of taxonomy
39 int getHighestLevel(ifstream&); //scans taxonomy file to find taxonomy with highest level
40 void extendTaxonomy(string, string&, int); //name, taxonomy, desired level
41 void truncateTaxonomy(string, string&, int); //name, taxonomy, desired level
46 /**************************************************************************************************/