Learn R Programming

DBGSA (version 1.2)

distable: function to compute the specific distances between different phenotypes

Description

function which is used to calculate the required distances according to the given math method, such as euclidean, then the result of the distances will be returned in a text

Usage

distable(fd,num,setdis,Meth,resultname)

Arguments

fd
Character string represents the name of a connection of the file to load, each row contains three items, Class labels of gene function, gene name and gene expression profile, each column represents the information of a class labels of gene function
num
An integer indecating the number of the case group
setdis
A character string indicating which method to be used to compute the distances between case group and control groupp, avelinkdis or centdis is the choice to choose
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.

Examples

Run this code
## Not run: 
# 
# ##compute the distances and put them in the text named juli, the input file named "b1.txt"
# ##before using "b1.txt" data, we need to find "b1.txt" in the data file and  put it in the work space of R
# filename=system.file("data","b1.txt",package="DBGSA")
# distable(filename,10,avelinkdis,"euclidean","juli.txt")
# ## End(Not run)

Run the code above in your browser using DataLab