Skip to main content

Library for inspection, summarization, and statistics of AnnData h5ad files

Project description

hca-anndata-tools

Library for inspection, summarization, and statistics of AnnData h5ad files.

Installation

pip install hca-anndata-tools

Usage

from hca_anndata_tools import get_summary, get_descriptive_stats, locate_files

# Find h5ad files
files = locate_files("/path/to/data")

# Get structural overview
summary = get_summary("/path/to/my_atlas.h5ad")

# Get column statistics
stats = get_descriptive_stats("/path/to/my_atlas.h5ad", columns=["cell_type"], value_counts=True)

API

  • locate_files - Find all .h5ad files in a directory
  • get_summary - Structural overview: cell/gene counts, columns, embeddings, layers
  • get_storage_info - HDF5 compression, chunking, sparse format details
  • get_descriptive_stats - Descriptive statistics and value counts for obs/var columns
  • view_data - View slices of any attribute (obs, var, X, obsm, uns, etc.)
  • plot_embedding - UMAP/PCA scatter plots as base64 PNG
  • get_cap_annotations - Inspect CAP cell annotation metadata

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

hca_anndata_tools-0.5.0.tar.gz (933.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hca_anndata_tools-0.5.0-py3-none-any.whl (942.6 kB view details)

Uploaded Python 3

File details

Details for the file hca_anndata_tools-0.5.0.tar.gz.

File metadata

  • Download URL: hca_anndata_tools-0.5.0.tar.gz
  • Upload date:
  • Size: 933.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hca_anndata_tools-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2166a01e5efd2af4071777bba81c206730f364796b5a1a620c4aeeba0255a470
MD5 1dc49efddc9ec6753f5c518610e2a9b7
BLAKE2b-256 c0722f33c10362d7d747d9bccf5dc9cf2ce1624dd503cb285d440627cc7d3e26

See more details on using hashes here.

Provenance

The following attestation bundles were made for hca_anndata_tools-0.5.0.tar.gz:

Publisher: release-please.yml on clevercanary/hca-validation-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hca_anndata_tools-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hca_anndata_tools-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98ad2705f4a2e3ed002f9251210ba648078f519ed3a1cfb5706174caf4961a7d
MD5 a917d318f6683f16ae353fac55e6f770
BLAKE2b-256 61b0e5f151815ff34722760aab2fbeffcea1987a60d1b5fed0c14f2d55216802

See more details on using hashes here.

Provenance

The following attestation bundles were made for hca_anndata_tools-0.5.0-py3-none-any.whl:

Publisher: release-please.yml on clevercanary/hca-validation-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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