|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.cas.montecarlo.Misrejoiner
public abstract class Misrejoiner
A class that extends Misrejoiner represents the process of rejoining the loose ends that are the result of the irradiation of a genome. Base pairs which were not adjacent prior to the irradiation of the genome may be joined during this process, hence the name Misrejoiner. An extending misrejoiner subclass may define its own constructor if it must be initialized with any parameters. Geometry and AbGraph objects must be set by the driver before the misrejoin method may be called.
Field Summary | |
---|---|
protected java.util.Set |
finalEdges
|
protected AbVertex[] |
freeEnds
|
protected Geometry |
geo
|
protected double |
grandSum
|
protected AbGraph |
graph
|
protected double[][] |
probArray
|
protected int |
size
|
Constructor Summary | |
---|---|
Misrejoiner()
|
Method Summary | |
---|---|
void |
addEdgesToGraph()
Adds all of the final edges found so far to the AbGraph set by setAbGraph() To ensure that Misrejoiner has finished the process of misrejoining, call getAllFinalEdges() before calling this method or call getAndAddFinalEdges() |
Chromosome |
arrayIndexToChromosome(int index)
Finds the Chromosome that a particular free end is from |
long |
arrayIndexToLoc(int index)
Finds the location of a particular free end on the Chromosome that it is from. |
java.util.Set |
getAllFinalEdges(java.util.Random r)
Calculates a Set of final edges that represents the end result of the misrejoining process. |
java.util.Set |
getAndAddFinalEdges(java.util.Random r)
Calculates a Set of final edges that represents the end result of the misrejoining process. |
protected void |
initialize()
|
protected abstract void |
initializeProbArray()
|
void |
misrejoin(java.util.Random r)
Calculates final edges from the free ends currently contained by the AbGraph set by setAbGraph() and adds these final edges back into the AbGraph |
void |
setAbGraph(AbGraph graph)
Set the AbGraph object that is to be used by this Misrejoiner |
void |
setGeometry(Geometry geo)
Set the Geometry object that is to be used by this Misrejoiner |
protected abstract void |
updateProbArray(int i,
int j)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int size
protected double grandSum
protected double[][] probArray
protected AbGraph graph
protected AbVertex[] freeEnds
protected java.util.Set finalEdges
protected Geometry geo
Constructor Detail |
---|
public Misrejoiner()
Method Detail |
---|
protected void initialize() throws java.lang.Exception
java.lang.Exception
protected abstract void initializeProbArray() throws java.lang.Exception
java.lang.Exception
public void setGeometry(Geometry geo)
geo
- a Geometry objectpublic void setAbGraph(AbGraph graph)
graph
- an AbGraph objectpublic void misrejoin(java.util.Random r) throws java.lang.Exception
r
- a Random object to use in the calculation
java.lang.Exception
public java.util.Set getAllFinalEdges(java.util.Random r) throws java.lang.Exception
java.lang.Exception
public java.util.Set getAndAddFinalEdges(java.util.Random r) throws java.lang.Exception
java.lang.Exception
public void addEdgesToGraph() throws java.lang.Exception
java.lang.Exception
protected abstract void updateProbArray(int i, int j)
public Chromosome arrayIndexToChromosome(int index)
index
- of the free end in the proability array
public long arrayIndexToLoc(int index)
index
- of the free end in the probability array
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |