R/visualization.R
ObtainGeneTSNE.RdWraps Rtsne::Rtsne() for a distance-based t-SNE. The random seed is
fixed to 233 for reproducibility.
ObtainGeneTSNE(dist, perplexity = 30)A dist object (or symmetric matrix coercible to one) of
pairwise gene distances.
Numeric. t-SNE perplexity parameter. Default 30.
A data frame with columns tSNE_1 and tSNE_2 and row names
matching labels(dist).
if (FALSE) {
embedding <- ObtainGeneTSNE(as.dist(gene.dist.mat))
}