public interface OtuNode
ParserModule
s read ClassifierModule
output
to build standardized OTU abundance tables. Each line of classifier output is parsed for the OTU name, OTU count, and
sample ID. Note that if data is demultiplexed, the Sample ID is extracted from the file name instead of the sequence
header.Modifier and Type | Method and Description |
---|---|
void |
addTaxa(String taxa,
String levelDelim)
Add
OtuNode taxa names for the
Config ."report.taxonomyLevels" level mapped by the classifier
specific levelDelim parameter: . |
Map<String,String> |
delimToLevelMap()
|
int |
getCount()
Gets the OTU count.
|
String |
getLine()
Get the line from classifier output file used to create this OtuNode.
|
String |
getOtuName()
Build the OTU name from the taxaMap.
|
String |
getSampleId()
Gets the sample ID to which the read belongs
|
Map<String,String> |
getTaxaMap()
Gets the map holding level-specific OTU names
|
void |
setCount(int count)
Set the number of reads for a sample ID that have this OTU assignment.
|
void |
setLine(String line)
Set the classifier report line parsed to build this OTU node.
|
void |
setSampleId(String sampleId)
Set the sample ID, parsed from file name or sequence header, to which this taxonomy assignment belongs.
|
void addTaxa(String taxa, String levelDelim) throws Exception
OtuNode
taxa names for the
Config
."report.taxonomyLevels" level mapped by the classifier
specific levelDelim parameter: .taxa
- Classifier Taxa namelevelDelim
- Classifier specific taxonomy level indicatorException
- if errors occur adding the taxaint getCount()
String getLine()
String getOtuName()
String getSampleId()
Map<String,String> getTaxaMap() throws Exception
Exception
- if errors occur building mapvoid setCount(int count)
count
- Number of reads having this OTU assignmentvoid setLine(String line)
line
- Classifier report linevoid setSampleId(String sampleId)
sampleId
- ID of sample to which this taxonomy assignment belongs