random_network_sampling_PPI {COSINE}R Documentation

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

current

The names of selected genes

Author(s)

Haisu Ma

Examples

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

[Package COSINE version 2.1 Index]