Create .Rdata file from Seurat object for clustering module of shiny server (for .Rdata)
✓ Published0🌍 Public
FFloWuenne
Last edited Apr 17, 2018
Created on Apr 16, 2018
This example demonstrates how to convert a Seurat object into an .Rdata file for use in a clustering module of a Shiny server. The script extracts normalized expression data as a dense matrix, along with t-SNE embeddings and cell cluster identities, and merges them into a single data frame. It also includes the full metadata associated with each cell. The code uses the Seurat and dplyr APIs, specifically accessing the `@data`, `@dr$tsne@cell.embeddings`, and `@ident` slots, and saves the resulting objects with the base R `save` function.
AI-generated description