DataAxesFormats.jl is a Julia package which provides a uniform
generic interface for accessing 1D and 2D data arranged along some set of axes. This is a much-needed generalization of
the AnnData functionality. This package (dafpy
) is a wrapper around the
Julia package that allows accessing Daf
data from Python, using the
JuliaCall package.
Just pip install dafpy
, like installing any other Python package.
The Python package provides the same API as the Julia package, with the following modifications:
- (Most) functions are exposed as member functions of the
DafReader
andDafWriter
classes (e.g., writereader.get_scalar("version")
in Python instead ofget_scalar(reader, "version")
in Julia). - There is no
!
suffix for functions that modify the data (e.g., writewriter.set_scalar("version", "1.0")
in Python instead ofset_scalar!(writer, "version", "1.0")
in Julia. DataAxesFormats.jl
supports importing and exportingAnnData
objects. However, since it is a Julia package, these objects are not Pythonanndata
objects; instead they use the implementation provides by the Muon.jl Julia package. That is, to import/exportAnnData
betweenDaf
and Python, your best bet is to go throughh5ad
files.
See the [Python v0.1.1 documentation](https://tanaylab.github.io/Daf.py/v0.1.1) and [Julia v0.1.1 documentation](https://tanaylab.github.io/DataAxesFormats.jl/v0.1.1) for details.
Version 0.1.1 is an alpha release. We hope it is feature complete and have started using it for internal projects. However, everything is subject to change based on user feedback (so don't be shy). Comments, bug reports and PRs are welcome!
Copyright © 2024 Weizmann Institute of Science
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.