Skip to main content
100%

Extract shiny clustering data for full dataset

✓ Published0🌍 Public
FFloWuenne
Last edited May 2, 2018
Created on Apr 27, 2018

This example prepares a clustered single-cell dataset for interactive visualization by extracting tSNE coordinates, cluster identities, normalized expression, and marker genes from a Seurat object. It shows how the full dataset’s clustering structure is assembled into a custom S4 object for downstream use. The code uses R with `dplyr` and `tidyr` to filter the top 50 markers per cluster by `avg_logFC`, and merges tSNE embeddings with cell identities. It saves the processed data as an RDS file for a Shiny app, relying on Seurat’s data structures and base R matrix operations.

AI-generated description

Similar vizzes