To sample random sub-network from the PPI data

Share:

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.