pruneNet: Prune network by retaining strongest edges

Description Usage Arguments Value

View source: R/pruneNetByStrongest.R

Description

Prune network by retaining strongest edges

Usage

1
pruneNet(net, vertices, pctX = 0.1, useTop = TRUE)

Arguments

net

(data.frame) Network to prune. Columns are: source,target,weight

vertices

(char) node names. Should match those in net[,1:2]

pctX

(numeric 0 to 1) Fraction of top/bottom edges to retain

useTop

(logical) if TRUE prunes to top pctX edges; else prunes to bottom pctX edges

Value

(data.frame) pruned network. Three columns: AliasA, AliasB, and weight


BaderLab/netDx documentation built on Sept. 26, 2021, 9:13 a.m.