-
Notifications
You must be signed in to change notification settings - Fork 927
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 .rowNamesDF<-
(x, value = value) : invalid 'row.names' length
#8916
Comments
Hi! I have the same problem as you. But it is when I run IntegrateData(),this error appeared.
My seurat version is V5. |
I've solved the question by the below codes:
As you see, I just make the rownames(Epi.list) = integ_features, after that Every thing become so smoothly like that:
So, the most important thing is to justify both of this two object's rownames are the same as each other. |
@ZhangRuifen Thanks for your code. I had the same issue as the OP, tried your code (which worked up until the last step), and ran into an issue at IntegrateData again:
Additionally, for anyone: I'm confused as to how this line of code (IntegrateData) knows to perform integration on the correct object (the list of datasets) if it is not fed into it. It looks like it's only the anchor set and normalization method that goes in. |
@beazors Hi! I'm not sure whether you have done with JoinLayers() to your Seurat object. And did you get your integrated object? It seems no errors but only warnings, you can check what you have got. |
@ZhangRuifen I did get an object, but I'm not sure how to evaluate if it's worked or what to do with the object next. Normally I have merged all my data first and run everything downstream of that (not in list form). EDIT - wait, I just found a possible lead for this - for anyone else it is [here]. After doing the steps in the above link, it worked, thanks! |
I think it might be something wrong with the newest seurat version (for me 5.1.0)?? |
I had the same error message when trying to run SelectIntegrationFeatures on my split seurat object. I downgraded r-seurat (I'm working with conda) to 5.0.3, but that didn't solve the issue. I then also downgraded r-seuratobject to 5.0.1 and that solved the issue for me. |
Thank you for sharing the solution. |
@drroya Since I am doing everything in a conda environment I ran the following in the terminal:
I didn't need to remove the previous version for that as it just downgraded them.
When prompted, I chose to not update anything else.
Edit: If you run rstudio you should restart it after downgrading. If you run R in the terminal it's probably a good idea to restart the terminal too to make sure the changes took place. |
Many thanks for your reply and the detailed codes! |
@beazors Sorry to reply late! I'm happy that you have sovle your question! But I see the link you mentioned, I don't think it's any different than our code, but it still solved the problem. It's made me a little confused. |
Hi, |
data_combined <- RunFastMNN(object.list = SplitObject(data_combined, split.by = "orig.ident"))
Computing 2000 integration features
Error in
.rowNamesDF<-
(x, value = value) : invalid 'row.names' lengthThe text was updated successfully, but these errors were encountered: