|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatalign.base.thread.Stoppable
statalign.base.Tree
public class Tree
This is the current tree in the MCMC run. It extends Stoppable, so the MCMC run can be terminated in graphical interface mode while it calls a function in the Tree class.
Field Summary | |
---|---|
double |
heat
The heat parameter for this MCMC chain. |
Hmm2 |
hmm2
When two fragments of two sequences on two neighbor vertices of the tree are realigned, the proposed new alignment is drawn from a forward-backward sampling of this HMM. |
HmmSilent |
hmm3
When two fragments of two sequences on two sibling vertices are realigned drawing a novel ancestral substring for their parent vertex, the proposed new alignment is drawn from a forward-backward sampling of this HMM. |
java.lang.String[] |
names
The name of the sequences |
CNetwork |
network
|
java.lang.String[] |
previousFullAlign
|
Vertex |
root
The root of the tree |
SubstitutionModel |
substitutionModel
Characters on this tree undergo substitutions according to this model. |
java.lang.String |
title
The name of the tree |
Vertex[] |
vertex
The array of vertices of the tree. |
Constructor Summary | |
---|---|
Tree()
|
Method Summary | |
---|---|
void |
checkPointers()
|
int |
countLeaves()
|
void |
countSilentIndels()
|
double |
getLogLike()
|
double |
getLogPrior()
|
RawSequences |
getSeqs()
|
State |
getState()
Returns a State object representing the current state. |
java.lang.String |
getSummaryAssociatedWith(java.lang.String sequenceName)
|
int |
getTopVertexId(int ind)
|
void |
makeRoot(java.lang.String taxonName)
It roots the tree on a taxon |
boolean |
perSequenceData()
|
java.lang.String |
printedTree()
Generates a String contaning the description of the tree in Newick format. |
java.lang.String |
printedTreeWithNumbers()
|
void |
recomputeCheckLogLike()
Recomputes the likelihood from scratch and checks whether everything was correct before. |
void |
removeDataAssociatedWith(java.lang.String sequenceName)
|
java.lang.String |
rowSequences()
It generates the array of row sequences. |
void |
setSeqs(RawSequences rs)
|
Methods inherited from class statalign.base.thread.Stoppable |
---|
pausable, stoppable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public SubstitutionModel substitutionModel
public Hmm2 hmm2
public HmmSilent hmm3
public Vertex[] vertex
public Vertex root
public java.lang.String title
public java.lang.String[] names
public double heat
public CNetwork network
public java.lang.String[] previousFullAlign
Constructor Detail |
---|
public Tree()
Method Detail |
---|
public RawSequences getSeqs()
getSeqs
in interface DataType
public void setSeqs(RawSequences rs)
setSeqs
in interface DataType
public void checkPointers()
public double getLogLike()
public void recomputeCheckLogLike()
public int countLeaves()
public void countSilentIndels()
public int getTopVertexId(int ind)
public State getState()
State
object representing the current state. Assumes that
leaves come first in the vertex
array.
public java.lang.String printedTree()
public java.lang.String printedTreeWithNumbers()
public double getLogPrior()
public java.lang.String rowSequences()
public boolean perSequenceData()
perSequenceData
in interface DataType
public java.lang.String getSummaryAssociatedWith(java.lang.String sequenceName)
getSummaryAssociatedWith
in interface DataType
public void removeDataAssociatedWith(java.lang.String sequenceName)
removeDataAssociatedWith
in interface DataType
public void makeRoot(java.lang.String taxonName)
taxonName
- Taxon on which to root tree
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |