random.net: Resort datasets and generate random networks

Description Usage Arguments Details Value

View source: R/random.net.R

Description

The function is used to generate random datasets or random networks

Usage

1
random.net(input, nexp = NA, type = "data", directed = F)

Arguments

input

a gene expression data frame or a string vector of gene names.

nexp

a numeric number to indicate how many experiments in the datasets. The gene expression datasets are resorted in both experiment-wise and gene-wise.

type

a character string to indicate the resort datasets ("data") or to generate random networks ("network").

directed

logical, if FALSE, the random network generated from gene names will be converted to symmetric matrix.

Details

(a) Input a gene expression data frame with genes in columns and samples in rows, the function resorts the sample points for each genes in each experiments. (b) Input a string vector of gene names, the function generates random network with random edge weightes.

Value

random.net returns a randomly resorted expression data frame or a random network matrix.


wyguo/RLowPC documentation built on May 28, 2017, 7:34 a.m.