cmicroRNA: Construct cmicroRNA object

Description Usage Arguments Value Examples

View source: R/objects.R

Description

Constructs an S3 object called cmicroRNA contains data returned by calling get_mir. Used to define methods for printing and visualizing microRNA-gene expression correlations.

Usage

1
cmicroRNA(dat_mir)

Arguments

dat_mir

A data.frame such as this returned by calling get_mir.

Value

An S3 object of class cmicroRNA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# locate the testset file and connect
fl <- system.file('extdata', 'cRegulome.db', package = 'cRegulome')
conn <- RSQLite::dbConnect(RSQLite::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   
cmir <- cmicroRNA(dat)

cRegulome documentation built on July 1, 2020, 10:26 p.m.