public class ParsedSample extends Object implements Serializable, Comparable<ParsedSample>
ParserModule
s create and store one ParsedSample
, with
OTU assignments and counts, for each sample. Only the samples that contain one or more reads used by
ClassifierModule
to generate a valid taxonomic assignment are used.Constructor and Description |
---|
ParsedSample(OtuNode node)
Construct a new ParsedSample with it's 1st OtuNode.
|
Modifier and Type | Method and Description |
---|---|
void |
addNode(OtuNode node)
Add the OtuNode to the ParsedSample.
|
int |
compareTo(ParsedSample o) |
boolean |
equals(Object o) |
TreeMap<String,Integer> |
getOtuCounts()
Get the streamlined taxonomy tree with counts, each OTU listed only 1 time with num occurrences in the
sample.
Example: d__Bacteria;p__Bacteroidetes;c__Bacteroidia;o__Bacteroidales;f__Bacteroidaceae;g__Bacteroides;s__Bacteroides_vulgatus 87342 |
String |
getSampleId()
Getter for sampleId.
|
public ParsedSample(OtuNode node)
node
- OtuNodepublic void addNode(OtuNode node)
node
- OtuNodepublic int compareTo(ParsedSample o)
compareTo
in interface Comparable<ParsedSample>
public TreeMap<String,Integer> getOtuCounts() throws Exception
Exception
- if errors occurpublic String getSampleId()