GA4GH Genomic Knowledge Standards meta-schema tools
Project description
gks-metaschema
Tools and scripts for parsing the GA4GH Genomic Knowledge Standards (GKS) metaschemas. The metaschema processor (MSP) converts JSON Schema Version 2020-12 in YAML to reStructuredText (RST) and JSON files.
Currently used in:
Installing for development
Prerequisites
- Python 3.12: We recommend using pyenv.
Installation Steps
Fork the repo at https://github.com/ga4gh/gks-metaschema, and initialize a development environment.
git clone git@github.com:YOUR_GITHUB_ID/gks-metaschema.git
cd gks-metaschema
make devready
source venv/3.12/bin/activate
Set up pre-commit hooks:
pre-commit install
Testing
To run the tests:
make test
Usage
File Hierarchy
The metaschema processor expects the following hierarchy:
├── docs
│ ├── source
│ | ├── ...
│ ├── Makefile
├── schema
│ ├──gks_schema
│ | ├── gks-schema-source.yaml
│ | ├── Makefile
│ | ├── prune.mk
│ ├── Makefile
docs: Sphinx documentation directory. Must be nameddocs.source: Directory containing documentation written in reStructuredText and Sphinx configuration. Must be namedsource.Makefile: Commands to create the reStructuredText files. This file should not change across GKS projects.
schema: Schema directory. Can also contain submodules for other GKS product schemas.gks_schema: Schema directory for GKS product. The directory name should reflect the product, e.g.vrs.gks-schema-source.yaml: Source document for the JSON Schema 2020-12. The file name should reflect the standard, e.g.vrs-source.yaml. The file name must end with-source.yaml.Makefile: Commands to create the reStructuredText and JSON files. This file should not change across GKS projects.prune.mk: Cleanup of files indefandjsondirectories based on source document. This file should not change across GKS projects.
Makefile: Commands to create the reStructuredText and JSON files.
Contributing to the schema
To create the corresponding def (reStructuredText) and json files after making
changes to the source document, from the schema directory:
make all
The file structure will now look like:
├── schema
│ ├──gks_schema
| | ├── def
│ | | ├── ...
| | ├── json
│ | | ├── ...
│ | ├── gks-schema-source.yaml
│ | ├── Makefile
│ | ├── prune.mk
│ ├── Makefile
Contributing to the docs
GKS specification documentation is written in reStructuredText and located in
docs/source.
To build documentation locally, you must install entr:
brew install entr
Then from the docs directory:
make clean watch &
Then, open docs/build/html/index.html. The above make command should build docs when
the source changes.
NOTE: Some types of changes require recleaning and building.
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 ga4gh_gks_metaschema-0.3.2.tar.gz.
File metadata
- Download URL: ga4gh_gks_metaschema-0.3.2.tar.gz
- Upload date:
- Size: 68.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10b7b12ee8a833842faa7d0628eec1da5d4ee6456246264b5d768ca1e9e5c028
|
|
| MD5 |
d9168fce91dfa3afaa8dc3085c5a67fa
|
|
| BLAKE2b-256 |
37a40343f46cf54b806d3fa19865821c45ad93ce2e664ce67f2a4b869c0b8a4c
|
Provenance
The following attestation bundles were made for ga4gh_gks_metaschema-0.3.2.tar.gz:
Publisher:
release.yaml on ga4gh/gks-metaschema
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ga4gh_gks_metaschema-0.3.2.tar.gz -
Subject digest:
10b7b12ee8a833842faa7d0628eec1da5d4ee6456246264b5d768ca1e9e5c028 - Sigstore transparency entry: 181531222
- Sigstore integration time:
-
Permalink:
ga4gh/gks-metaschema@e1b6f08304e3138186baacf69a6d6721743e7846 -
Branch / Tag:
refs/tags/0.3.2 - Owner: https://github.com/ga4gh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@e1b6f08304e3138186baacf69a6d6721743e7846 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ga4gh_gks_metaschema-0.3.2-py3-none-any.whl.
File metadata
- Download URL: ga4gh_gks_metaschema-0.3.2-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0ea41bab5ac7785e5eaf79e2c738a0e3d82717a0ed1fe58815a30a038213afa
|
|
| MD5 |
60aaee1971fb70e1058172f96ee984ff
|
|
| BLAKE2b-256 |
34ff0ced89cdfb5399b116a77b146243c071b1a8fef3c673710cf36148794626
|
Provenance
The following attestation bundles were made for ga4gh_gks_metaschema-0.3.2-py3-none-any.whl:
Publisher:
release.yaml on ga4gh/gks-metaschema
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ga4gh_gks_metaschema-0.3.2-py3-none-any.whl -
Subject digest:
b0ea41bab5ac7785e5eaf79e2c738a0e3d82717a0ed1fe58815a30a038213afa - Sigstore transparency entry: 181531224
- Sigstore integration time:
-
Permalink:
ga4gh/gks-metaschema@e1b6f08304e3138186baacf69a6d6721743e7846 -
Branch / Tag:
refs/tags/0.3.2 - Owner: https://github.com/ga4gh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@e1b6f08304e3138186baacf69a6d6721743e7846 -
Trigger Event:
push
-
Statement type: