Class TaxonTree
- java.lang.Object
-
- edu.msu.cme.rdp.classifier.comparison.AbstractNode
-
- edu.msu.cme.rdp.classifier.comparison.TaxonTree
-
- All Implemented Interfaces:
ComparisonBrowserNode,Taxon
public class TaxonTree extends AbstractNode
-
-
Constructor Summary
Constructors Constructor Description TaxonTree(int id, java.lang.String name, java.lang.String rank, AbstractNode p)Creates a new instance of TaxonTree
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddChild(AbstractNode n)protected voidaddS1Score(Score s)protected voidaddS2Score(Score s)voidchangeConfidence(SigCalculator cal)calculate the count of sequences assigned to the node, only count the sequence with score for that node greater or equal to confidence cutoff valueComparisonBrowserNodefindNode(int id)returns a node with the given taxid if found.java.util.IteratorgetDetailIterator(float conf)java.lang.StringgetName()java.lang.StringgetRank()intgetTaxid()-
Methods inherited from class edu.msu.cme.rdp.classifier.comparison.AbstractNode
getDoubleSignificance, getIndent, getLineageIterator, getS1Count, getS2Count, getSignificance, getTaxonIterator
-
-
-
-
Constructor Detail
-
TaxonTree
public TaxonTree(int id, java.lang.String name, java.lang.String rank, AbstractNode p)Creates a new instance of TaxonTree
-
-
Method Detail
-
getDetailIterator
public java.util.Iterator getDetailIterator(float conf)
- Specified by:
getDetailIteratorin interfaceComparisonBrowserNode- Specified by:
getDetailIteratorin classAbstractNode
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceTaxon- Specified by:
getNamein classAbstractNode
-
getRank
public java.lang.String getRank()
- Specified by:
getRankin interfaceTaxon- Specified by:
getRankin classAbstractNode
-
getTaxid
public int getTaxid()
- Specified by:
getTaxidin interfaceTaxon- Specified by:
getTaxidin classAbstractNode
-
addChild
protected void addChild(AbstractNode n)
-
addS1Score
protected void addS1Score(Score s)
-
addS2Score
protected void addS2Score(Score s)
-
changeConfidence
public void changeConfidence(SigCalculator cal)
calculate the count of sequences assigned to the node, only count the sequence with score for that node greater or equal to confidence cutoff value- Specified by:
changeConfidencein interfaceComparisonBrowserNode- Specified by:
changeConfidencein classAbstractNode
-
findNode
public ComparisonBrowserNode findNode(int id)
returns a node with the given taxid if found. returns null if not found.- Specified by:
findNodein interfaceComparisonBrowserNode- Specified by:
findNodein classAbstractNode
-
-