-
Notifications
You must be signed in to change notification settings - Fork 149
/
__init__.py
115 lines (82 loc) · 1.74 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
from ._core.anndata import AnnData, ImplicitModificationWarning
from ._core.merge import concat
from ._core.raw import Raw
from ._io import (
read_h5ad,
read_loom,
read_hdf,
read_excel,
read_umi_tools,
read_csv,
read_text,
read_mtx,
read_zarr,
)
# backwards compat / shortcut for default format
from ._io import read_h5ad as read
__doc__ = """\
API
===
The central class:
.. autosummary::
:toctree: .
AnnData
Combining
---------
Combining AnnData objects. See also the section on concatenation.
.. autosummary::
:toctree: .
concat
Reading
-------
Reading anndata’s native file format `.h5ad`.
.. autosummary::
:toctree: .
read_h5ad
Reading other file formats.
.. autosummary::
:toctree: .
read_csv
read_excel
read_hdf
read_loom
read_mtx
read_text
read_umi_tools
read_zarr
Writing
-------
Writing to anndata’s native file format `.h5ad`.
.. autosummary::
:toctree: .
AnnData.write
Writing to other formats.
.. autosummary::
:toctree: .
AnnData.write_csvs
AnnData.write_loom
AnnData.write_zarr
Errors and warnings
-------------------
.. autosummary::
:toctree: .
ImplicitModificationWarning
"""
__author__ = ", ".join(
["Philipp Angerer*", "Alex Wolf*", "Isaac Virshup", "Sergei Rybakov"]
)
__email__ = ", ".join(
[
"philipp.angerer@helmholtz-muenchen.de",
"f.alex.wolf@gmx.de",
# We don’t need all, the main authors are sufficient.
]
)
try:
from setuptools_scm import get_version
__version__ = get_version(root="..", relative_to=__file__)
del get_version
except (LookupError, ImportError):
from .compat import pkg_version
__version__ = str(pkg_version(__name__))
del pkg_version