Make a compact tibble with only select columns from motifbreakR results GRanges objects.
Usage
mb_to_tibble(mb, key_col = "gene_id")
Arguments
- mb
motifbreakR results GRanges object.
- key_col
The name of the column used to key the txdb. Default gene_id
. May be transcript_id
or otherwise if you use a different value of level
in get_upstream_snps.
Value
A tibble containing the key column (usually gene_id
), and a select number of other columns needed for downstream statistical analysis.
Details
It's a good idea to run motifbreakR once on the background set of all genes and save this as an RData (or .rds) file, and read in when you need them.