|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.cas.montecarlo.Geometry
ca.cas.montecarlo.CircleGeometry
public class CircleGeometry
Each CircleGeometry object represents the relative positioning of chromosomes from a particular genome as arranged in a circle.
| Field Summary | |
|---|---|
static int |
PTOQ
A constant representing the orientation of a chromosome from its p telomere to its q telomere. |
static int |
QTOP
A constant representing the orientation of a chromosome from its q telomere to its p telomere. |
| Fields inherited from class ca.cas.montecarlo.Geometry |
|---|
arranged, gen |
| Constructor Summary | |
|---|---|
CircleGeometry()
Constructs a CircleGeometry object. |
|
| Method Summary | |
|---|---|
void |
arrange(java.util.Random rGen)
Calling this method causes this Geometry to arrange the Chromosomes from the Genome set by setGenome(). |
boolean |
betweenChroms(long location)
Determines whether the specified location in this Geometry exists between chromosomes |
int |
chromOrient(Chromosome chrom)
Returns the orientation of a particular Chromosome in this Geometry |
double |
distance(Chromosome chrom1,
long location1,
Chromosome chrom2,
long location2)
Returns the distance between locations in the Genome. |
long |
leastNumBP(Chromosome chrom1,
long location1,
Chromosome chrom2,
long location2)
Finds the least number of base pairs between two locations in this Geometry |
Chromosome |
locToChrom(long location)
Returns the Chromosome in which a location in this Geometry exists |
long |
locToLocalLoc(long location)
Determines the location on a Chromosome of a location in this Geometry |
static void |
main(java.lang.String[] args)
|
long |
overallLocation(Chromosome chromIn,
long chromLoc)
Finds the location in this Geometry of a location on a chromosome. |
| Methods inherited from class ca.cas.montecarlo.Geometry |
|---|
checkArranged, setGenome, totalBP |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PTOQ
public static final int QTOP
| Constructor Detail |
|---|
public CircleGeometry()
| Method Detail |
|---|
public void arrange(java.util.Random rGen)
throws java.lang.Exception
Geometry
arrange in class GeometryrGen - a Random object to use in creating the arrangement
java.lang.Exception - if no valid Genome has been set
public boolean betweenChroms(long location)
throws java.lang.Exception
location - a location on this Geometry
java.lang.Exception - if arrange has not been called since the last time
a new Genome was set
public long overallLocation(Chromosome chromIn,
long chromLoc)
throws java.lang.Exception
chromIn - the chromosome which contains the location that is
being consideredchromLoc - the location on chromIn whose location in the Geometry is
to be determined
java.lang.Exception - if arrange has not been called since the last time
a new Genome was set
public Chromosome locToChrom(long location)
throws java.lang.Exception
location - a location in this Geometry
java.lang.Exception - if arrange has not been called since the last time
a new Genome was set
public long locToLocalLoc(long location)
throws java.lang.Exception
location - a location in this Geometry
java.lang.Exception - if arrange has not been called since the last time
a new Genome was set, if location is not a valid location in this geometry,
or if location exists between chromosomes in this geometry
public long leastNumBP(Chromosome chrom1,
long location1,
Chromosome chrom2,
long location2)
throws java.lang.Exception
chrom1 - the Chromosome in which the first base pair is locatedlocation1 - a location on chrom1chrom2 - the Chromosome in which the second base pair is locatedlocation2 - a location on chrom2
java.lang.Exception - if arrange has not been called since the last time
a new Genome was set
public double distance(Chromosome chrom1,
long location1,
Chromosome chrom2,
long location2)
throws java.lang.Exception
Geometry
distance in class Geometrychrom1 - the Chromosome of the first locationlocation1 - the index of the first locationchrom2 - The Chromosome of the second locationlocation2 - the index of the second location
java.lang.Exception - if arrange has not been called since the last time
a new Genome was set
public int chromOrient(Chromosome chrom)
throws java.lang.Exception
chrom - the Chromosome whose orientation is to be determined
java.lang.Exception - if arrange has not been called since the last time
a new Genome was set
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||