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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4cd390c3ae83880c56cb4455bf8367e8594ce46e0141e69a0a2899dbe831975
|
|
| MD5 |
cf70bbe78063ad3b8a3f0946eebd6779
|
|
| BLAKE2b-256 |
d478eb7b81f00173c4fff0b31d91cb99812305a9577a58caea4342c7232d3032
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hca_schema_validator-0.4.0.tar.gz -
Subject digest:
a4cd390c3ae83880c56cb4455bf8367e8594ce46e0141e69a0a2899dbe831975 - Sigstore transparency entry: 866730294
- Sigstore integration time:
-
Permalink:
clevercanary/hca-validation-tools@bfe1eb46a9a9600ebb56c0d181bbf07968e0c99b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/clevercanary
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-hca-schema-validator.yml@bfe1eb46a9a9600ebb56c0d181bbf07968e0c99b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file hca_schema_validator-0.4.0-py3-none-any.whl.
File metadata
- Download URL: hca_schema_validator-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5598b9816cd869c80274aa5cf9bfc24ac6f9636d093d891166fc3fa5138d24a
|
|
| MD5 |
b85482a7f3c0d54028b78f22a8dae9f7
|
|
| BLAKE2b-256 |
12ecbe104e17fffa66cd55f1fe8ad0d4401461340c6fe9f6bfba7abb4046c9c8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hca_schema_validator-0.4.0-py3-none-any.whl -
Subject digest:
f5598b9816cd869c80274aa5cf9bfc24ac6f9636d093d891166fc3fa5138d24a - Sigstore transparency entry: 866730301
- Sigstore integration time:
-
Permalink:
clevercanary/hca-validation-tools@bfe1eb46a9a9600ebb56c0d181bbf07968e0c99b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/clevercanary
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-hca-schema-validator.yml@bfe1eb46a9a9600ebb56c0d181bbf07968e0c99b -
Trigger Event:
workflow_dispatch
-
Statement type: