Indexing anndata for plots

Is it possible to pass a subset of the anndata object to the plotting interface?

I am looking for something like this (to plot a subset of the observations):[adata.obs['patient_age'].values >= 40],color='CST3')

Yes, that seems like it should work. Have you run into any issues with that?

Thanks, @ivirshup, yes, turns out I just needed to get rid of the iloc:['patient_age'].values >= 40],color='CST3')
1 Like