generateSimNet: Generate simulated network and test

View source: R/simulation.R

generateSimNetR Documentation

Generate simulated network and test

Description

This function generates simulated network with pre-specified modular structure

Usage

generateSimNet(mSize,mNum,targetNum,auxNum,prob)

Arguments

mSize

Size of module in simulated network(s)

mNum

Number of regulator gene in each module

targetNum

Number of target genes for each regualtor in the module

auxNum

Number of auxiliary genes in simulated network(s)

prob

Co-regulation probability. A numeric value between 0 and 1. Larger value generates network with stronger co-regulation pattern

Details

This function first calls generates simulated network with pre-specified modular structure. The properties of network are specified by the arguments. The approach of generating simulated netwoks is a modified version of a previous publication. Modification is made to generate co-regulatory modules in directed network

Value

A list including following elements:

el

Edge list of the simulated network

modulePartition

The pre-specified module labels for regulator genes. They are considered as "ground truth" of co-regulatory mdoules

Author(s)

Qi Song

See Also

netSimAndEval

Examples

re<-generateSimNet(10,5,20,100,0.5)

# View the edge list of simulated network
re$el

LiLabAtVT/CoReg documentation built on May 8, 2022, 10:17 a.m.