|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttrans.anno.AnnotateRegionsWithGeneList
For annotating a picks file (chr, start, stop) with gene information for a particular list of CG names. Specific for dmel release 4.0 gff3.
AnnotateRegions
Constructor Summary | |
AnnotateRegionsWithGeneList(java.lang.String[] args)
|
Method Summary | |
static void |
compareBindingRegionsVsGeneGrps(GeneGroup[] geneGroups,
BindingRegion[] bindingRegions)
Does a complete scan, could be optimized. |
static int[] |
countGenes(BindingRegion[] br)
Returns: the number of genes with one or more binding regions within the neighborhood. |
static int |
countNumberBindingRegionsWithNeighbors(BindingRegion[] br)
|
static int |
countNumberNeighbors(BindingRegion[] br)
|
static java.util.ArrayList |
extractCGNames(java.util.ArrayList geneGroups)
Extracts the names of each gene group returning an ArrayList of Strings. |
int |
findDistanceToATG(BindingRegion br,
GeneGroup gp)
Finds the distance to conservative estimate of an ATG, returns 0 if overlaps. |
int |
findDistToClosestATG(BindingRegion br)
Finds the distance to the closest ATG translation start site. |
int |
findDistToClosestATG(BindingRegion br,
java.util.ArrayList geneGroups)
|
int |
findDistToClosestTranscript(BindingRegion br)
Finds the distance to the closest ATG translation start site. |
int |
findDistToClosestTranscript(BindingRegion br,
java.util.ArrayList geneGroups)
|
int |
findDistToClosestTranscript(BindingRegion br,
GeneGroup gp)
Finds the distance to conservative estimate of start of first exon, returns 0 if overlaps. |
static void |
main(java.lang.String[] args)
|
static BindingRegion[] |
makeRandomBindingRegions(BindingRegion[] br,
java.util.HashMap chromLengths,
int sizeNeighborhood)
For each binding region this will make another binding region from the same chromosome with the same length, yet at a random location. |
static boolean |
overlap(java.util.ArrayList ints,
int startRegion,
int endRegion)
Tests whether any startEnd int[] in the ArrayList of ints ovelaps a region defined by the startRegion and endRegion. |
static BindingRegion[] |
parseIntervalFile(java.io.File intervalFile,
int sizeNeighborhood)
Attempts to fetch a serialized array of Interval[], then sorts/ ranks the intervals by the median ratio of the sub window. |
static BindingRegion[] |
parsePicksFile(java.io.File picksFile,
int sizeNeighborhood)
|
void |
printDistToClosestATGAndTranscript(BindingRegion[] br)
Prints rank, chrom, start, stop, distance to closest ATG, to closest transcript start. |
static void |
printDocs()
|
void |
processArgs(java.lang.String[] args)
This method will process each argument and assign new varibles |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AnnotateRegionsWithGeneList(java.lang.String[] args)
Method Detail |
public static BindingRegion[] makeRandomBindingRegions(BindingRegion[] br, java.util.HashMap chromLengths, int sizeNeighborhood)
public void printDistToClosestATGAndTranscript(BindingRegion[] br)
public int findDistToClosestATG(BindingRegion br)
public int findDistToClosestATG(BindingRegion br, java.util.ArrayList geneGroups)
public int findDistToClosestTranscript(BindingRegion br)
public int findDistToClosestTranscript(BindingRegion br, java.util.ArrayList geneGroups)
public int findDistanceToATG(BindingRegion br, GeneGroup gp)
public int findDistToClosestTranscript(BindingRegion br, GeneGroup gp)
public static int countNumberNeighbors(BindingRegion[] br)
public static int countNumberBindingRegionsWithNeighbors(BindingRegion[] br)
public static int[] countGenes(BindingRegion[] br)
public static boolean overlap(java.util.ArrayList ints, int startRegion, int endRegion)
public static java.util.ArrayList extractCGNames(java.util.ArrayList geneGroups)
public static void compareBindingRegionsVsGeneGrps(GeneGroup[] geneGroups, BindingRegion[] bindingRegions)
public static BindingRegion[] parsePicksFile(java.io.File picksFile, int sizeNeighborhood)
public static BindingRegion[] parseIntervalFile(java.io.File intervalFile, int sizeNeighborhood)
public static void printDocs()
public void processArgs(java.lang.String[] args)
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |