Package edu.msu.cme.rdp.classifier.io
Class ClassificationResultFormatter
java.lang.Object
edu.msu.cme.rdp.classifier.io.ClassificationResultFormatter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<ClassificationResultFormatter.FORMAT>static String[]static String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAllRankOutput(ClassificationResult result) static StringgetAllRankOutput(ClassificationResult result, double conf) static StringgetBiomOutput(String[] ranks, ClassificationResult result, float conf, char delimiter) Output the classification result suitable to load into biom format.static StringgetDBOutput(ClassificationResult result, float conf) static StringgetFilterByConfOutput(ClassificationResult result, float conf) static StringgetFilterByConfOutput(String[] ranks, ClassificationResult result, float conf) static StringgetFixRankOutput(ClassificationResult result) static StringgetFixRankOutput(String[] ranks, ClassificationResult result) static StringgetOutput(ClassificationResult result, ClassificationResultFormatter.FORMAT format) static StringgetOutput(ClassificationResult result, ClassificationResultFormatter.FORMAT format, float conf, String[] ranks)
-
Field Details
-
RANKS
-
RANKS_WITHSPECIES
-
fileFormats
-
-
Constructor Details
-
ClassificationResultFormatter
public ClassificationResultFormatter()
-
-
Method Details
-
getOutput
public static String getOutput(ClassificationResult result, ClassificationResultFormatter.FORMAT format) -
getOutput
public static String getOutput(ClassificationResult result, ClassificationResultFormatter.FORMAT format, float conf, String[] ranks) -
getAllRankOutput
-
getAllRankOutput
-
getFixRankOutput
-
getFixRankOutput
-
getFilterByConfOutput
-
getFilterByConfOutput
-
getBiomOutput
public static String getBiomOutput(String[] ranks, ClassificationResult result, float conf, char delimiter) Output the classification result suitable to load into biom format. Concatenate the rank and the taxon name, remove quotes in the taxon name -
getDBOutput
-