#'Returns the Y cordinates for Tsne plotting.
#'@param sco single cell object S4 file
#'@export CalcTSNE
CalcTSNE <- function( sco, ndim ) {
tsnecalc <- Rtsne(t(sco@data[sco@var.genes,]),dims = ndim)
sco@tsne <- tsnecalc$Y #puts the genes into a new slot
sco #returns the new object
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.