Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add the meta.data of cell for Seurat #17

Merged
merged 4 commits into from
Dec 12, 2023
Merged

Conversation

xiangpin
Copy link
Member

considering the meta.data of cell for Seurat object in get_dim_data

related #16

> library(ggsc)
> pbmc.seut <- readRDS('./pbmc_seurat.rds')
> p <- pbmc.seut |> sc_dim()
> p$data |> head()
                     UMAP_1    UMAP_2        ident orig.ident nCount_RNA
AAACATACAACCAC-1   3.325538 -4.101189  Naive CD4 T     pbmc3k       2419
AAACATTGAGCTAC-1   4.449747 11.148801            B     pbmc3k       4903
AAACATTGATCAGC-1   6.016574 -6.904137 Memory CD4 T     pbmc3k       3147
AAACCGTGCTTCCG-1 -10.999634  4.242199 FCGR3A+ Mono     pbmc3k       2639
AAACCGTGTATGCG-1   5.014720  1.765654           NK     pbmc3k        980
AAACGCACTGGTAC-1   2.496269 -6.072399 Memory CD4 T     pbmc3k       2163
                 nFeature_RNA RNA_snn_res.0.5 seurat_clusters
AAACATACAACCAC-1          779               0               0
AAACATTGAGCTAC-1         1352               3               3
AAACATTGATCAGC-1         1129               2               2
AAACCGTGCTTCCG-1          960               5               5
AAACCGTGTATGCG-1          521               6               6
AAACGCACTGGTAC-1          781               2               2
> p2 <- pbmc.seut |> sc_dim(mapping=aes(color=seurat_clusters))
> p + p2

image

@GuangchuangYu GuangchuangYu merged commit 9e822be into YuLab-SMU:devel Dec 12, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants