alun.mcld
Class PerfectHaplotypes
java.lang.Object
alun.mcld.PerfectHaplotypes
- All Implemented Interfaces:
- DataHaplotypeSource, HaplotypeSource
- Direct Known Subclasses:
- ImperfectHaplotypes, TransposedPerfectHaplotypes
public class PerfectHaplotypes
- extends java.lang.Object
- implements DataHaplotypeSource
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PerfectHaplotypes
public PerfectHaplotypes()
PerfectHaplotypes
public PerfectHaplotypes(InputFormatter f)
throws java.io.IOException
- Throws:
java.io.IOException
getLoci
public java.util.Collection<Locus> getLoci()
- Specified by:
getLoci in interface HaplotypeSource
nHaplotypes
public int nHaplotypes()
- Specified by:
nHaplotypes in interface DataHaplotypeSource
nLoci
public int nLoci()
- Specified by:
nLoci in interface HaplotypeSource
nAlleles
public int nAlleles(int i)
- Specified by:
nAlleles in interface HaplotypeSource
getHaplotype
public int[] getHaplotype(int i)
- Specified by:
getHaplotype in interface DataHaplotypeSource
getAllele
public int getAllele(int i,
int j)
- Specified by:
getAllele in interface DataHaplotypeSource
update
public boolean update(LDModel m)
- Specified by:
update in interface HaplotypeSource
maximize
public boolean maximize(LDModel m)
- Specified by:
maximize in interface HaplotypeSource
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
main
public static void main(java.lang.String[] args)
- Test main.