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.5.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.5.0-py3-none-any.whl (6.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hca_schema_validator-0.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 866e71becaef7b52bbaf04130473270dff16516ae97d86d5016de73be5334965
MD5 f9f77fdcf8c17b5e86933c2556738c7b
BLAKE2b-256 a261e85dfa353813dcc86d68d2989db829fc316aa94638757664ebdfbc196b2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for hca_schema_validator-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_schema_validator-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hca_schema_validator-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d21d20758fdded8c666bdab87e4af0ac788515ca72fe976d1dbf16cdb9c799b6
MD5 38364e3fadd6d4886daef5f996e31954
BLAKE2b-256 3240c40508651c28790738c061110467bc288bf53501032b7b563ad6f5d3cf0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hca_schema_validator-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