Hello, I want to subset anndata on basis of each cluster and their gene id/marker but having trouble executing it. Not sure how I can subset .obs, since the cluster information is stored in observation, which subsequently subsets corresponding ...
I tried using adata_dub_gene_6 = adata[adata.obs["leiden"] == "6"].var
which was no different from doing just adata.var
which outputs all the genes (metadata) of the anndata.
Thank you!