public class AncestralMarginal
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
AncestralMarginal.Result
Class to store the results of a marginal ancestral reconstruction
|
class |
AncestralMarginal.SiteResult
Class to store the results of a marginal ancestral reconstruction for a single
site
|
Constructor and Description |
---|
AncestralMarginal(java.util.Map<java.lang.String,Model> m,
Alignment a,
java.util.Map<java.lang.String,Tree> t)
Creates an object to calculate an ancestral reconstruction for a given
set of models, an alignment and a tree.
|
AncestralMarginal(java.util.Map<java.lang.String,Model> m,
Alignment a,
Tree t)
Creates an object to calculate an ancestral reconstruction for a given
set of models, an alignment and a tree.
|
AncestralMarginal(Model m,
Alignment a,
java.util.Map<java.lang.String,Tree> t)
Creates an object to calculate an ancestral reconstruction for a given
model, alignment and tree
|
AncestralMarginal(Model m,
Alignment a,
Tree t)
Creates an object to calculate an ancestral reconstruction for a given
model, alignment and tree
|
Modifier and Type | Method and Description |
---|---|
AncestralMarginal.Result |
calculate(Parameters params)
Calculates the reconstruction
|
static AncestralMarginal |
newInstance(java.util.Map<java.lang.String,Model> m,
Alignment a,
Tree t)
Returns an object of this class that can be used for marginal
reconstruction.
|
static AncestralMarginal |
newInstance(Model m,
Alignment a,
Tree t)
Returns an object of this class that can be used for marginal
reconstruction.
|
public AncestralMarginal(Model m, Alignment a, Tree t)
m
- The modela
- The alignmentt
- The treepublic AncestralMarginal(Model m, Alignment a, java.util.Map<java.lang.String,Tree> t) throws AlignmentException
m
- The modela
- The alignmentt
- Map from site class to treeAlignmentException
- Thrown if a tree isn't given
for each site class in the alignmentpublic AncestralMarginal(java.util.Map<java.lang.String,Model> m, Alignment a, Tree t) throws AlignmentException
m
- Map from site class to modela
- The alignmentt
- The treeAlignmentException
- Thrown if a model isn't given
for each site class in the alignmentpublic AncestralMarginal(java.util.Map<java.lang.String,Model> m, Alignment a, java.util.Map<java.lang.String,Tree> t) throws AlignmentException
m
- Map from site class to modela
- The alignmentt
- Map from site class to treeAlignmentException
- Thrown if a model or tree isn't given
for each site class in the alignmentpublic AncestralMarginal.Result calculate(Parameters params) throws RateCategory.RateException, Model.ModelException, 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)TreeException
- Thrown if there is a problem with the tree.Parameters.ParameterException
- Thrown if there is a problem
with the parameters (e.g. a requied parameter is not present)AlignmentException
- Thrown if there is a problem with the alignmentSiteLikelihood.LikelihoodException
- Thrown if there is a
problem with calculating likelihoodspublic static AncestralMarginal newInstance(Model m, Alignment a, Tree t)
AncestralJoint
which requires a static method as there is two different classes that
are used based on the situation.a
- The alignmentm
- The modelt
- The treepublic static AncestralMarginal newInstance(java.util.Map<java.lang.String,Model> m, Alignment a, Tree t) throws AlignmentException
AncestralJoint
which requires a static method as there is two different classes that
are used based on the situation.a
- The alignmentm
- Map from site class to modelt
- The treeAlignmentException
- Thrown if a model isn't given
for each site class in the alignment