annotate src/ConstantsMicropita.py @ 0:2f4f6f08c8c4 draft

Uploaded
author george-weingart
date Tue, 13 May 2014 21:58:57 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
1 """
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
2 Author: Timothy Tickle
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
3 Description: Constants.
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
4 """
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
5
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
6 #####################################################################################
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
7 #Copyright (C) <2012>
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
8 #
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
9 #Permission is hereby granted, free of charge, to any person obtaining a copy of
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
10 #this software and associated documentation files (the "Software"), to deal in the
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
11 #Software without restriction, including without limitation the rights to use, copy,
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
12 #modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
13 #and to permit persons to whom the Software is furnished to do so, subject to
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
14 #the following conditions:
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
15 #
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
16 #The above copyright notice and this permission notice shall be included in all copies
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
17 #or substantial portions of the Software.
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
18 #
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
19 #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
20 #INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
21 #PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
22 #HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
23 #OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
24 #SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
25 #####################################################################################
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
26
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
27 __author__ = "Timothy Tickle"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
28 __copyright__ = "Copyright 2012"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
29 __credits__ = ["Timothy Tickle"]
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
30 __license__ = "MIT"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
31 __maintainer__ = "Timothy Tickle"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
32 __email__ = "ttickle@sph.harvard.edu"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
33 __status__ = "Development"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
34
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
35 from breadcrumbs.src.Metric import Metric
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
36
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
37 class ConstantsMicropita():
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
38 """
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
39 Class to hold project constants.
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
40 """
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
41
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
42 #Character Constants
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
43 COLON = ":"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
44 COMMA = ","
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
45 FASTA_ID_LINE_START = ">"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
46 QUOTE = "\""
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
47 TAB = '\t'
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
48 WHITE_SPACE = " "
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
49 PIPE = "|"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
50 c_outputFileDelim = '\t'
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
51
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
52 c_sEmptyPredictFileValue = 'NA'
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
53
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
54 #Used to stop divide by zero errors
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
55 c_smallNumber = 0.00000000001
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
56
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
57 #SVM related
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
58 c_COST_RANGE_KEY = "range"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
59 c_lCostRange = [-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10]
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
60 c_SCALED_FILE_EXT = ".scaled"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
61 c_intScaleLowerBound = 0
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
62 #LIBSVM file extensions
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
63 c_SCALING_PARAMETERS = ".range"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
64 c_CV_FILE_EXT = ".cv.out"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
65 c_CV_IMAGE_EXT = ".cv.png"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
66 c_MODEL_FILE_EXT = ".model"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
67 c_PREDICT_FILE_EXT = ".predict"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
68 c_fProbabilitistic = True
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
69 c_SCALED_FOR_PREDICTION_FILE_EXT = ".scaledForpredict"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
70
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
71 #SVM output Dictionary keywords for files
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
72 c_strKeywordInputFile = "INPUT"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
73 c_strKeywordScaledFile = "SCALED"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
74 c_strKeywordRangeFile = "RANGE"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
75 c_strKeywordCVOutFile = "CV_OUT"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
76 c_strKeywordModelFile = "MODEL"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
77 c_strKeywordScaledPredFile = "SCALED_FOR_PREDICTION"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
78 c_strKeywordPredFile = "PREDICTION"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
79 c_strKeywordCostValue = "C"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
80 c_strKeywordAccuracy = "ACCURACY"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
81
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
82 #Default values for missing data in the Abundance Table
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
83 c_strEmptyAbundanceData = "0"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
84 c_strEmptyDataMetadata = "NA"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
85 lNAs = list(set(["NA","na","Na","nA",c_strEmptyDataMetadata]))
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
86
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
87 #Occurence filter [min abundance, min samples occuring in]
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
88 #To turn off make == [0,0]
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
89 c_liOccurenceFilter = [0,0]
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
90
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
91 #Break ties in targeted feature with diversity
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
92 c_fBreakRankTiesByDiversity = False
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
93
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
94 ####Commandline arguments
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
95 #a Custom diversity metrics found in cogent
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
96 c_strCustomAlphaDiversityHelp = "A key word for any PyCogent supplied alpha diveristy metric (Richness, evenness, or diversity). Please supply an unnormalized (counts) abundance table for these metrics. Metrics include "+" ".join(Metric.setAlphaDiversities)+"."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
97
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
98 #b Custom diversity metrics found in cogent
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
99 c_strCustomBetaDiversityHelp = "A key word for any PyCogent supplied beta diversity metric. Metrics include "+" ".join(list(Metric.setBetaDiversities)+[Metric.c_strUnifracUnweighted,Metric.c_strUnifracWeighted])+"."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
100
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
101 #c,checked Checked abundance file
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
102 c_strCheckedAbundanceFileArgument = "--checked"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
103 c_strCheckedAbundanceFileHelp = "Before analysis abundance files are checked and a new file results which analysis is perfromed on. The name of the checked file can be specified of the default will will be used (appending a -Checked to the end of the file name)."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
104
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
105 #d,id Name of the sample id row
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
106 c_strIDNameArgument = "--id"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
107 c_strIDNameHelp = "The row in the abundance file that is the sample name/id row. Should be the sample name/Id in first column of the row."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
108
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
109 #e,label Supervised Label
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
110 c_strSupervisedLabelArgument = "--label"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
111 c_strSupervisedLabelHelp = "The name of the metadata on which to perform supervised methods"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
112
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
113 #f, invertDiversity
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
114 c_strInvertDiversityHelp = "".join(["When using this flag, the diversity will be inverted (multiplicative inverse) before ranking in the highest diversity method. ",
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
115 "Recommended to use with dominance, menhinick, reciprocal_simpson, berger_parker_d, mcintosh_e, simpson_e, strong and any metric where 0 indicates most diverse."])
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
116
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
117 #g,logging Path of the logging file
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
118 c_strLoggingFileArgument = "--logfile"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
119 c_strLoggingFileHelp = "File path to save the logging file."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
120
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
121 #h help
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
122
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
123 #i,tree
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
124 c_strCustomEnvironmentFileHelp = "File describing the smaple environments; for use with Unifrac distance metrics."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
125
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
126 #j,delim File delimiter
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
127 c_strFileDelimiterArgument = "--delim"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
128 c_strFileDelimiterHelp = "The delimiter for the abundance table (default = TAB)"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
129
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
130 #k,featdelim Feature delimiter
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
131 c_strFeatureNameDelimiterArgument = "--featdelim"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
132 c_strFeatureNameDelimiterHelp = "The delimiter for a feature name if it contains a consensus sequence."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
133
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
134 #l,lastmeta The name of the last metadata
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
135 c_strLastMetadataNameArgument = "--lastmeta"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
136 c_strLastMetadataNameHelp = "The row in the abundance file that is the sample name/id row. Should be the metadata name/Id in first column of the metadta row."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
137
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
138 #m,method
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
139 c_strSelectionTechniquesHelp = "Select techniques listed one after another."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
140
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
141 #n,num The Number of unsupervised sample selection
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
142 c_strCountArgument = "-n"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
143 c_strCountHelp = "The number of samples to select with unsupervised methodology. (An integer greater than 0.)."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
144
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
145 #o,tree
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
146 c_strCustomPhylogeneticTreeHelp = "Tree for phylogenetic when selecting custom beta-diversities in the representative sampling criteria."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
147
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
148 #p,suppredfile File path fo the predict file for the supervised methods
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
149 c_strSupervisedPredictedFile = "--suppredfile"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
150 c_strSupervisedPredictedFileHelp = "The file path for the predict file."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
151
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
152 #q,alphameta
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
153 c_strCustomAlphaDiversityMetadataHelp = "Metric in the pcl file which has custom alpha diversity measurements to use with the highest diversity sampling criteria. Should be a number between 0.0 and 1.0 with 1.0 meaning most diverse."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
154
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
155 #r,targetmethod Taxa selection method
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
156 c_strTargetedFeatureMethodArgument = "--feature_method"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
157 c_strTargetedFeatureMethodHelp = "The ranking method used to select targeted features."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
158
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
159 #s,stratify Unsupervised stratify metadata
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
160 c_strUnsupervisedStratifyMetadataArgument = "--stratify"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
161 c_strUnsupervisedStratifyMetadataHelp = "The metatdata to stratify unsupervised analysis."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
162
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
163 #t,target Targeted feature file
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
164 c_strTargetedSelectionFileArgument = "--targets"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
165 c_strTargetedSelectionFileHelp = "A file containing taxa/OTUs/clades to be used in targeted feature sampling criteria."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
166
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
167 #u,supinputfile File path for the input file for the supervised methods
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
168 c_strSupervisedInputFile = "--supinputfile"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
169 c_strSupervisedInputFileHelp = "The file path for the input file for supervised methods."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
170
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
171 #v,logging String for logging level
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
172 c_strLoggingArgument = "--logging"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
173 c_strLoggingHelp = "".join(["Logging level which will be logged to a .log file with the",
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
174 " same name as the strOutFile (but with a .log extension). Valid values are DEBUG, INFO, WARNING, ERROR, or CRITICAL."])
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
175 c_lsLoggingChoices = ["DEBUG","INFO","WARNING","ERROR","CRITICAL"]
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
176
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
177 #w, Last Feature Metadata indicator
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
178 c_strFeatureMetadataArgument = "--lastFeatureMetadata"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
179 c_strFeatureMetadataHelp = "The last metadata describing a (bug) feature (not sample). Not all studies have feature metadata, if so this can be ignored and not used. See doc for PCL-Description.txt"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
180
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
181 #x,betamatrix
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
182 c_strCustomBetaDiversityMatrixHelp = "Precalculated beta-diversity matrix to be used in the representative sampling criteria. Should be a number between 0.0 and 1.0 with 1.0 meaning most dissimilar."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
183
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
184 #Order is important, the first is the default
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
185 c_strTargetedRanked = "rank"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
186 c_strTargetedAbundance = "abundance"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
187 lsTargetedFeatureMethodValues = [c_strTargetedRanked, c_strTargetedAbundance]
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
188
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
189 #Selection methods
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
190 c_strDiversity = "diverse"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
191 c_strExtreme = "extreme"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
192 c_strDiscriminant = "discriminant"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
193 c_strDistinct = "distinct"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
194 c_strRandom = "random"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
195 c_strRepresentative = "representative"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
196 c_strFeature = "features"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
197 c_custom = "custom"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
198 c_lsAllUnsupervisedMethods = [c_strRepresentative,c_strDiversity,c_strExtreme,c_strFeature,c_strRandom]
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
199 c_lsAllSupervisedMethods = [c_strDiscriminant,c_strDistinct]
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
200 c_lsAllMethods = c_lsAllUnsupervisedMethods + c_lsAllSupervisedMethods
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
201
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
202 #Technique Names
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
203 c_strDiversity2 = c_strDiversity+"_C"
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
204
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
205 ####################################
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
206 #Arguments without commandline flags
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
207 c_strAbundanceFileHelp = "Input file as either a PCL or Biome file."
2f4f6f08c8c4 Uploaded
george-weingart
parents:
diff changeset
208 c_strGenericOutputDataFileHelp = "The generated output data file."