Package org.snpeff.ped
Class TfamEntry
- java.lang.Object
-
- org.snpeff.ped.TfamEntry
-
-
Field Summary
Fields Modifier and Type Field Description static intPHENOTYPE_CASEFrom PLINK's manual: Affection status, by default, should be coded: -9 missing 0 missing 1 unaffected 2 affectedstatic intPHENOTYPE_CONTROLstatic intPHENOTYPE_MISSING
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TfamEntry ind)java.lang.StringgetFamilyId()java.lang.StringgetFatherId()java.lang.StringgetId()java.lang.StringgetMotherId()doublegetPhenotype()SexgetSex()booleanisCase()Is phenotype 'Case'?booleanisControl()Is phenotype 'Control'?booleanisMissing()Is phenotype 'Missing'?protected voidparse(java.lang.String line)Parse a line form a TFAM fileprotected intparse(java.lang.String[] fields)Parse fields form a linejava.lang.StringtoString()
-
-
-
Field Detail
-
PHENOTYPE_CASE
public static final int PHENOTYPE_CASE
From PLINK's manual: Affection status, by default, should be coded: -9 missing 0 missing 1 unaffected 2 affected- See Also:
- Constant Field Values
-
PHENOTYPE_CONTROL
public static final int PHENOTYPE_CONTROL
- See Also:
- Constant Field Values
-
PHENOTYPE_MISSING
public static final int PHENOTYPE_MISSING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TfamEntry
public TfamEntry(java.lang.String line)
-
TfamEntry
public TfamEntry(java.lang.String familyId, java.lang.String id, java.lang.String fatherId, java.lang.String motherId, Sex sex, double phenotype)
-
-
Method Detail
-
compareTo
public int compareTo(TfamEntry ind)
- Specified by:
compareToin interfacejava.lang.Comparable<TfamEntry>
-
getFamilyId
public java.lang.String getFamilyId()
-
getFatherId
public java.lang.String getFatherId()
-
getId
public java.lang.String getId()
-
getMotherId
public java.lang.String getMotherId()
-
getPhenotype
public double getPhenotype()
-
getSex
public Sex getSex()
-
isCase
public boolean isCase()
Is phenotype 'Case'?- Returns:
-
isControl
public boolean isControl()
Is phenotype 'Control'?- Returns:
-
isMissing
public boolean isMissing()
Is phenotype 'Missing'?- Returns:
-
parse
protected void parse(java.lang.String line)
Parse a line form a TFAM file- Parameters:
line-
-
parse
protected int parse(java.lang.String[] fields)
Parse fields form a line- Parameters:
fields-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-