Description Usage Arguments Details Examples
View source: R/plotOverlapsWithFeaturesList.R
count overlaps for each element in GRanges with features stored in GRangesList_subject
using summarizeOverlapsWithFeatureList
group the mcols of GRanges by status (DOWN/None/UP -regulated)
normalise the counts against the number of genes per group and express that as percentage
subset the peaks_none
, peaks_up
, peaks_down
and convert to long format for ggplot
1 | plotOverlapsWithFeaturesList(GRanges_query, GRangesList_subject)
|
GRanges_query |
GRanges object that will be used as a query |
GRangesList_subject |
GRangesList object that will be used as a subject |
plotFeatureOverlaps
1 2 3 4 5 6 7 8 9 10 11 12 | CEBPa = makeFeaturesList("/localhome/bric/qlr900/analysis/02_MLL/data/chip-seq/DNA-mapping/CSAW_MACS2_CEBPa")
expressedGenes = allGenes %>% subset(baseMean > 10)
find coordinates of promoters of deregulated genes:
promoters_of_expressedGenes = left_join(expressedGenes, promoters_GRCm38_M24_basic, by = c("geneID" = "gene_id")) %>% as("GRanges")
# use encode_GRCm38_M24_basic for to make annotation
txdb =
makeTxDbFromGFF("/scratch/genomes/snakepipes/GRCm38_M24_basic/annotation/genes.gtf",
format=c("gtf"),
dataSource="gencode_GRCm38_M24_basic")
promoters_GRCm38_M24_basic = genes(txdb) %>% promoters %>% as.data.frame
plotOverlapsWithFeaturesList (promoters_of_expressedGenes, CEBPa)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.