cor_igraph: Make an igraph object

Description Usage Arguments Value Examples

View source: R/methods.tidy.R

Description

An igraph object of from cmicroRNA or cTF objects.

Usage

1
cor_igraph(ob, directed = FALSE)

Arguments

ob

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

directed

A logical when FALSE the graph is indirected

Value

An igraph object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# load required libraries
library(RSQLite)
library(cRegulome)

# 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 = c('hsa-let-7g', 'hsa-let-7i'),
               study = 'STES')

# make a cmicroRNA object   
cmir <- cmicroRNA(dat)

# print object
cor_igraph(cmir)

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