anndata.AnnData.raw
- property AnnData.raw: anndata._core.raw.Raw
Store raw version of
X
andvar
as.raw.X
and.raw.var
.The
raw
attribute is initialized with the current content of an object by setting:adata.raw = adata
Its content can be deleted:
adata.raw = None # or del adata.raw
Upon slicing an AnnData object along the obs (row) axis,
raw
is also sliced. Slicing an AnnData object along the vars (columns) axis leavesraw
unaffected. Note that you can call:adata.raw[:, 'orig_variable_name'].X
to retrieve the data associated with a variable that might have been filtered out or “compressed away” in
X
.- Return type