How to make and save the subset of a specific cluster of the data?

I’d like to extract and save the subset of a specific cluster data from the original data, but didn’t find relevant functions, could you please help me ? Thanks

Hey @yingyuan830, I think you’d just want to grab a subset of your AnnData or MuData object by indexing into it. E.g.:

adata_subset = adata[adata.obs["cell_type"] == "cell_type_of_interest"].copy()

I see, this is what I want to ask, thank you!