Learn R Programming


cRegulome

Overview

Transcription factors and microRNAs are important for regulating the gene expression in normal physiology and pathological conditions. Many bioinformatics tools were built to predict and identify transcription factors and microRNA targets and their role in development of diseases including cancers. The availability of public access high-throughput data allowed for data-driven predictions and discoveries. Here, we build on some of these tools and integrative analyses and provide a tool to access, manage and visualize data from open source databases. cRegulome provides a programmatic access to the regulome (microRNA and transcription factor) correlations with target genes in cancer. The package obtains a local instance of Cistrome Cancer and miRCancerdb databases and provides classes and methods to interact with and visualize the correlation data.

What is cRegulome used for?

cRegulome provides programmatic access to regulome-gene correlation data in cancer from different data sources. Researches who are interested in studying the role of microRNAs and transcription factors in cancer can use this package to construct a small or large scale queries to answer different questions:

  • Which microRNAs and/or transcription factors are associated with a particular

set of genes?

  • What different regulation patterns a microRNA or a transcription factor can

take in different types of cancer?

  • For a given set of regulatory elements, which genes are likely to be

regulated by these elements in a certain type of cancer?

In addition, cRegulome can be used with other R packages like igraph to study the co-regulation networks in different types of cancer.

Getting started

To get starting with cRegulome we show a very quick example. We first start by downloading a small test database file, make a simple query and convert the output to a cRegulome object to print and visualize.

# install the package from CRAN
install.packages('cRegulome')
# install the development version from github
devtools::install_github('ropensci/cRegulome')

# install the development version and build vignette from github 
devtools::install_github('ropensci/cRegulome', build_vignettes = TRUE)
# load required libraries
library(cRegulome)
library(RSQLite)
library(ggplot2)
if(!file.exists('cRegulome.db')) {
    get_db(test = TRUE)
}

# connect to the db file
conn <- dbConnect(SQLite(), 'cRegulome.db')

Or access the same test set file from the package directly

# locate the testset file and connect
fl <- system.file('extdata', 'cRegulome.db', package = 'cRegulome')
conn <- dbConnect(SQLite(), fl)
# enter a custom query with different arguments
dat <- get_mir(conn,
               mir = 'hsa-let-7g',
               study = 'STES',
               min_abs_cor = .3,
               max_num = 5)

# make a cmicroRNA object   
ob <- cmicroRNA(dat)
# print object
ob

Documentation

browseVignettes("cRegulome")

Alternatively, the vingettes can be found online, case_study and using_cRegulome.

Citation

citation("cRegulome")

Copy Link

Version

Install

install.packages('cRegulome')

Monthly Downloads

14

Version

0.3.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Mahmoud Ahmed

Last Published

May 8th, 2020

Functions in cRegulome (0.3.2)

get_mir

Get microRNA correlations from cRegulome.db
stat_make_targets

Make A SQL statement to extract target features
stat_make

Make A SQL statement
cor_venn_diagram

Venn Diagram of microRNA or transcription factor correlated features
get_db

Get cRegulome.db file
cor_prep

Prepare correlation data for plotting
get_tf

Get transcription factor correlations from cRegulome.db
stat_collect_targets

Collect target features from SQLite database
stat_collect

Collect data from SQLite database
cRegulome

cRegulome package
cor_tidy

Tidy cmicroRNA and cTF objects
cor_igraph

Make an igraph object
cmicroRNA

Construct cmicroRNA object
cor_upset

upset plot of microRNA or tf sets
cor_plot

cor_hist

A histogram of the correlations of microRNA or tf sets
cTF

Construct cTF object
cor_joy

A joy plot of correlation of microRNA or tf sets