alun.linkage
Class NumberedAllelePhenotype
java.lang.Object
alun.linkage.LinkagePhenotype
alun.linkage.NumberedAllelePhenotype
public class NumberedAllelePhenotype
- extends LinkagePhenotype
This class represents the data for an individual for a locus
in the linkage numbered allele input format.
|
Field Summary |
int |
a1
The first allele at this locus for the individual whose data this is. |
int |
a2
The second allele at this locus for the individual whose data this is. |
|
Constructor Summary |
NumberedAllelePhenotype(NumberedAlleleLocus l,
int allele1,
int allele2)
Creates a new phenotype given the specified allele numbers and
checks that the data is consistent with the parameters for
the given locus. |
|
Method Summary |
LinkagePhenotype |
nullCopy()
|
void |
reCode(int[] c)
|
java.lang.String |
toString()
Returns a string giving the numbers of the alleles at this
locus for the individual whose data this is. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
a1
public int a1
- The first allele at this locus for the individual whose data this is.
a2
public int a2
- The second allele at this locus for the individual whose data this is.
NumberedAllelePhenotype
public NumberedAllelePhenotype(NumberedAlleleLocus l,
int allele1,
int allele2)
- Creates a new phenotype given the specified allele numbers and
checks that the data is consistent with the parameters for
the given locus.
nullCopy
public LinkagePhenotype nullCopy()
- Specified by:
nullCopy in class LinkagePhenotype
toString
public java.lang.String toString()
- Returns a string giving the numbers of the alleles at this
locus for the individual whose data this is.
- Overrides:
toString in class java.lang.Object
reCode
public void reCode(int[] c)