Skip to main content

HCA schema validation for single-cell datasets

Project description

HCA Schema Validator

HCA-specific extensions for cellxgene schema validation.

Installation

From PyPI (Recommended)

pip install hca-schema-validator

From Source (Development)

# Clone the repository
git clone https://github.com/clevercanary/hca-validation-tools.git
cd hca-validation-tools/packages/hca-schema-validator

# Install Poetry if you haven't already
curl -sSL https://install.python-poetry.org | python3 -

# Install dependencies and package
poetry install

# Run tests
poetry run pytest tests/

Usage

from hca_schema_validator import HCAValidator

# Create validator instance
validator = HCAValidator()

# Validate an h5ad file
is_valid = validator.validate_adata("path/to/file.h5ad")

# Check results
if is_valid:
    print("✅ Validation passed!")
else:
    print("❌ Validation failed:")
    for error in validator.errors:
        print(f"  - {error}")

Development Status

Current Version: 0.1.0 - Minimal passthrough implementation

Currently a passthrough wrapper around cellxgene-schema Validator. HCA-specific validation rules will be added incrementally.

Testing

cd hca_schema_validator
poetry run pytest tests/

Project Structure

hca_schema_validator/
├── src/
│   └── hca_schema_validator/
│       ├── __init__.py       # Package exports
│       └── validator.py      # HCAValidator class
├── tests/
│   └── test_validator.py # Unit tests
├── pyproject.toml        # Poetry configuration & dependencies
└── README.md            # This file

License

MIT

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_schema_validator-0.2.0.tar.gz (6.0 MB view details)

Uploaded Source

Built Distribution

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

hca_schema_validator-0.2.0-py3-none-any.whl (6.0 MB view details)

Uploaded Python 3

File details

Details for the file hca_schema_validator-0.2.0.tar.gz.

File metadata

  • Download URL: hca_schema_validator-0.2.0.tar.gz
  • Upload date:
  • Size: 6.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hca_schema_validator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ac2d374709e7384fbb12e0681b37bd907de62d2805ba940ffd3451b8a65077f2
MD5 88d9fd1110063bd1a8e303653433c42d
BLAKE2b-256 1155aadd454c3816f8993acc6d5bba3aed055d4f9089ad2c73fa7d86cfc4c9ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for hca_schema_validator-0.2.0.tar.gz:

Publisher: publish-hca-schema-validator.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_schema_validator-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hca_schema_validator-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a8f48cc50e1785de7553abdce1590b3b41ac35e1f3d9300dffd69ce1e3826ad
MD5 3fac63cc6e18b53e744d3341aa927389
BLAKE2b-256 de75b1b0e541f776a9d14fc473bbebcedae2db2618a0e4de0aec59e52ad4c386

See more details on using hashes here.

Provenance

The following attestation bundles were made for hca_schema_validator-0.2.0-py3-none-any.whl:

Publisher: publish-hca-schema-validator.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