public class DNAModelFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DNAModelFactory.DNAModel
Represents the various types of DNA models
|
Constructor and Description |
---|
DNAModelFactory(DNAModelFactory.DNAModel model)
Constructor so that calls to
getModel() and getParameters()
return the appropiate model or the appropiate parameters. |
DNAModelFactory(DNAModelFactory.DNAModel model,
int numCats)
Constructor so that calls to
getModel() and getParameters()
return the appropriate model or the appropriate parameters. |
Modifier and Type | Method and Description |
---|---|
static Model |
Felsenstein81_Gamma(int numCats)
Creates an instance of a JFelsenstein 81 model with gamma-distributed rate
across sites
|
static Model |
Felsenstein81_Gamma(Parameters p,
int numCats)
Creates an instance of a JFelsenstein 81 model with gamma-distributed rate
across sites
|
static Model |
Felsenstein81()
Creates an instance of a Felsenstein 81 model
|
static Model |
Felsenstein81(Parameters p)
Creates an instance of a Felsenstein 81 model
|
Model |
getModel()
Returns a new instance of the relevant model
|
Parameters |
getParameters()
Gets the parameters for the relevant model
|
static Model |
GTR_Gamma(int numCats)
Creates an instance of a General Time Reversible model with gamma-distributed rate
across sites
|
static Model |
GTR_Gamma(Parameters p,
int numCats)
Creates an instance of a General Time Reversible model with gamma-distributed rate
across sites
|
static Model |
GTR()
Creates an instance of a General Time Reversible model
|
static Model |
GTR(Parameters p)
Creates an instance of a General Time Reversible model
|
static Model |
HKY_Gamma(int numCats)
Creates an instance of a HKY model with gamma-distributed rate
across sites
|
static Model |
HKY_Gamma(Parameters p,
int numCats)
Creates an instance of a HKY model with gamma-distributed rate
across sites
|
static Model |
HKY()
Creates an instance of a HKY model
|
static Model |
HKY(Parameters p)
Creates an instance of a HKY model
|
static Model |
JukesCantor_Gamma(int numCats)
Creates an instance of a Jukes-Cantor model with gamma-distributed rate
across sites
|
static Model |
JukesCantor_Gamma(Parameters p,
int numCats)
Creates an instance of a Jukes-Cantor model with gamma-distributed rate
across sites
|
static Model |
JukesCantor()
Creates an instance of a Jukes-Cantor model
|
static Model |
JukesCantor(Parameters p)
Creates an instance of a Jukes-Cantor model
|
static Model |
Kimura_Gamma(int numCats)
Creates an instance of a Kimura 2-parameter model with gamma-distributed rate
across sites
|
static Model |
Kimura_Gamma(Parameters p,
int numCats)
Creates an instance of a Kimura 2-parameter model with gamma-distributed rate
across sites
|
static Model |
Kimura()
Creates an instance of a Kimura 2-paramter model
|
static Model |
Kimura(Parameters p)
Creates an instance of a Kimura 2-paramter model
|
public DNAModelFactory(DNAModelFactory.DNAModel model)
getModel()
and getParameters()
return the appropiate model or the appropiate parameters.model
- The modelpublic DNAModelFactory(DNAModelFactory.DNAModel model, int numCats) throws Model.ModelException
getModel()
and getParameters()
return the appropriate model or the appropriate parameters.model
- The modelnumCats
- The number of categories for the modelModel.ModelException
public static Model JukesCantor(Parameters p)
p
- Parameters structure to add the model parameters to (none in
this case but for consistency this is left here)public static Model JukesCantor()
public static Model JukesCantor_Gamma(Parameters p, int numCats) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters tonumCats
- The number of gamma categories to useParameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model JukesCantor_Gamma(int numCats)
numCats
- The number of gamma categories to usepublic static Model Kimura(Parameters p) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters toParameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model Kimura()
public static Model Kimura_Gamma(Parameters p, int numCats) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters tonumCats
- The number of gamma categories to useParameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model Kimura_Gamma(int numCats)
numCats
- The number of gamma categories to usepublic static Model Felsenstein81(Parameters p) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters toParameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model Felsenstein81()
public static Model Felsenstein81_Gamma(Parameters p, int numCats) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters tonumCats
- The number of gamma categories to useParameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model Felsenstein81_Gamma(int numCats)
numCats
- The number of gamma categories to usepublic static Model HKY(Parameters p) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters toParameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model HKY()
public static Model HKY_Gamma(Parameters p, int numCats) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters tonumCats
- The number of gamma categories to useParameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model HKY_Gamma(int numCats)
numCats
- The number of gamma categories to usepublic static Model GTR(Parameters p) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters toParameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model GTR()
public static Model GTR_Gamma(Parameters p, int numCats) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters tonumCats
- The number of gamma categories to useParameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model GTR_Gamma(int numCats)
numCats
- The number of gamma categories to usepublic Model getModel()
public Parameters getParameters()