Skip to main content

Data in Axes in Files

Project description

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.

Installation

Just pip install dafpy, like installing any other Python package.

Usage

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 and DafWriter classes (e.g., write reader.get_scalar("version") in Python instead of get_scalar(reader, "version") in Julia).

  • There is no ! suffix for functions that modify the data (e.g., write writer.set_scalar("version", "1.0") in Python instead of set_scalar!(writer, "version", "1.0") in Julia.

  • DataAxesFormats.jl supports importing and exporting AnnData objects. However, since it is a Julia package, these objects are not Python anndata objects; instead they use the implementation provides by the Muon.jl Julia package. That is, to import/export AnnData between Daf and Python, your best bet is to go through h5ad files.

See the [Python v0.1.0 documentation](https://tanaylab.github.io/Daf.py/v0.1.0) and [Julia v0.1.0 documentation](https://tanaylab.github.io/DataAxesFormats.jl/v0.1.0) for details.

Status

Version 0.1.0 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!

License (MIT)

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dafpy-0.1.0.tar.gz (32.6 kB view details)

Uploaded Source

File details

Details for the file dafpy-0.1.0.tar.gz.

File metadata

  • Download URL: dafpy-0.1.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for dafpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40bd7cf77925f106b03204f4a082f8189b8d566d2a0062dcc31b9115f603e6f7
MD5 34b3dab20810a77d1047b76613406bf4
BLAKE2b-256 6ed1173ad7aa2f85b7df7a508f21ef3c07226886e4e591017ca7864c0df9ff0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page