Learn R Programming

COSINE (version 2.1)

get_components_PPI: Get all the components (connected clusters) of the sub-network

Description

Map the edges in the selected sub-network to the background PPI network and get all the clusters with size larger than the minimumset by the user

Usage

get_components_PPI(gene_names, vector, PPI, minsize)

Arguments

gene_names
The gene names of all the nodes
vector
A binary vector indicating whether each node is selected or not
PPI
A two column matrix including the protein interaction data
minsize
The minimal size of clusters

Value

Examples

Run this code

data(scaled_node_score)
data(scaled_edge_score)
data(PPI)
gene_names<-names(scaled_node_score)
vector<-rep(0,length(scaled_node_score))
vector[sample(1:length(scaled_node_score),length(scaled_node_score)/3)]<-1
components<-get_components_PPI(gene_names,vector,PPI,minsize=3)

Run the code above in your browser using DataLab