random_network_sampling_PPI: To sample random sub-network from the PPI data

Description Usage Arguments Value Author(s) Examples

View source: R/random_network_sampling_PPI.R

Description

Randomly sample a set of nodes from the gene pool, and check the number of edges contained, if there are edges among the nodes, return the random sub-network

Usage

1
random_network_sampling_PPI(size, PPI, all_genes)

Arguments

size

number of nodes to be sampled

PPI

The PPI network data

all_genes

The names of all genes

Value

current

The names of selected genes

Author(s)

Haisu Ma

Examples

1
2
3
data(PPI)
all_genes<-union(PPI[,1],PPI[,2])
ran_net<-random_network_sampling_PPI(size=30,PPI,all_genes)


COSINE documentation built on May 19, 2017, 11:02 a.m.
Search within the COSINE package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.