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

Error in genedata1$Var1 : $ operator is invalid for atomic vectors #32

Closed
wolf5996 opened this issue Mar 26, 2021 · 3 comments
Closed

Comments

@wolf5996
Copy link

wolf5996 commented Mar 26, 2021

This issue was raised before #6, but the author closed it. They said that writing the arguments of the function correctly (capitalization) fixes the error. However, I keep getting this error with the following code:
clu_markers <- scCATCH::findmarkergenes(object = HCC1806I, species = "Human", cluster = "All", match_CellMatch = F)

I am pretty sure all of the arguments have been inputed correctly. Does scCATCH work with ENSEMBL gene ids or do I have gene symbols?

@wolf5996
Copy link
Author

I looked into the underlying code for the findmarkergenes() function, and I have identified the cause of the error. In my Seurat object, my gene names were ensembl ids, which do not work with scCATCH. The gene names need to be gene symbols instead for the findmarkergenes() function to work.

@preetida
Copy link

I have the same issue, my seurat object have ensemble ids instead of gene names. Is there any work around it? for using scCATCH for such object.

@wolf5996
Copy link
Author

@preetida I haven't used scCATCH further because, unfortunately, it doesn't apply to my cell line dataset. However, after searching around, the best option for you is to convert your ensembl ids to gene symbols before creating the Seurat object. Once you create the Seurat object, you will find it very difficult to change the ensembl gene ids to gene names within the object itself (satijalab/seurat#2865).

Therefore, you are better off using gene symbols from the get-go; You will lose some genes/features during id conversion but these are usually pseudogenes or long non-coding RNAs that will likey have no influence on your downstream analysis.

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