Baby-233 / Single-Cell_umap_tsne

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scanno

install

install.packages(c('Seurat', 'dplyr', 'ggplot2', 'RColorBrewer'))

# install.packages("devtools")
devtools::install_github("sajuukLyu/ggunchull", type = "source")
install.packages("ggh4x")
install.packages("shadowtext")
devtools::install_github('seqyuan/annnosc')

example

现在只有一个画降维图的函数plot_dim,后续根据需求更新集成发表级函数。

library(annosc)
library(ggplot2)
library(Seurat)
library(dplyr)
rds <- readRDS('ifnb.rds')
Idents(rds) <- rds@meta.data$seurat_annotations
plot_dim(rds, fill=TRUE)

fig 1

plot_dim(rds, fill=NA, show.cls=c("CD4 Naive T", "CD14 Mono"))

fig 2

plot_dim(rds, fill=TRUE, show.cls=c("T activated", "CD14 Mono"))

fig 3

plot_dim(rds, fill=NA)

fig 4

plot_dim(rds, fill=TRUE, show.pt=FALSE)

fig 5

plot_dim(rds, fill=NA, show.pt=FALSE)

fig 6

plot_dim(rds, reduction="pca")

fig 7

About


Languages

Language:R 100.0%