Converts a list of data.tables (From BSreadbeds) into GRanges.
Produces summaries and plots of features distributed across genomes
Calculates the distribution of a query set over the genome
Returns the distribution of query over a reference assembly Given a query set of elements (a GRanges object) and a reference assembly (*e.g. 'hg38'), this will aggregate and count the distribution of the query elements across bins of the reference genome. This is a helper function to create features for common genomes. It is a wrapper of 'calcChromBins', which is more general.
Calculates the cumulative distribution of overlaps between query and arbitrary genomic partitions
Calculates the cumulative distribution of overlaps for a query set to a reference assembly
Calculate Dinuclotide content over genomic ranges
Calculate dinucleotide content over genomic ranges
Calculates expected partiton overlap based on contribution of each feature (partition) to genome size. Expected and observed overlaps are then compared.
Calculates the distribution of observed versus expected overlaps for a query set to a reference assembly
Find the distance to the nearest genomic feature
Calculates the distribution of distances from a query set to closest TSS
Calculate GC content over genomic ranges
Group regions from the same chromosome together and calculate the distances between neighboring regions.  Distances are then lumped into a numeric vector.
The function calcOpenSignal takes the input BED file(s) in form of GRanges or GRangesList object, overlaps it with all defined open chromatin regions across cell types and returns a matrix, where each row is the input genomic region (if overlap was found), each column is a cell type, and the value is a normalized ATAC-seq signal.
Calculates the distribution of overlaps between query and arbitrary genomic partitions
Calculates the distribution of overlaps for a query set to a reference assembly
Table the maps cell types to tissues and groups
Checks to make sure a package object is installed, and if so, returns it. If the library is not installed, it issues a warning and returns NULL.
Checks class of the list of variables. To be used in functions
Converts a data.table (DT) object to a GenomicRanges (GR) object. Tries to be intelligent, guessing chr and start, but you have to supply end or other columns if you want them to be carried into the GR.
Two utility functions for converting data.tables into GRanges objects
A dataset containing a subset of open chromatin regions across all cell types defined by ENCODE for Homo Sapiens hg19
Create a basic genome partition list of genes, exons, introns, UTRs, and intergenic
Returns built-in chrom sizes for a given reference assembly
Get gene models from a remote or local FASTA file
Returns built-in gene models for a given reference assembly
Get gene models from a remote or local GTF file
Returns bins used in 'calcChromBins' function Given a named vector of chromosome sizes, the function returns GRangesList object with bins for each chromosome.
Get reference data for a specified assembly
Get transcription start sites (TSSs) from a remote or local GTF file
Convert a GenomicRanges into a data.table.
Creates labels based on a discretization definition.
Loads BSgenome objects from UCSC-style character vectors.
Internal helper function to calculate distance between neighboring regions.
Nathan's magical named list function. This function is a drop-in replacement for the base list() function, which automatically names your list according to the names of the variables used to construct it. It seamlessly handles lists with some names and others absent, not overwriting specified names while naming any unnamed parameters. Took me awhile to figure this out.
Plot the cumulative distribution of regions in features
Plot dinuclotide content within region set(s)
Produces a barplot showing how query regions of interest are distributed relative to the expected distribution across a given partition list
Plots a histogram of distances to genomic features
Plots a density distribution of GC vectors Give results from the 'calcGCContent' function, this will produce a density plot
Plot the distances between neighboring regions.The distance in the x axis is log10 transformed for ease of comparison between different regionsets and to account for outliers.
The function plotOpenSignal visualizes the signalMatrix obtained from calcOpenSignal.
Produces a barplot showing how query regions of interest are distributed across a given partition list
Example BED file read with rtracklayer::import
Efficiently split a data.table by a column in the table