org.agmodel.bioinfo.segregation
Class MarkerTypeGetter

java.lang.Object
  extended byorg.agmodel.bioinfo.segregation.MarkerTypeGetter

public class MarkerTypeGetter
extends java.lang.Object


Constructor Summary
MarkerTypeGetter()
           
 
Method Summary
 int getMarkerType(char[] l)
          Obtain marker type
 int[] getMarkerTypeArray(char[][] ls)
          Obtain marker type Array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkerTypeGetter

public MarkerTypeGetter()
Method Detail

getMarkerTypeArray

public int[] getMarkerTypeArray(char[][] ls)
Obtain marker type Array

Parameters:
ls - Arrays of genotypes for multiple loci (Matrix)
Returns:
Marker typei0 - codominant, 1 - dominant (allele a is dominant), 2 - dominant (allele b is dominant))

getMarkerType

public int getMarkerType(char[] l)
Obtain marker type

Parameters:
l - Array of genotypes for the locus
Returns:
Marker typei0 - codominant, 1 - dominant (allele a is dominant), 2 - dominant (allele b is dominant))