mbrPlotDuals {RTNduals}R Documentation

Plot shared targets between regulons.

Description

This function plots the shared targets for a regulon pair.

Usage

mbrPlotDuals(object, dualreg, filepath = NULL, cols = c("#006400FF",
  "#CD6600FF"))

Arguments

object

A processed object of class MBR evaluated by the method mbrAssociation.

dualreg

A string indicating the name of a dual regulon.

filepath

A string indicating the file path where the plot should be saved.

cols

A vector of length 2 indicating a diverging color scheme for negative and positive correlations, respectively.

Value

A plot showing targets of dual regulons.

Examples

##--- load a dataset for demonstration
data("dt4rtn", package = "RTN")
gexp <- dt4rtn$gexp
annot <- dt4rtn$gexpIDs
tfs <- dt4rtn$tfs[c("IRF8","IRF1","PRDM1","AFF3","E2F3")]

##--- run mbrPreprocess
rmbr <- mbrPreprocess(gexp=gexp, regulatoryElements = tfs, 
rowAnnotation=annot)

## Not run: 

##--- run mbrPermutation
rmbr <- mbrPermutation(rmbr, nPermutations=1000)

##--- run mbrBootstrap
rmbr <- mbrBootstrap(rmbr, nBootstrap=100)

##-- run mbrDpiFilter
rmbr <- mbrDpiFilter(rmbr)

##--- run mbrAssociation
rmbr <- mbrAssociation(rmbr, nPermutations=1000)

##--- get inferred duals and plot the shared cloud of targets
duals <- mbrGet(rmbr, what="dualRegulons")
mbrPlotDuals(rmbr, dualreg=duals[1])


## End(Not run)

[Package RTNduals version 1.4.4 Index]