addProjection,Vision-method | R Documentation |
By default VISION will run tSNE on the latent space and use this to display the cells in the output report. However, with this method, you may add additional two-dimensional coordinates for inclusion in the output report. This is useful if you have previously run tSNE (or any other visualization method) and wish to integrate the results into VISION.
## S4 method for signature 'Vision'
addProjection(object, name, coordinates)
object |
VISION object |
name |
Name of the projection |
coordinates |
numeric matrix or data.frame. Coordinates of each sample in the projection (NUM_SAMPLES x NUM_COMPONENTS) |
VISION object
## Not run:
# First create the VISION object
vis <- Vision(data = expMat, signatures = sigs)
# Load and add an additional visualization
my_umap <- read.csv("umap_results.csv")
vis <- addProjection(vis, "UMAP", my_umap)
# Run analysis
vis <- analyze(vis)
# View results
viewResults(vis)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.