cdt2r: Functions to import files in TreeView format into R.

cdt2rR Documentation

Functions to import files in TreeView format into R.

Description

cdt2r() imports a cdt file and converts it to a dataframe where rows represent genes and columns represent samples. The first column of the dataframe contains the gene identifiers and the second column contains gene names or descriptions. Column names represent sample names.

Usage

cdt2r(cdtFile)
gtr2r(gtrFile)
atr2r(atrFile)

Arguments

cdtFile

A cdt file

gtrFile

A gtr file

atrFile

An atr file

Details

cdt2r() reads a tab-delimited file in generalized cdt format where the first row contains sample names, followed by additional optional rows. The first two or three columns contain gene IDs and descriptions, and optional additional columns, followed by gene expression data. The function returns a dataframe with gene IDs and descriptions in the first two columns, gene expression data in the remaining columns, and column names representing samples. gtr2r() and atr2r() read tree files representing the hierarchical gene tree or sample tree structure, respectively. Both functions return an hclust object.

Value

cdt2r() returns a dataframe (see details) gtr2r() and atr2r() each return an hclust objects

Author(s)

Johannes Freudenberg, Xiangdong Liu, Mario Medvedovic

References

coming soon

See Also

funcClustAnnot, hclust, r2cdt

Examples

data(gimmOut)
generateTreeViewFiles(gimmOut$clustData, file="cluster") 
exprData <- cdt2r("cluster.cdt")
gclust <- gtr2r("cluster.gtr")
plot(as.dendrogram(gclust))
sclust <- atr2r("cluster.atr")

uc-bd2k/CLEAN documentation built on Sept. 22, 2022, 4:12 a.m.