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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
|
# API
```{eval-rst}
.. module:: anndata
```
The central class:
```{eval-rst}
.. autosummary::
:toctree: generated/
AnnData
```
(combining-api)=
## Combining
Combining {class}`AnnData` objects.
See also the section on concatenation.
```{eval-rst}
.. autosummary::
:toctree: generated/
concat
```
(reading-api)=
## Reading
Reading anndata’s native formats `.h5ad` and `zarr`.
```{eval-rst}
.. autosummary::
:toctree: generated/
io.read_h5ad
io.read_zarr
```
Reading individual portions ({attr}`~AnnData.obs`, {attr}`~AnnData.varm` etc.) of the {class}`AnnData` object.
```{eval-rst}
.. autosummary::
:toctree: generated/
io.read_elem
io.sparse_dataset
```
Reading file formats that cannot represent all aspects of {class}`AnnData` objects.
```{tip}
You might have more success by assembling the {class}`AnnData` object yourself from the individual parts.
```
```{eval-rst}
.. autosummary::
:toctree: generated/
io.read_csv
io.read_excel
io.read_hdf
io.read_loom
io.read_mtx
io.read_text
io.read_umi_tools
```
(writing-api)=
## Writing
Writing a complete {class}`AnnData` object to disk in anndata’s native formats `.h5ad` and `zarr`.
(These functions are also exported as {func}`io.write_h5ad` and {func}`io.write_zarr`.)
```{eval-rst}
.. autosummary::
:toctree: generated/
AnnData.write_h5ad
AnnData.write_zarr
..
.. autosummary::
:toctree: generated/
io.write_h5ad
io.write_zarr
.. toctree::
:hidden:
generated/anndata.io.write_h5ad
generated/anndata.io.write_zarr
```
Writing individual portions ({attr}`~AnnData.obs`, {attr}`~AnnData.varm` etc.) of the {class}`AnnData` object.
```{eval-rst}
.. autosummary::
:toctree: generated/
io.write_elem
```
Writing formats that cannot represent all aspects of {class}`AnnData` objects.
```{eval-rst}
.. autosummary::
:toctree: generated/
AnnData.write_csvs
AnnData.write_loom
```
(experimental-api)=
## Experimental API
```{warning}
APIs in the experimental module are currently in development and subject to change at any time.
```
Two classes for working with batched access to collections of many {class}`AnnData` objects or `.h5ad` files.
In particular, for pytorch-based models.
```{eval-rst}
.. autosummary::
:toctree: generated/
experimental.AnnCollection
experimental.AnnLoader
```
Out of core concatenation
```{eval-rst}
.. autosummary::
:toctree: generated/
experimental.concat_on_disk
```
Low level methods for reading and writing elements of an {class}`AnnData` object to a store:
```{eval-rst}
.. autosummary::
:toctree: generated/
experimental.read_elem_lazy
experimental.read_lazy
```
Utilities for customizing the IO process:
```{eval-rst}
.. autosummary::
:toctree: generated/
experimental.read_dispatched
experimental.write_dispatched
```
Types used by the former:
```{eval-rst}
.. autosummary::
:toctree: generated/
experimental.IOSpec
experimental.Read
experimental.Write
experimental.ReadCallback
experimental.WriteCallback
experimental.StorageType
experimental.backed._lazy_arrays.MaskedArray
experimental.backed._lazy_arrays.CategoricalArray
experimental.backed._xarray.Dataset2D
```
(extensions-api)=
## Extensions
```{eval-rst}
.. autosummary::
:toctree: generated/
register_anndata_namespace
```
Types used by the former:
```{eval-rst}
.. autosummary::
:toctree: generated/
types.ExtensionNamespace
```
(errors-api)=
## Errors and warnings
```{eval-rst}
.. autosummary::
:toctree: generated/
ImplicitModificationWarning
```
(settings-api)=
## Settings
```{eval-rst}
.. autosummary::
:toctree: generated/
settings
settings.override
```
(types-api)=
## Custom Types/Classes for Readable/Writeable Elements
```{eval-rst}
.. autosummary::
:toctree: generated/
abc.CSRDataset
abc.CSCDataset
typing.Index
typing.AxisStorable
typing.RWAble
```
|