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

CellAnnotation in scRNA-seq experiment with R (4.0.5) using Seurat (4.0) library #1

Open
Emiliano-Juarez opened this issue Jul 12, 2021 · 5 comments

Comments

@Emiliano-Juarez
Copy link

Hello Bharat's lab, I think it is an amazing job what you did!

I've got a little problem at the moment when I want to annotate or identify the clusters, due to you grouped four different sets (immune, epithelial, stromal and global). I shall wish to know how I can do it or how you did it.
PD: I am using RStudio (4.0.5) and Seurat (4.0) library in order to analyze the dataset.

Thanks and regards EJL.

@mxposed
Copy link
Contributor

mxposed commented Jul 12, 2021

Thank you for your interest!

What problem do you have specifically? The processed datasets are published on GEO along with just metadata annotation, if you want to just reuse the data. To load data in Seurat, please see this package

If you want to rerun the analysis, you need to follow the code in this repository, and it's not in R/Seurat.

@Emiliano-Juarez
Copy link
Author

Emiliano-Juarez commented Jul 12, 2021

Ok, i.e. When I try to annotate the clusters with the [email protected]$Cell.Type it gave me the following error.

the attribute 'names' [18] must to have the same length as the vector [15]

@mxposed
Copy link
Contributor

mxposed commented Jul 12, 2021

This error generally means that the dimensions of left-hand side and right-hand side of assignment are not the same.

If you post your code, I might be able to tell why this problem comes up

@Emiliano-Juarez
Copy link
Author

Of course.
`stromal = readRDS ("seurat_objects/complete_data_stromal.rds")
stromal.ids = levels ([email protected]$Cell.Type)

names(stromal.ids) = levels (stromal)
Error in names(stromal.ids) = levels(stromal) :
the attribute 'names' [18] must to have the same length as the vector [15]`

@mxposed
Copy link
Contributor

mxposed commented Jul 22, 2021

Sorry, I cannot determine from the code what you were trying to do.

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

2 participants