Skip to main content

A Narwhals powered DataFrame-style selection, filtering and indexing operations on AnnData Objects.

Project description

annsel

Status Build Tests Documentation codecov pre-commit
Meta Hatch project Ruff uv License
Package PyPI PyPI

pre-commit.ci status

annsel brings familiar DataFrame-style operations to AnnData objects, making filtering and selection intuitive and straightforward. Built on the narwhals library, it provides a seamless interface for manipulating complex biological datasets stored in AnnData format.

[!WARNING] This package is still early in development, and there is no guarantee of API stability or backwards compatibility.

Getting started

Please refer to the documentation, in particular, the API documentation.

Installation

You need to have Python 3.10 or newer installed on your system. If you don't have Python installed, we recommend installing uv. There are several alternative options to install annsel:

  1. Install the most recent release:

    With pip:

    pip install annsel
    

    With uv:

    uv add annsel
    
  2. Install the latest development version:

    With pip:

    pip install git+https://github.com/srivarra/annsel.git@main
    

    With uv:

    uv add git+https://github.com/srivarra/annsel
    

Example

import annsel as an

adata= an.datasets.leukemic_bone_marrow_dataset()

adata.an.filter(an.var(["feature_type"]).is_in(["protein_coding", "lncRNA"]), copy=True)

Release notes

See the changelog.

Contact

For questions and help requests, you can reach out in the scverse discourse or the discussions tab. If you found a bug, please use the issue tracker.

Citation

t.b.a

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

annsel-0.0.2.tar.gz (173.0 kB view details)

Uploaded Source

Built Distribution

annsel-0.0.2-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file annsel-0.0.2.tar.gz.

File metadata

  • Download URL: annsel-0.0.2.tar.gz
  • Upload date:
  • Size: 173.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for annsel-0.0.2.tar.gz
Algorithm Hash digest
SHA256 70381634eaf3fa53ba336abba32c32343d118f64ad2ca298ae5792a8fe1e110e
MD5 466ae61befa4dce52b358492c6cf4b70
BLAKE2b-256 033906d87c7cd863c9dca66bb039dc3a27c45e1c71bd672a31353bbc102da899

See more details on using hashes here.

File details

Details for the file annsel-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: annsel-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for annsel-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e30db95925ad14bac483b24bca6b3f61aea5fbeee492b693b6fec055f11b90cb
MD5 7397a09a1a9c80eaed3408852130cb10
BLAKE2b-256 ebb52a32499b9ef348862e396d9e009f647d1ae0b863701c7556f5af1ea6201e

See more details on using hashes here.

Supported by

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