|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.objex.progeny.anywhere.data.Chromosome
public class Chromosome
A chromosome contains a set of genetic markers placed at specific genetic distances between one another. The genetic distance can be measured in terms of base pairs
or in terms of centimorgans (cM)
Chromosome is a java bean so that it can be be used to store and/or transfer data through serialization.
ChromosomeMarker,
Allele,
Serialized Form| Constructor Summary | |
|---|---|
Chromosome()
Creates a new Chromosome instance. |
|
| Method Summary | |
|---|---|
void |
addMarker(ChromosomeMarker marker)
Adds the specified marker to the list of markers making up this Chromosome exists. |
Chromosome |
cloneChromosome()
|
int |
getId()
|
ChromosomeMarker |
getMarker(java.lang.String name)
|
java.util.Map<java.lang.String,ChromosomeMarker> |
getMarkers()
Get a map of markers within this chromosome. |
java.lang.String |
getName()
Getter for property name. |
int |
getNextMarkerSequence()
Getter for property nextMarkerSequence. |
java.util.Iterator<ChromosomeMarker> |
iterator()
|
int |
markersCount()
|
void |
setId(int id)
Sets a new ID for the chromosome |
void |
setMarkers(java.util.Map<java.lang.String,ChromosomeMarker> rhs)
Set the list/map of markers for this chromosome. |
void |
setName(java.lang.String rhs)
Setter for property name. |
void |
setNextMarkerSequence(int rhs)
Setter for property nextMarkerSequence. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Chromosome()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic ChromosomeMarker getMarker(java.lang.String name)
name - The marker ID or name
public void addMarker(ChromosomeMarker marker)
marker - The new marker to be addedpublic java.util.Map<java.lang.String,ChromosomeMarker> getMarkers()
public void setMarkers(java.util.Map<java.lang.String,ChromosomeMarker> rhs)
rhs - A map containg the new markers for the chromosomepublic java.lang.String getName()
public void setName(java.lang.String rhs)
rhs - New value of property name.public int getNextMarkerSequence()
public void setNextMarkerSequence(int rhs)
rhs - New value of property nextMarkerSequence.public Chromosome cloneChromosome()
public int markersCount()
public java.util.Iterator<ChromosomeMarker> iterator()
public int getId()
public void setId(int id)
id - The new ID for the chromosome
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||