alun.gchap
Class Marker

java.lang.Object
  extended by alun.gchap.GeneticTrait
      extended by alun.gchap.Marker
Direct Known Subclasses:
SNP

public class Marker
extends GeneticTrait

This class extends GeneticTrait to represent a single marker.


Constructor Summary
Marker(int n)
          Creates a new genetic trait with an underlying locus that has the given number of alleles.
 
Method Summary
 void addObservations(int i, int j, int k)
          Adds a count for the given observation to the trait.
 Phenotype findPhenotype(int i, int j)
          Returns the phenotype for the given pair of alleles.
static void main(java.lang.String[] args)
          Test main.
 
Methods inherited from class alun.gchap.GeneticTrait
downCode, downCode, geneCount, getLocus, nPhenotypes, parsDownCode, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Marker

public Marker(int n)
Creates a new genetic trait with an underlying locus that has the given number of alleles. Phenotypes are derived assuming codominance.

Method Detail

findPhenotype

public Phenotype findPhenotype(int i,
                               int j)
Returns the phenotype for the given pair of alleles.


addObservations

public void addObservations(int i,
                            int j,
                            int k)
Adds a count for the given observation to the trait.


main

public static void main(java.lang.String[] args)
Test main.