|
24 | 24 | from ._core.anndata import AnnData |
25 | 25 | from ._core.merge import concat |
26 | 26 | from ._core.raw import Raw |
| 27 | +from ._core.sparse_dataset import CSCDataset, CSRDataset |
27 | 28 | from ._io import ( |
28 | 29 | read_csv, |
29 | 30 | read_excel, |
|
35 | 36 | read_umi_tools, |
36 | 37 | read_zarr, |
37 | 38 | ) |
| 39 | +from ._io.specs import read_elem, write_elem |
38 | 40 | from ._settings import settings |
| 41 | +from ._types import InMemoryElem |
| 42 | +from ._types import RWAble as _RWAble |
39 | 43 | from ._warnings import ( |
40 | 44 | ExperimentalFeatureWarning, |
41 | 45 | ImplicitModificationWarning, |
42 | 46 | OldFormatWarning, |
43 | 47 | WriteWarning, |
44 | 48 | ) |
45 | 49 |
|
| 50 | +# Sphinx can’t find data docstrings when objects are re-exported |
| 51 | +RWAble = _RWAble |
| 52 | +"""A serializable object, excluding :class:`anndata.AnnData` objects i.e., something that can be stored in `uns` or `obsm`.""" |
| 53 | + |
| 54 | + |
46 | 55 | # Experimental needs to be imported last |
47 | | -from . import experimental # isort: skip |
| 56 | +from . import experimental # noqa: E402 isort: skip |
48 | 57 |
|
49 | 58 | # We use these in tests by attribute access |
50 | | -from . import _io, logging # noqa: F401 isort: skip |
| 59 | +from . import _io, logging # noqa: F401, E402 isort: skip |
51 | 60 |
|
52 | 61 |
|
53 | 62 | def read(*args, **kwargs): |
@@ -75,6 +84,12 @@ def read(*args, **kwargs): |
75 | 84 | "read_text", |
76 | 85 | "read_mtx", |
77 | 86 | "read_zarr", |
| 87 | + "read_elem", |
| 88 | + "write_elem", |
| 89 | + "InMemoryElem", |
| 90 | + "RWAble", |
| 91 | + "CSRDataset", |
| 92 | + "CSCDataset", |
78 | 93 | "OldFormatWarning", |
79 | 94 | "WriteWarning", |
80 | 95 | "ImplicitModificationWarning", |
|
0 commit comments