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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hca_schema_validator-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 8d7ade7ea59e5753d71fa2b940442170045e0be73cbebe2ad432c453bf3bd5ba
MD5 40511a235a6e67be027428066db07348
BLAKE2b-256 7a1745c5fb1c6ac4334c67997516d3cdead5a4a09df2a32aa44af5c1a3b7ef06

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hca_schema_validator-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27aa4e92d81b40cf41f0501c26135845a308ba3597aef43f62861aa2206feed6
MD5 e3e47ac38646fc0da08b29103589a5ab
BLAKE2b-256 405da8defe89134a20a878af088a7cd2fe5e5e778cc02008325ee276cd2f6205

See more details on using hashes here.

Provenance

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