Is it possible to subset a loom object based on a categorical value from adata.obs
?
adata_sub = adata[adata.obs['Channel'] == 'rep1']
AttributeError: 'AnnData' object has no attribute '_X'
Is it possible to subset a loom object based on a categorical value from adata.obs
?
adata_sub = adata[adata.obs['Channel'] == 'rep1']
AttributeError: 'AnnData' object has no attribute '_X'
Hi @carmensandoval,
That’s not a loom object, but an AnnData object.
What you’re trying should work, but it’s unclear what’s going on without more context like version info and a full traceback.