cTF: Construct cTF object

Description Usage Arguments Value Examples

View source: R/objects.R

Description

Constructs an S3 object called cTF contains data returned by calling get_tf. Used to define methods for printing and visualizing transcription factors-gene expression correlations.

Usage

1
cTF(dat_tf)

Arguments

dat_tf

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

Value

An S3 object of class cTF

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_tf(conn,
              tf = 'LEF1',
              study = '"STES*"',
              min_abs_cor = .3,
              max_num = 5)

# make a cTF object   
ctf <- cTF(dat)

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