ESAT
 All Classes Namespaces Files Functions Variables Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
broad.core.math.PermutationDistribution Class Reference

Public Member Functions

 PermutationDistribution (Annotation parentRegion, String bamFile, String bedFile, int numPermutations) throws IOException
 
 PermutationDistribution (Annotation parentRegion, String bamFile, String bedFile, int numPermutations, int maxGenomicSpan) throws IOException
 
 PermutationDistribution (Annotation parentRegion, AlignmentModel alignments, CoordinateSpace coordinateSpace, int numPermutations)
 
 PermutationDistribution (Annotation parentRegion, AlignmentModel alignments, CoordinateSpace coordinateSpace, int numPermutations, int maxGenomicSpan)
 
double getScanPvalue (Annotation window)
 
EmpiricalDistribution getScanDistribution (int windowSize)
 
void writeWigEachPosition (String outWig) throws IOException
 
void writeWindowsWithPvalue (int windowSize, String outBed) throws IOException
 

Static Public Member Functions

static void main (String[] args) throws IOException
 

Detailed Description

Author
prussell

Constructor & Destructor Documentation

broad.core.math.PermutationDistribution.PermutationDistribution ( Annotation  parentRegion,
String  bamFile,
String  bedFile,
int  numPermutations 
) throws IOException
Parameters
parentRegionParent region
bamFileBam file
bedFileBed file for transcriptome space
numPermutationsNumber of permutations
Exceptions
IOException

Here is the caller graph for this function:

broad.core.math.PermutationDistribution.PermutationDistribution ( Annotation  parentRegion,
String  bamFile,
String  bedFile,
int  numPermutations,
int  maxGenomicSpan 
) throws IOException
Parameters
parentRegionParent region
bamFileBam file
bedFileBed file for transcriptome space
numPermutationsNumber of permutations
maxGenomicSpanMax genomic span for paired reads
Exceptions
IOException
broad.core.math.PermutationDistribution.PermutationDistribution ( Annotation  parentRegion,
AlignmentModel  alignments,
CoordinateSpace  coordinateSpace,
int  numPermutations 
)
Parameters
parentRegionParent annotation
alignmentsCollection of annotations to count e.g. read mappings
coordinateSpaceCoordinate space
numPermutationsNumber of permutations
broad.core.math.PermutationDistribution.PermutationDistribution ( Annotation  parentRegion,
AlignmentModel  alignments,
CoordinateSpace  coordinateSpace,
int  numPermutations,
int  maxGenomicSpan 
)
Parameters
parentRegionParent annotation
alignmentsCollection of annotations to count e.g. read mappings
coordinateSpaceCoordinate space
numPermutationsNumber of permutations
maxGenomicSpanMax genomic span for paired reads

Member Function Documentation

EmpiricalDistribution broad.core.math.PermutationDistribution.getScanDistribution ( int  windowSize)

Get scan distribution for the window size

Parameters
windowSizeWindow size
Returns
Scan distribution

Here is the caller graph for this function:

double broad.core.math.PermutationDistribution.getScanPvalue ( Annotation  window)

Get scan P value of window

Parameters
windowThe window
Returns
The percentage of permutations with a window of the same size that has more overlapping fragments

Here is the call graph for this function:

Here is the caller graph for this function:

static void broad.core.math.PermutationDistribution.main ( String[]  args) throws IOException
static
Parameters
args
Exceptions
IOException

Here is the call graph for this function:

void broad.core.math.PermutationDistribution.writeWigEachPosition ( String  outWig) throws IOException

Write a wig file of -log10(Pvalue) at each position of annotation

Parameters
outWigOutput wig file
Exceptions
IOException

Here is the call graph for this function:

void broad.core.math.PermutationDistribution.writeWindowsWithPvalue ( int  windowSize,
String  outBed 
) throws IOException

Write windows to bed file with scan P value in score field

Parameters
windowSizeWindow size
outBedOutput bed file
Exceptions
IOException

Here is the call graph for this function:


The documentation for this class was generated from the following file: