-
Notifications
You must be signed in to change notification settings - Fork 908
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
Subsetting a codex seurat object #6409
Comments
Hi @msalaciak Can you check if any of the cells have metadata |
Hi @k3yavi Thanks for your suggestion. I just checked and all my cells are assigned to a specific Region...see output below.
|
hi @k3yavi I just wanted to follow up on this issue. I noticed it was closed. Thanks, |
Hi @msalaciak, It's not clear what's going on. Are you using an open dataset where I can replicate the issue? If you can share the data and the script to reproduce the error, that would be great. |
Hi @k3yavi, Thanks, |
Hi there, Here is my intermediate solution for "FOV-optimized"
This issue is still present in the most recent |
@alikhuseynov: I was banging my head against a wall to figure out how to subset my merged MERFISH data. This absolutely did the trick! Thank you for sharing! |
Thanks, I happy it is useful for other users, will submit a PR on that too. |
Hi @alikhuseynov, thanks for this solution. Having struggling to use seurat's subset() to extract my cells of interest from specific regions, I managed to use subset_opt to work on one of my conditions. However, in some situations, I get the error message: "Error in validObject(object = object[[i]]) : I can't seem to figure out why this happens in a subset of cells but not others and was hoping perhaps you have an idea. Best, |
I'm glad that, in part, it did help you. |
Hi @alikhuseynov, thanks for the advice. I have tried v2 as well but it gives me the same error. It looks like the error is in updating the seurat objects.
For context, I had already cropped my sections into 2 halves, which is my first subset based on coordinates. Now I would like to subset again based on cell identity to do different expression analysis. The first subset with coordinates works fine but subsequently when I try to subset based on cell identity I get this error. Best, |
ok, if it is about updating the object, then use |
Thanks @alikhuseynov , that was an easy fix! |
great! I should update that function removing the |
AWESOME!! |
Hi!
I'm using the feat/imaging branch to work with Codex data. Our data comes from codex performed on a tissue microarray of 24 cores.
I successfully created a Seurat object for each core and then merged them together to perform joint clustering. When working with multi-sample scRNA-seq data, I often like to subset the object by sample ID for further analysis, however, when I do this with codex data I get this error.
Any advice on how to work around this?
Best,
M
The text was updated successfully, but these errors were encountered: