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 [.Seurat(data, data$cell_type == i, ) : Incorrect number of logical values provided to subset features #24

Open
EAC-T opened this issue Nov 18, 2020 · 2 comments

Comments

@EAC-T
Copy link

EAC-T commented Nov 18, 2020

Hi, I have a SEURAT object that I clustered into 7 clusters,
for the
highly_exprs_genes<-rawParse(Tcells_6,top_genes=50,stats='mean')

I'm getting an error:
Error in [.Seurat(data, data$cell_type == i, ) :
Incorrect number of logical values provided to subset features

The cell_type column contains numbers from 0 to 6 representing each cluster.

Thank you

@chase-pagani
Copy link

Having the same issue.

@chase-pagani
Copy link

chase-pagani commented Nov 20, 2020

try this:

data<-data.frame(SEURATOBJECT@assays$RNA@data)
data<-t(data)
data<-as.data.frame(data)
cell_types<[email protected] #or wherever you have your cell names
data$cell_type=cell_types

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