chmAddTSNE | R Documentation |
Add TSNE coordinates as hidden covariate bars to an axis of an NG-CHM. One hidden covariate bar is added for each TSNE coordinate. Coordinates have names 'BASENAME.coordinate.N', where BASENAME is specified by the parameter basename (default TSNE) and N ranges from 1 to the number of added covariate bars.
chmAddTSNE(hm, axis, tsne, pointIds, basename = "TSNE")
hm |
The NGCHM to add the coordinates to |
axis |
The NGCHM axis ("row" or "column") to add the coordinates to |
tsne |
TSNE coordinates (output of |
pointIds |
The NGCHM names for the data points in tsne |
baseName |
The prefix to use for the coordinate names. |
pointIds is required because Rtsne::Rtsne()
does not preserve the rownames of the data matrix it was applied to.
Their values must match those on that axis of the NGCHM, but their order must match those in the data
matrix passed to Rtsne::Rtsne()
.
The NGCHM with added coordinates.
chmAddPCA()
chmAddUMAP()
chmAddUWOT()
chmAddReducedDim()
rtc <- Rtsne::Rtsne(t(TCGA.GBM.EXPR)); hm <- chmNew ("gbm", TCGA.GBM.EXPR); hm <- chmAddTSNE(hm, "column", rtc, colnames(TCGA.GBM.EXPR));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.