Package edu.msu.cme.rdp.classifier
Class ClassifierCmd
java.lang.Object
edu.msu.cme.rdp.classifier.ClassifierCmd
This is the legacy command line class to do the classification. See edu.msu.cme.rdp.multicompare.main
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doClassify
(String inputFile, String outFile, String propfile, ClassificationResultFormatter.FORMAT format, String gene, int min_bootstrap_words) It classifies query sequences from the input file.static void
This is the main method to do classification.static void
Prints the license information to std err.
-
Constructor Details
-
ClassifierCmd
public ClassifierCmd()
-
-
Method Details
-
doClassify
public void doClassify(String inputFile, String outFile, String propfile, ClassificationResultFormatter.FORMAT format, String gene, int min_bootstrap_words) throws IOException, TrainingDataException It classifies query sequences from the input file. If the property file of the mapping of the training files is not null, the default property file will be override. The classification results will be writen to the output file.- Throws:
IOException
TrainingDataException
-
printLicense
public static void printLicense()Prints the license information to std err. -
main
This is the main method to do classification.Usage: java ClassifierCmd queryFile outputFile [property file].
queryFile can be one of the following formats: Fasta, Genbank and EMBL.
outputFile will be used to save the classification output.
property file contains the mapping of the training files.
Note: the training files and the property file should be in the same directory. The default property file is set to data/classifier/16srrna/rRNAClassifier.properties.- Throws:
Exception
-