parseNCInetwork: Takes a NCI network and transforms it into a simpler graph...

Description Usage Arguments Value Author(s) Examples

View source: R/parseNCInetwork.R

Description

Takes a NCI network and transforms it into a simpler graph only representing inhibition/activation relationships between genes.

Usage

1
parseNCInetwork(g, propagateReg=TRUE, separateEntrez=TRUE, mergeEntrezCopies=TRUE, entrezOnly=TRUE)

Arguments

g

A graph object.

propagateReg

A logical. If TRUE, use propagateRegulation to transform the network before parsing it.

separateEntrez

A logical. If TRUE, don't merge two nodes with entrezID.

mergeEntrezCopies

A logical. If TRUE, merge resulting nodes that have the same entrezID.

entrezOnly

A logical. If TRUE, only keep nodes with an entrezID property.

Value

The new graph object.

Author(s)

Laurent Jacob

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Load NCIgraph

library(NCIgraph)

## Get some raw networks

data("NCIgraphVignette", package="NCIgraph")

## Parse the first of them

parsedNetwork <- parseNCInetwork(NCI.demo.cyList[[1]],propagateReg=TRUE,separateEntrez=TRUE,mergeEntrezCopies=TRUE,entrezOnly=TRUE)

Example output

Loading required package: graph
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, basename, cbind, colMeans, colSums, colnames,
    dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
    intersect, is.unsorted, lapply, lengths, mapply, match, mget,
    order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
    rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
    union, unique, unsplit, which, which.max, which.min

NCIgraph documentation built on Nov. 8, 2020, 5:54 p.m.