anndata.AnnData.raw#
- property AnnData.raw: Raw[source]#
- Store raw version of - Xand- varas- .raw.Xand- .raw.var.- The - rawattribute is initialized with the current content of an object by setting:- adata.raw = adata.copy() - Its content can be deleted: - adata.raw = None # or del adata.raw - Upon slicing an AnnData object along the obs (row) axis, - rawis also sliced. Slicing an AnnData object along the vars (columns) axis leaves- rawunaffected. 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.