|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uconn.mcb.lineageevolver.ASRVByteAAGene
Gene implementation using ByteAminoAcid and Simple Among Site Rate Variation (ASRV).
| Field Summary | |
private ByteAminoAcid[] |
_aaAminoAcid
The sequence of amino acids that make up this gene. |
private float |
_fltEvolutionSpeed
The speed with which this gene evolves. |
int |
_id
The ID number for this gene. |
int |
_paralogID
The paralog ID number for this gene. |
private static SubstitutionMatrix |
_smtrx
The currently employed substitution matrix for this gene. |
private int |
_totalSubs
The number of substitutions processed in this gene. |
static int |
ASRV_MUT_FREQ
The number of substitutions undergone before each ASRV mutation. |
static int |
ASRV_MUTLENGTH_MEAN
The average length of sites that mutate their substitution rates in a given mutation event. |
static int |
ASRV_MUTLENGTH_STDEV
The standard deviation of sites that mutate their substitution rates in a given mutation event. |
static int |
DEFAULT_GENESIZE
Default size for a gene in number of amino acids. |
static float |
DUPLICATE_EVOLSPEED_FACTOR
The factor by which to increase the fltEvolutionSpeed of a newly duplicated gene. |
static float |
EVOLRATE_MUTATION_MEAN
The average rate at which this gene's fltEvolutionSpeed mutations. |
static float |
EVOLRATE_MUTATION_STDEV
The standard deviation for this gene's fltEvolutionSpeed mutation. |
static java.util.Random |
randomNumberGenerator
Random number generator shared by all gen1es. |
| Constructor Summary | |
|
ASRVByteAAGene()
Default constructor for objects of type ASRVByteAAGene. |
private |
ASRVByteAAGene(float fltEvolutionSpeed,
int id,
int paralogID)
Constructor for objects of type ASRVByteAAGene that sets characteristic properties of gene instances. |
|
ASRVByteAAGene(float fltEvolutionSpeed,
int id,
int paralogID,
float[] subProbabilities,
byte[] sequence)
Constructor for objects of type ASRVByteAAGene that generates a new gene given a byte sequence. |
|
ASRVByteAAGene(float fltEvolutionSpeed,
int id,
int paralogID,
float[] subProbabilities,
java.lang.String sequence)
Constructor for objects of type ASRVByteAAGene that generates a new gene given a character sequence in the form of a String. |
| Method Summary | |
java.lang.Object |
clone()
All genes must be cloneable. |
Gene |
duplicate(int paralogID)
Generates an paralog of this gene. |
boolean |
equals(java.lang.Object obj)
Checks for equality between two ASRVByteAAGenes. |
AminoAcid |
getAminoAcid(int index)
Returns the AminoAcid at the given index. |
float |
getEvolutionSpeed()
Returns the currently employed evolution speed for this Gene |
int |
getID()
Return the ID number for this gene. |
int |
getParalogID()
Returns the paralog number for this gene. |
int |
getSize()
Returns the number of AminoAcids in this Gene. |
static void |
main(java.lang.String[] args)
Generic driver for ASRVByteAAGenes. |
void |
mutateASRV()
Mutate the ASRV by swapping randomly selected regions. |
void |
mutateEvolutionSpeed()
Mutates the evolution speed of this Gene randomly up or down from the current evolution speed. |
void |
reverse()
Reverses the amino acid positions in this gene. |
void |
setEvolutionSpeed(float fltNewEvolutionSpeed)
Sets the evolution speed for this Gene. |
void |
substitute()
Processes substitution according to the currently employed substitution matrix for this Gene. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.util.Random randomNumberGenerator
public static final int DEFAULT_GENESIZE
public final int _id
public final int _paralogID
private static final SubstitutionMatrix _smtrx
private ByteAminoAcid[] _aaAminoAcid
private float _fltEvolutionSpeed
private int _totalSubs
public static final float EVOLRATE_MUTATION_MEAN
public static final float EVOLRATE_MUTATION_STDEV
public static final float DUPLICATE_EVOLSPEED_FACTOR
public static final int ASRV_MUTLENGTH_MEAN
public static final int ASRV_MUTLENGTH_STDEV
public static final int ASRV_MUT_FREQ
| Constructor Detail |
public ASRVByteAAGene()
public ASRVByteAAGene(float fltEvolutionSpeed,
int id,
int paralogID,
float[] subProbabilities,
java.lang.String sequence)
fltEvolutionSpeed - the speed with which this ASRVByteAAGene evolves.id - the ID number for this ASRVByteAAGene.paralogID - the paralogID number for this ASRVByteAAGene.subProbabilities - the ASRV probabilities for the amino acids in this ASRVByteAAGene.sequence - the sequence of amino acids in this ASRVByteAAGene.
public ASRVByteAAGene(float fltEvolutionSpeed,
int id,
int paralogID,
float[] subProbabilities,
byte[] sequence)
fltEvolutionSpeed - the speed with which this ASRVByteAAGene evolves.id - the ID number for this ASRVByteAAGene.paralogID - the paralogID number for this ASRVByteAAGene.subProbabilities - the ASRV probabilities for the amino acids in this ASRVByteAAGene.sequence - the sequence of amino acids in this ASRVByteAAGene.
private ASRVByteAAGene(float fltEvolutionSpeed,
int id,
int paralogID)
fltEvolutionSpeed - the speed with which this ASRVByteAAGene evolves.id - the ID number for this ASRVByteAAGene.paralogID - the paralogID number for this ASRVByteAAGene.| Method Detail |
public float getEvolutionSpeed()
Gene
getEvolutionSpeed in interface GeneGene.getEvolutionSpeed()public void setEvolutionSpeed(float fltNewEvolutionSpeed)
Gene
setEvolutionSpeed in interface GenefltNewEvolutionSpeed - the new evolution speed for this geneGene.setEvolutionSpeed(float)public void mutateEvolutionSpeed()
public void substitute()
Gene
substitute in interface GeneGene.substitute()public void mutateASRV()
public AminoAcid getAminoAcid(int index)
Gene
getAminoAcid in interface Geneindex - the index of the AminoAcid to return.
Gene.getAminoAcid(int)public int getSize()
Gene
getSize in interface GeneGene.getSize()public int getID()
Gene
getID in interface GeneGene.getID()public int getParalogID()
Gene
getParalogID in interface GeneGene.getParalogID()public Gene duplicate(int paralogID)
Gene
duplicate in interface GeneparalogID - the paralog ID for the duplicated gene.
Gene.duplicate(int)public void reverse()
Gene
reverse in interface GeneGene.reverse()public java.lang.Object clone()
Gene
clone in interface GeneObject.clone()public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public java.lang.String toString()
Object.toString()public static void main(java.lang.String[] args)
args - Arguments are not used in this driver.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||