public abstract class AncestralJoint
extends java.lang.Object
Constructor and Description |
---|
AncestralJoint() |
Modifier and Type | Method and Description |
---|---|
abstract Alignment |
calculate(Parameters params)
Calculates the reconstruction
|
static AncestralJoint |
newInstance(java.util.Map<java.lang.String,Model> m,
Alignment a,
java.util.Map<java.lang.String,Tree> t)
Returns an object of this class that can be used for joint reconstruction.
|
static AncestralJoint |
newInstance(java.util.Map<java.lang.String,Model> m,
Alignment a,
Tree t)
Returns an object of this class that can be used for joint reconstruction.
|
static AncestralJoint |
newInstance(Model m,
Alignment a,
java.util.Map<java.lang.String,Tree> t)
Returns an object of this class that can be used for joint reconstruction.
|
static AncestralJoint |
newInstance(Model m,
Alignment a,
Tree t)
Returns an object of this class that can be used for joint reconstruction.
|
public abstract Alignment calculate(Parameters params) throws RateCategory.RateException, Model.ModelException, AncestralException, TreeException, Parameters.ParameterException, AlignmentException, SiteLikelihood.LikelihoodException
params
- The parameters to be used in the reconstructionRateCategory.RateException
- Thrown if there is an issue with
a rate category in the model (e.g. a badly formatted rate).Model.ModelException
- Thrown if there is a problem with the
model (e.g. the rate categories differ in their states)AncestralException
- Thrown if there is ambiguous data as these methods
can't currently deal with itTreeException
- Thrown if there is a problem with the tree.Parameters.ParameterException
- Thrown if there is a problem
with the parameters (e.g. a required parameter is not present)AlignmentException
- Thrown if there is a problem with the alignmentSiteLikelihood.LikelihoodException
- Thrown if there is a problem initialise likelihoodspublic static AncestralJoint newInstance(Model m, Alignment a, Tree t)
a
- The alignmentm
- The modelt
- The treepublic static AncestralJoint newInstance(java.util.Map<java.lang.String,Model> m, Alignment a, Tree t) throws AlignmentException
a
- The alignmentm
- Map from site class to modelt
- The treeAlignmentException
- Thrown if a model isn't given
for each site class in the alignmentpublic static AncestralJoint newInstance(Model m, Alignment a, java.util.Map<java.lang.String,Tree> t) throws AlignmentException
a
- The alignmentm
- The modelt
- Map from site class to treeAlignmentException
- Thrown if a tree isn't given
for each site class in the alignmentpublic static AncestralJoint newInstance(java.util.Map<java.lang.String,Model> m, Alignment a, java.util.Map<java.lang.String,Tree> t) throws AlignmentException
a
- The alignmentm
- Map from site class to modelt
- Map from site class to treeAlignmentException
- Thrown if a model or tree isn't given
for each site class in the alignment