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 = firstname.lastname@example.org[['predicted_cell_type']] == '0:CD8 T cell')
but it gives the following error:
Error in FetchData.Seurat(object = object, vars = unique(x = expr.char[vars.use]), : None of the requested variables were found:
Do you know what is the correct command to do this?
With many thanks
This command gives:
Do you have cells labeled "0:CD8 T Cell" in
but cells labeled as '0:CD8 T cell' do exit.
Hmm, not sure why
subsetdoesn't match to '0:CD8 T cell' but maybe it's the ":"?
An alternative option is the following: