|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectExon
public class Exon
Stores and manipulates relevant exon information
Field Summary | |
---|---|
(package private) int |
chr
|
(package private) double |
FPKM
|
(package private) java.lang.String |
geneName
|
double |
likelihoodRatio
|
(package private) int |
numberOfOverlappingReads
|
double |
numPileupPositions
|
(package private) int |
posLeft
|
(package private) int |
posRight
|
double |
pValue
|
static int |
READLENGTH
|
(package private) java.util.ArrayList<MappedReads> |
reads
|
(package private) java.lang.String |
referenceSequence
|
(package private) java.util.HashMap<java.lang.Integer,java.lang.Integer> |
SNPPositions
|
(package private) double |
SNPs
|
(package private) State |
state
|
Constructor Summary | |
---|---|
Exon()
|
|
Exon(java.lang.String dataLine,
boolean fromExonFile)
parse a line of data (modified SAM format) and input appropriate fields |
Method Summary | |
---|---|
static java.util.ArrayList<Exon> |
calculateExpectedValues(java.util.ArrayList<java.lang.String> baselineExonFileNames,
int chromosome)
Computes the expected value for each exon by average the values in the baseline files |
static java.util.ArrayList<Exon> |
calculateNormalizationFactor(java.util.ArrayList<java.lang.String> baselineExonFileNames,
int i)
Deprecated |
private static void |
calculateSNPPositions(Exon exon,
MappedReads read)
Calculated the positions of the SNPs |
static java.util.ArrayList<Exon> |
calculateStdDevValues(java.util.ArrayList<java.lang.String> baselineExonFileNames,
int chromosome,
java.util.ArrayList<Exon> expectedValues)
Computes the std deviation values for each exon by average the values in the baseline files |
boolean |
containsPosition(int position)
Does this exon contain the specified genomic position? |
(package private) static void |
getFPKM(java.util.ArrayList<Expression> Expressions,
java.util.ArrayList<Exon> Exons)
Given an array of exons and expression data, calculate the FPKM levels per exon |
static double |
getGenomeWideGammaParametersK(java.util.ArrayList<Exon> exons)
Find the k parameter for the Gamma distribution describing the genomewide coverage distribution MLE for Gamma |
static double |
getGenomeWideGammaParametersSNPsK(java.util.ArrayList<Exon> exons)
Find the k parameter for the Gamma distribution describing the genomewide heterozygosity distribution MLE for Gamma |
static double |
getGenomeWideGammaParametersSNPsTheta(java.util.ArrayList<Exon> exons,
double k)
Find the Theta parameter for the Gamma distribution describing the genomewide heterozygosity distribution MLE for Gamma |
static double |
getGenomeWideGammaParametersTheta(java.util.ArrayList<Exon> exons,
double k)
Find the Theta parameter for the Gamma distribution describing the genomewide coverage distribution MLE for Gamma |
static int |
getNumberOfDifferences(java.lang.String s1,
java.lang.String s2)
Gets the number of differences (ie SNPs) between the two sequences |
void |
getReferenceSequence(java.io.RandomAccessFile inputReference)
Reads reference file and computes the reference sequence for the exon |
static void |
getSNPs(java.util.ArrayList<Exon> exons,
java.util.ArrayList<MappedReads> mappedReads)
Gets the number of SNPs per exon |
java.lang.String |
inputData()
Huh? |
(package private) int |
length()
|
private boolean |
overlaps(MappedReads mappedRead)
Does exon (this) overlap with mapped reads? |
static java.util.ArrayList<Exon> |
readAndStoreExonFile(java.lang.String exonFileName,
int chromosome)
Reads exon file; stores necessary info in array of exons |
static java.util.ArrayList<Exon> |
readExon(java.lang.String exonFileName,
int chromosome)
Parses the file (br) Reads file until the next chromosome Loads into an array of Exon objects |
(package private) static void |
sortExons(java.util.ArrayList<Exon> data)
Sort exons in order of their genomic position |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int chr
int posLeft
int posRight
java.lang.String geneName
double FPKM
java.lang.String referenceSequence
double SNPs
int numberOfOverlappingReads
java.util.ArrayList<MappedReads> reads
java.util.HashMap<java.lang.Integer,java.lang.Integer> SNPPositions
State state
public double numPileupPositions
public double likelihoodRatio
public double pValue
public static final int READLENGTH
Constructor Detail |
---|
Exon()
Exon(java.lang.String dataLine, boolean fromExonFile)
dataLine
- fromExonFile
- Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.ArrayList<Exon> readExon(java.lang.String exonFileName, int chromosome)
exonFileName
- chromosome
-
static void getFPKM(java.util.ArrayList<Expression> Expressions, java.util.ArrayList<Exon> Exons)
Expressions & Exons should be sorted in order of beginning position
Think its deprecated
Expressions
- Exons
- public void getReferenceSequence(java.io.RandomAccessFile inputReference)
Deprecated
inputReference
- public static int getNumberOfDifferences(java.lang.String s1, java.lang.String s2)
Deprecated
s1
- s2
-
public static void getSNPs(java.util.ArrayList<Exon> exons, java.util.ArrayList<MappedReads> mappedReads)
Deprecated
exons
- mappedReads
- int length()
private static void calculateSNPPositions(Exon exon, MappedReads read)
Deprecated
exon
- read
- private boolean overlaps(MappedReads mappedRead)
Deprecated
mappedRead
-
static void sortExons(java.util.ArrayList<Exon> data)
data
- list of exonspublic boolean containsPosition(int position)
position
-
public java.lang.String inputData()
public static java.util.ArrayList<Exon> readAndStoreExonFile(java.lang.String exonFileName, int chromosome)
exonFileName
- name of file with list of exonschromosome
-
public static java.util.ArrayList<Exon> calculateExpectedValues(java.util.ArrayList<java.lang.String> baselineExonFileNames, int chromosome)
baselineExonFileNames
- array of names of the baseline files (the samples that to be compared against)chromosome
- chromosome
public static java.util.ArrayList<Exon> calculateStdDevValues(java.util.ArrayList<java.lang.String> baselineExonFileNames, int chromosome, java.util.ArrayList<Exon> expectedValues)
baselineExonFileNames
- array of names of the baseline files (the samples that to be compared against)chromosome
- chromosomeexpectedValues
- list of expected values per exon
public static java.util.ArrayList<Exon> calculateNormalizationFactor(java.util.ArrayList<java.lang.String> baselineExonFileNames, int i)
baselineExonFileNames
- i
-
public static double getGenomeWideGammaParametersK(java.util.ArrayList<Exon> exons)
exons
- list of observation values per exon
public static double getGenomeWideGammaParametersTheta(java.util.ArrayList<Exon> exons, double k)
exons
- list of observation values per exonk
- gamma parameter k
public static double getGenomeWideGammaParametersSNPsK(java.util.ArrayList<Exon> exons)
exons
- list of observation values per exon
public static double getGenomeWideGammaParametersSNPsTheta(java.util.ArrayList<Exon> exons, double k)
exons
- list of observation values per exonk
- gamma parameter k
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |