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 String
getAllRankOutput
(ClassificationResult result) static String
getAllRankOutput
(ClassificationResult result, double conf) static String
getBiomOutput
(String[] ranks, ClassificationResult result, float conf, char delimiter) Output the classification result suitable to load into biom format.static String
getDBOutput
(ClassificationResult result, float conf) static String
getFilterByConfOutput
(ClassificationResult result, float conf) static String
getFilterByConfOutput
(String[] ranks, ClassificationResult result, float conf) static String
getFixRankOutput
(ClassificationResult result) static String
getFixRankOutput
(String[] ranks, ClassificationResult result) static String
getOutput
(ClassificationResult result, ClassificationResultFormatter.FORMAT format) static String
getOutput
(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
-