Class Pileup
java.lang.Object
Pileup
public class Pileup
- extends java.lang.Object
Class to handle pileup files
- Author:
- arthiramachandran
Constructor Summary |
Pileup(java.lang.String line)
|
Method Summary |
static void |
readData(java.util.ArrayList<Exon> exons,
java.io.BufferedReader br)
Reads the pileup and simultaneously updates the exon lists with appropriate values |
static java.util.HashMap<java.lang.Integer,Pileup> |
readData(java.io.BufferedReader br)
Reads and parses the pileup file |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
position
int position
heterozygous
int heterozygous
homozygous
int homozygous
coverage
int coverage
chromosome
int chromosome
Pileup
public Pileup(java.lang.String line)
readData
public static java.util.HashMap<java.lang.Integer,Pileup> readData(java.io.BufferedReader br)
- Reads and parses the pileup file
- Parameters:
br
- buffered reader to the pileup file
- Returns:
- hashmap of the pileups
readData
public static void readData(java.util.ArrayList<Exon> exons,
java.io.BufferedReader br)
- Reads the pileup and simultaneously updates the exon lists with appropriate values
- Parameters:
exons
- list of exons to be populated with values from the pileupbr
- buffered reader to pileup file
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object