Package edu.msu.cme.rdp.classifier.utils
Class ClassifierFactory
java.lang.Object
edu.msu.cme.rdp.classifier.utils.ClassifierFactory
A factory to create a classifier with the training information defined by the property file.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCreates a new classifier.Returns the version of the classifier.static ClassifierFactory
getFactory
(String gene) Returns a factory with the training information.Returns the info of the taxonomy hierarchy from of the training file.Returns the version of the taxonomical hierarchy.getRoot()
static void
Resets the data property file to the default data property file.static void
setDataProp
(String properties, boolean relative) Sets the property file which contains the mapping of the training files.
-
Field Details
-
RRNA_16S_GENE
- See Also:
-
FUNGALLSU_GENE
- See Also:
-
FUNGALITS_warcup_GENE
- See Also:
-
FUNGALITS_unite_GENE
- See Also:
-
-
Method Details
-
resetDefaultDataProp
public static void resetDefaultDataProp()Resets the data property file to the default data property file. -
setDataProp
Sets the property file which contains the mapping of the training files. The actually training data files should be in the same directory as this property file. To override the default property location, this method must be called before the first ClassifierFactory.getFactory() call. -
getFactory
Returns a factory with the training information. This method initialize all the training information. Note: the ClassifierFactory.setDataProp() static method must be called before this method if default property file will not be used.- Throws:
IOException
TrainingDataException
-
createClassifier
Creates a new classifier. -
getHierarchyVersion
Returns the version of the taxonomical hierarchy. -
getHierarchyTrainsetNo
Returns the info of the taxonomy hierarchy from of the training file. -
getClassifierVersion
Returns the version of the classifier. -
getRoot
-
getTrainRank
-