Learn R Programming

ProNet (version 1.0.0)

construction: Network construction

Description

Construction a network from experimental data or integrated PPI database.

Usage

construction(input, local.net = FALSE, node.attribute = NULL, db = c("Biogrid", "HPRD"), species = c("human", "ath"), ID.type = c("Gene symbol", "Entrez Gene"), hierarchy = 1)

Arguments

input
A data frame containing the experimental data.
local.net
Logical value, indicating whether to construct a network from experimental data (if TRUE) or not (if FLASE). Default value is FALSE.
node.attribute
A data frame containing node attributes. Default value is NULL.
db
Integrated PPI database, either Biogrid or HPRD.
species
This parameter indicates the biological species to which analyzable PPI data is related; currently human for "Homo sapiens" and ath for "Arabidopsis thaliana" are available.
ID.type
The ID type of the biological genes or proteins, possible values are Entrez gene and Gene symbol when db is Biogrid, or Gene symbol when db is HPRD.
hierarchy
This parameter indicates how many hierarchy are included in the network, currently it can be 0, 1 or 2. Default value is 1.

Value

A network in igraph format.

See Also

construct_local, construct_nlocal

Examples

Run this code
## Construction a local network.
local<-data.frame(1:5,2:6)
attribute<-data.frame(1:6,c(2.2,5.3,1.2,4.5,6.2,0.6))
net<-construction(input=local,local.net=TRUE,node.attribute=attribute)
## Construction a network from the human HPRD database.
nlocal<-data.frame(c("DVL1","DVL2","DVL3"))
net<-construction(input=nlocal,db="HPRD",species="human",ID.type="Gene symbol",hierarchy=1)

Run the code above in your browser using DataLab