cor_igraph {cRegulome}R Documentation

Make an igraph object

Description

An igraph object of from cmicroRNA or cTF objects.

Usage

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

# 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)


[Package cRegulome version 0.3.2 Index]