Skip to main content
100%

Create .Rds object with components needed for clustering module of heartmat shiny server (for .Rds)

✓ Published0🌍 Public
FFloWuenne
Last edited Apr 17, 2018
Created on Apr 17, 2018

This R script builds a clustering module object for the Shiny server by processing a Seurat object, creating a data frame that combines tSNE coordinates with cluster identities. It demonstrates data preparation for interactive visualization by extracting normalized expression data, metadata, and a marker list filtered to the top 20 markers per cluster by average log fold change. The code uses the dplyr and tidyr libraries for data manipulation, and relies on Seurat’s slots for tSNE embeddings, expression matrices, and metadata, ultimately saving the assembled S4 object as an .Rds file for downstream Shiny app use.

AI-generated description

Similar vizzes