Interactive visualization of single cell RNAseq datasets.
Published data using this web app:
git clone https://github.com/yueqiw/shiny_cell_browser.git
..rds
file using saveRDS()
. Place the .rds
file in the data/
folder.@data
slot with the normalized and log-transformed gene expression matrix (ideally in a sparse dgCMatrix
format to save space). The @raw.data
and @scale.data
slots are not used -- setting them to NULL
may speed up the loading time.@meta.data
table should use cell names as row names and contain a column that indicates the cluster id for each cell. Optionally, the display color of each cluster can be stored as a named vector in @misc
. For examples, if the clusters are stored as seurat_data@meta.data$my_clusters
, their colors can be stored as seurat_data@misc$my_clusters_colors
..csv
file in the data/
folder. The table must contain two columns named gene
and cluster
. Other columns may have any name.data/config.json
file and following the example in data/example_config.json
.
name
: the dataset name.file
: the .rds
file path.cluster
: the name of the column containing the displayed cluster ids.embedding
: the type of 2D embedding (e.g. tsne or umap).diff_ex_cluster
: the name of the @meta.data
cluster id column that corresponds to the cluster ids in the differential expression csv
file. In most cases, this is the same as cluster
.diff_ex_file
: the marker gene differential expression csv
file.cluster_name_mapping
(optional): a mapping from the Seurat cluster ids to more readable cluster names.pt_size
(optional): if set, overrides the automatically computed point size in embedding plots.font_scale
(optional): if set, scales the font size of cluster labels by this factor.label_coordinates
(optional): if set, the cluster labels will be placed at these coordinates rather than at the center of each cluster.cd shiny_cell_browser
in command line, or setwd
in Rstudio)./run_app.sh
in the comand line, or shiny::runApp()
in Rstudio. http://127.0.0.1:4894/
. The port number can be changed (e.g. shiny::runApp(port=1234)
). host='0.0.0.0', port=1234
in the runApp
call, then visit http://your-ip-address:1234
.rsconnect::deployApp()
.If you encounter the following error: Error parsing manifest: Unable to determine package source for Bioconductor package Biobase: Repository must be specified
, run this before deployApp: options(repos = BiocManager::repositories()
see updates.md