Learn R Programming

DBGSA (version 1.2)

randdis: Randomly generating some gene expression profiles by gene resampling

Description

A function which is used to generate the required number of gene expression profiles by permutation called gene resampling

Usage

randdis(z,minigenenum,randnum,setdis,normnum,Meth,resultname)

Arguments

z
An input matrix which contains the gene profiles
minigenenum
An integer indicating the number of gene to be permutated, the number of it has to be larger than the gene number that any gene function label has.
randnum
An integer represents the number of permutation
setdis
a character string indicating which method is to be used to compute the distances between case group and control group, avelinkdis or centdis is the choice to choose
normnum
an integer indecating the number of the case group
Meth
A character string indicates which method to be used to compute the distances between genes, euclidean and Manhattan is available to choose
resultname
character string which represents the name of the output file

Value

A text containing the distances only.

Examples

Run this code
## Not run: 
# data(afExp)
# ##Randomly generating the gene expression profile and save it in the text named rand 
# randdis(afExp,500,10,avelinkdis,10,"euclidean","rand.txt")
#   ## End(Not run)

Run the code above in your browser using DataLab