-
Notifications
You must be signed in to change notification settings - Fork 19
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
Seurat object for StemID score evaluation #3
Comments
Hi,
please run the following code on your data in order to apply StemID on
Seurat output:
# input data: ndata (matrix with genes as rows and cells as columns)
# 1.Run RaceID (control cell filtering with mintotal, i.e. total UMI count
per cell) -> sc object
# 2.Run Seurat with filtering such that the same cells are retained
# 3.Re-initialize RaceID output with Seurat data:
part <- as.numeric(se@meta.data$seurat_clusters)
d <- as.matrix( dist(se@reductions$pca@cell.embeddings) )
tsne <- as.data.frame(se@reductions$tsne@cell.embeddings)
names(part) <- colnames(d)
n <- colnames(sc@ndata)
part <- part[n]
# partition
sc@cpart <- sc@cluster$kpart <- part
# distances
sc@distances <- d[n,n]
# tsne
sc@tsne <- tsne[n,]
# expression data (optional)
sc@counts <- sc@counts * 0 + 1
sc@ndata <- ndata[,n]
# cluster medoids
sc@medoids <- compmedoids(sc, sc@cpart)
# colors for clusters
set.seed(12345)
sc@fcol <- sample(rainbow(max(sc@cpart)))
# 4. Now, you can run StemID on the sc object, ideally with default
parameters…
Good luck!
Dominic
…On Fri, Oct 11, 2019 at 7:44 PM Fahd Qadir ***@***.***> wrote:
Hello!
Thank you for the wonderful software. I have a question, is it possible to
run STEMID calculations for a Seurat object? I would like to calculate
STEMID scores of clusters of cells that have been already calculated and
projected using UMAP.
Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=ACVD55DGIFDY5D7M4R7JGYLQOC3O3A5CNFSM4I74RNVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRITKVA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACVD55E34ANELDE2GYUMAS3QOC3O3ANCNFSM4I74RNVA>
.
|
Cheers thanks alot Dominic! |
Dear all, I am trying to run StemID on my Seurat object on which I have done both the QC needed and the clustering analysis. I am following both the answer here and the tutorial here: https://cran.r-project.org/web/packages/RaceID/vignettes/RaceID.html. Unfortunately I meet the following error:
when I perform the comppvalue step. Here is all the code I am running:
Can anyone help me on this? |
Dear all, ltr <- comppvalue(ltr,pthr=0.05) My seurat object contain about 5200 cells. |
Please send sample data with code to reproduce the error and I can try to help. |
Hello!
Thank you for the wonderful software. I have a question, is it possible to run STEMID calculations for a Seurat object? I would like to calculate STEMID scores of clusters of cells that have been already calculated and projected using UMAP.
Thank you!
The text was updated successfully, but these errors were encountered: