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

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

importCdt() 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

1
2
3
importCdt(cdtFile)
importGtr(gtrFile)
importAtr(atrFile)

Arguments

cdtFile

A cdt file

gtrFile

A gtr file

atrFile

An atr file

Details

importCdt() 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. importGtr() and importAtr() read tree files representing the hierarchical gene tree or sample tree structure, respectively. Both functions return an hclust object.

Value

importCdt() returns a dataframe (see details) importGtr() and importAtr() each return an hclust objects

Author(s)

Johannes Freudenberg, Xiangdong Liu, Mario Medvedovic

References

coming soon

See Also

hclustexportCdt

Examples

1
2
3
4
5
6
7
8
9
data(GalData)
gimmOut <- runGimmNPosthoc(GalData, dataFile="galData", M=20, T=820, estimate_contexts="y", intFiles=TRUE, verbose=TRUE)
exportCdt(gimmOut$hGClustData, gimmOut$hSClustData, gimmOut$clustData)
exportGtr(gimmOut$hGClustData)
exportAtr(gimmOut$hSClustData)
exprData <- importCdt("cluster.cdt")
gclust <- importGtr("cluster.gtr")
plot(as.dendrogram(gclust))
sclust <- importAtr("cluster.atr")

uc-bd2k/gimmR documentation built on May 3, 2019, 2:15 p.m.