public class PedFile extends java.util.TreeMap<java.lang.String,PedFile.PedTrio>
Modifier and Type | Class and Description |
---|---|
class |
PedFile.PedTrio |
Modifier and Type | Field and Description |
---|---|
static java.lang.Number |
NO_PHENO |
static Sex |
UNKNOWN_SEX |
Constructor and Description |
---|
PedFile(boolean isTabMode) |
Modifier and Type | Method and Description |
---|---|
void |
add(PedFile.PedTrio trio)
Adds a trio to the PedFile keyed by the individual id.
|
static PedFile |
fromFile(java.io.File file,
boolean isTabMode)
Attempts to read a pedigree file into memory.
|
static PedFile |
fromSexMap(java.util.Map<java.lang.String,Sex> sampleSexes)
Function that accepts a map from sample-name to its sex and creates a PEDFile documenting the sexes.
|
PedFile |
removeIncompleteTrios()
Scans through the pedigrees and removes all entries that do not have both paternal and maternal ids set.
|
void |
write(java.io.File file)
Writes a set of pedigrees out to disk.
|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
public static final java.lang.Number NO_PHENO
public static final Sex UNKNOWN_SEX
public void add(PedFile.PedTrio trio)
public void write(java.io.File file)
public static PedFile fromFile(java.io.File file, boolean isTabMode)
public PedFile removeIncompleteTrios()