cor_tidy: Tidy cmicroRNA and cTF objects

Description Usage Arguments Value Examples

View source: R/methods.tidy.R

Description

Tidy cmicroRNA and cTF objects

Usage

1

Arguments

ob

A cmicroRNA or cTF object such as this returned by calling cmicroRNA or cTF.

Value

A tidy data.frame of four columns. mirna_base or tfis the microRNA miRBase IDs, feature is the features/genes, cor is the corresponding expression correlations and study is TCGA study ID.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# 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)

# convert cmicroRNA object to a tidy data.frame
tidy_cmir <- cor_tidy(cmir)

cRegulome documentation built on Sept. 21, 2018, 6:29 p.m.