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

scRNA.sub =subset(scRNAnew, downsample=30) ,argument "downsample" didn't work,what ‘s wrong? #9637

Open
seekning opened this issue Jan 22, 2025 · 0 comments

Comments

@seekning
Copy link

scRNA.sub =subset(scRNAnew, downsample=30) ,argument "downsample" didn't work,what ‘s wrong?

Idents(scRNAnew) = "celltype"
scRNA.sub =subset(scRNAnew, downsample=30) # downsample函数实现分层抽样 每个细胞类型抽200个
scRNA.sub
An object of class Seurat
29984 features across 300 samples within 2 assays
Active assay: RNA (27984 features, 0 variable features)
1 other assay present: integrated
3 dimensional reductions calculated: pca, umap, tsne
table(scRNA.sub$celltype)

Fibroblasts NK_cells T_cells Epithelial_cells Macrophages
89 88 23 31 25
Monocytes Plasma_cells SMC Endothelial_cells B_cells
13 10 8 11 2

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

No branches or pull requests

1 participant