Package org.snpeff.ped
Class PedGenotype
- java.lang.Object
-
- org.snpeff.ped.PedGenotype
-
public class PedGenotype extends java.lang.ObjectA Simple genotype implementation for PED files- Author:
- pcingola
-
-
Constructor Summary
Constructors Constructor Description PedGenotype(java.lang.String[] genotypes)PedGenotype(java.lang.String[] genotypes, java.lang.String chrName, int position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringget(int idx)java.lang.String[]getGenotypes()intgetPosition()booleanhas(java.lang.String genotype)Is 'genotype' in this one?booleanisHomozygous()Is this homozygous?booleanisValid()intsize()java.lang.StringtoString()java.lang.StringtoString(boolean wcComplement)
-
-
-
Method Detail
-
get
public java.lang.String get(int idx)
-
getGenotypes
public java.lang.String[] getGenotypes()
-
getPosition
public int getPosition()
-
has
public boolean has(java.lang.String genotype)
Is 'genotype' in this one?- Parameters:
genotype-- Returns:
-
isHomozygous
public boolean isHomozygous()
Is this homozygous?- Returns:
-
isValid
public boolean isValid()
-
size
public int size()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(boolean wcComplement)
-
-