From a77fa97b29bc4dcc26d7b820b1276506d6878673 Mon Sep 17 00:00:00 2001 From: falexwolf Date: Mon, 13 Aug 2018 23:36:24 +0200 Subject: [PATCH] updated docstring of raw --- anndata/base.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/anndata/base.py b/anndata/base.py index 5d1499e8d..32d2b1af0 100644 --- a/anndata/base.py +++ b/anndata/base.py @@ -980,6 +980,15 @@ def raw(self): Its content can be deleted by setting it back to ``None``:: adata.raw = None + + Upon slicing an AnnData object along the observations (row) axis, + ``.raw`` is also sliced. Slicing an AnnData object along the variables + (columns) axis, leaves ``.raw`` 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 self._raw