v0.1.58
Highlights
Value Set Toolkit
Fixes:
For full context, see:
- https://douroucouli.wordpress.com/2022/07/15/using-ontologies-within-data-models-and-standards/
- https://build.fhir.org/valueset-operation-expand.html
This PR adds a new top level command (name is not yet final) called vskit:
vskit expand --help
Usage: vskit expand [OPTIONS] [VALUE_SET_NAMES]...
Expand a value set. EXPERIMENTAL.
This will expand an *intensional value set* (aka *dynamic enum*), running a
query against an ontology backend or backends to materialize the value set
(permissible values).
Currently the value set must be specified as LinkML, but in future this will
be possible with other specifications such as FHIR ValueSet objects.
Each expression in a dynamic enum has a *source ontology*, this is specified
as a CURIE such as:
- obo:mondo - bioregistry:wikidata
These can be mapped to specific OAK selectors. By default, any obo prefix is
mapped to the semsql implementation of that. You can use a configuration
file to map to other backends, such as BioPortal or Wikidata. However, note
that not all backends are capable of being able to render all value sets.
Example:
vskit expand -c config.yaml -s schema.yaml -o expanded.yaml
my_value_set1 my_value_set2
Options:
-c, --config PATH
-s, --schema PATH
-o, --output PATH
--help Show this message and exit.
This can be used to expand a value set.
E.g.
vskit expand -s tests/input/value_set_example.yaml -o z GoMembrane MembraneExcludingEukaryotes
will expand two value sets (enums) from a linkml spec
GoMembrane:
pv_formula: CURIE
reachable_from:
include_self: true
source_ontology: obo:go
source_nodes:
- GO:0016020 ## membrane
OnlyInEukaryotes:
reachable_from:
source_ontology: obo:go
source_nodes:
- NCBITaxon:2759 ## Eukaryota
relationship_types:
- rdfs:subClassOf
- RO:0002162 ## in taxon
- BFO:0000050 ## part of
MembraneExcludingEukaryotes:
inherits: GoMembrane
minus:
- inherits: OnlyInEukaryotes
it will materialize the permissible values by querying the relevant ontology
It uses rueaml.yaml when writing the output, so comments are preserved
What's Changed
- Adding a valueset toolkit, performs expansion. by @cmungall in #371
- Adding additional documentation for conversion to FHIR. by @cmungall in #375
- gitignore:
.DS_Store
, etc by @joeflack4 in #373 - yield results from a generator fixes #376 by @hrshdhgd in #379
- Fix an occurrence of prontolib: in tutorials by @matentzn in #377
- Update Docs cli.py by @souzadevinicius in #372
- Ontology statistics enhacements by @cmungall in #380
New Contributors
- @souzadevinicius made their first contribution in #372
Full Changelog: v0.1.57...v0.1.58