Learn R Programming

COSINE (version 1.0)

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

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

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

  • currentThe names of selected genes

Examples

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

Run the code above in your browser using DataLab