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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hca_schema_validator-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 a4cd390c3ae83880c56cb4455bf8367e8594ce46e0141e69a0a2899dbe831975
MD5 cf70bbe78063ad3b8a3f0946eebd6779
BLAKE2b-256 d478eb7b81f00173c4fff0b31d91cb99812305a9577a58caea4342c7232d3032

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hca_schema_validator-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5598b9816cd869c80274aa5cf9bfc24ac6f9636d093d891166fc3fa5138d24a
MD5 b85482a7f3c0d54028b78f22a8dae9f7
BLAKE2b-256 12ecbe104e17fffa66cd55f1fe8ad0d4401461340c6fe9f6bfba7abb4046c9c8

See more details on using hashes here.

Provenance

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