Package org.snpeff.ped
Class PedEntry
java.lang.Object
org.snpeff.ped.TfamEntry
org.snpeff.ped.PedEntry
- All Implemented Interfaces:
Comparable<TfamEntry>,Iterable<PedGenotype>
An entry in a PED table.
I.e. a line in a PED file (PLINK)
- Author:
- pcingola
-
Field Summary
Fields inherited from class org.snpeff.ped.TfamEntry
PHENOTYPE_CASE, PHENOTYPE_CONTROL, PHENOTYPE_MISSING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintNumber of phenotypes availablegetGenotype(int idx) Get genotype WARNING: Empty string means that no genotpye is availablegetGenotype(String idStr) Get phenotype by String IDGet all genotype names WARNING: the returned string collection is unsorted!String[]iterator()protected voidParse a line form a TFAM fileprotected intParse fields form a lineintsize()Number of phenotypestoString()Methods inherited from class org.snpeff.ped.TfamEntry
compareTo, getFamilyId, getFatherId, getId, getMotherId, getPhenotype, getSex, isCase, isControl, isMissingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PedEntry
-
PedEntry
-
-
Method Details
-
countGenotypes
public int countGenotypes()Number of phenotypes available- Returns:
-
getGenotype
Get genotype WARNING: Empty string means that no genotpye is available- Parameters:
idx-- Returns:
-
getGenotype
Get phenotype by String ID- Parameters:
idStr-- Returns:
-
getGenotypeNames
Get all genotype names WARNING: the returned string collection is unsorted!- Returns:
-
getGenotypes
-
iterator
- Specified by:
iteratorin interfaceIterable<PedGenotype>
-
parse
Description copied from class:TfamEntryParse a line form a TFAM file -
parse
Description copied from class:TfamEntryParse fields form a line -
size
public int size()Number of phenotypes- Returns:
-
toString
-