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