Replies: 4 comments 7 replies
-
This should work. Let me know if any issues. |
Beta Was this translation helpful? Give feedback.
-
I usually use the script below:
|
Beta Was this translation helpful? Give feedback.
-
would it be possible to do something similar but include 2 or groups from the same metadata column in the subset? For instance I have metadata "orig.ident" which is the tissue type and has 6 possible options (liver, bone_marrow, spleen...). How can I make a subset including only the cells with liver and bone_marrow in the orig.ident? I tried orig.ident == c("liver","bone_marrow") but got an error. thanks!
|
Beta Was this translation helpful? Give feedback.
-
I am having similar problems as described above, and the above suggestions don't work for me. Here is a very simple subsetting example, and even that doesn't work for me:
In my understanding, [1:3, 1:10] should be as simple as possible to create a subset, and it works with |
Beta Was this translation helpful? Give feedback.
-
I have a Seurat object in which the meta.data include a column name "predicted_cell_type". The values of this column include "0:CD8 T cell", "1:CD4 T cell", "2:spinous cell", etc.
I would like to extract the "0:CD8 T cell" from the object and use the following command:
subset(skin, subset = skin@meta.data[['predicted_cell_type']] == '0:CD8 T cell')
but it gives the following error:
And if I use
subset(skin, subset = predicted_cell_type == '0:CD8 T cell')
It gives
Error: No cells found
Do you know what is the correct command to do this?
With many thanks
Beta Was this translation helpful? Give feedback.
All reactions