ensembl.vep.config.sections.catalogue package#
Catalogue maintenance options, one section per verb.
Submodules#
ensembl.vep.config.sections.catalogue.add module#
Options for adding a catalogue term.
- class ensembl.vep.config.sections.catalogue.add.CatalogueAddConfig(*, term=None, accession=None, rank=None, tier=3, impact=None, so_parent=(), subsumes=(), no_derive_subsumes=False, when=None, allow_missing_when=False, notes=None)[source]#
Bases:
ConfigSectionThe term being added.
- Variables:
term (str | None) – The SO term to add.
accession (str | None) – Its SO accession.
rank (int | None) – 1-based rank to insert at, or None to append after the highest.
tier (int) – Tier grouping.
impact (str | None) – Impact bucket.
so_parent (tuple[str, ...]) – SO parent accessions, used to derive
subsumes.subsumes (tuple[str, ...]) – Extra terms to subsume, on top of the derived ones.
no_derive_subsumes (bool) – Skip deriving from
so_parent.when (str | None) – The
whenpayload as JSON. Never inferred: a wrong formula is the one error conformance cannot catch, since every annotator would agree on it.allow_missing_when (bool) – Write the entry as a placeholder rather than refusing.
notes (str | None) – Free-text notes.
- accession: str | None#
- allow_missing_when: bool#
- impact: str | None#
- no_derive_subsumes: bool#
- notes: str | None#
- rank: int | None#
- section_name: ClassVar[str] = 'catalogue_add'#
- so_parent: tuple[str, ...]#
- subsumes: tuple[str, ...]#
- term: str | None#
- tier: int#
- when: str | None#
ensembl.vep.config.sections.catalogue.catalogue module#
Which catalogue to act on, and whether to write it.
- class ensembl.vep.config.sections.catalogue.catalogue.CatalogueConfig(*, catalogue_file=None)[source]#
Bases:
ConfigSectionWhich catalogue to act on. Every verb reads this one.
- Variables:
catalogue_file (Path | None) – Catalogue JSON to read or write, or None for the packaged one.
- catalogue_file: Path | None#
- section_name: ClassVar[str] = 'catalogue'#
ensembl.vep.config.sections.catalogue.costs module#
Options for measuring fact costs.
- class ensembl.vep.config.sections.catalogue.costs.CatalogueCostsConfig(*, output_format=None, output_file=None)[source]#
Bases:
ConfigSectionHow the measured costs are reported and persisted.
- Variables:
output_format (str | None) – Table format for the comparison.
output_file (Path | None) – Write the measured cost table here, or None to only report it.
- output_file: Path | None#
- output_format: str | None#
- section_name: ClassVar[str] = 'catalogue_costs'#
ensembl.vep.config.sections.catalogue.remove module#
Options for removing a catalogue term.
- class ensembl.vep.config.sections.catalogue.remove.CatalogueRemoveConfig(*, term=None)[source]#
Bases:
ConfigSectionThe term being removed.
- Variables:
term (str | None) – The SO term to remove.
- section_name: ClassVar[str] = 'catalogue_remove'#
- term: str | None#
ensembl.vep.config.sections.catalogue.show module#
Options for listing what the catalogue and fact registry contain.
- class ensembl.vep.config.sections.catalogue.show.CatalogueShowConfig(*, subject='terms', select=None, graph=False, output_format=None, sort=None, output_file=None)[source]#
Bases:
ConfigSectionWhat to list, and how to render it.
- Variables:
subject (str) – Whether to list the catalogue’s terms or the registered facts.
select (str | None) – Show only the term or fact with this name, or None for all of them. In graph mode it keeps that node and whatever it connects to directly.
graph (bool) – Draw the subject as a graph. Use
--output_formatto set the file format, which defaults to svg when--graphis given. Unselected SVG terms are embedded in a linked HTML catalogue.output_format (str | None) – Output format. If
--graphis given, must be a valid graph format.sort (str | None) – Row order, or None for the subject’s natural order – catalogue rank for terms, cost tier for facts.
output_file (Path | None) – Where to write, or None for stdout.
- graph: bool#
- output_file: Path | None#
- output_format: str | None#
- section_name: ClassVar[str] = 'catalogue_show'#
- select: str | None#
- sort: str | None#
- subject: str#
ensembl.vep.config.sections.catalogue.validate module#
Validation options for the catalogue rule set.
- class ensembl.vep.config.sections.catalogue.validate.CatalogueValidateConfig(*, solver='none', verify_requires=False)[source]#
Bases:
ConfigSectionValidation tiers to run.
- Variables:
solver (str) – Whole-ruleset SAT backend.
z3needs thevalidationextra.verify_requires (bool) – Check every declared
requiresclaim against a real corpus.
- section_name: ClassVar[str] = 'catalogue_validate'#
- solver: str#
- verify_requires: bool#
ensembl.vep.config.sections.catalogue.write module#
Permission to change the catalogue on disk.
- class ensembl.vep.config.sections.catalogue.write.CatalogueWriteConfig(*, catalogue_overwrite=False, dry_run=False)[source]#
Bases:
ConfigSectionRead only by the verbs that change the catalogue, so the listing verbs never offer it.
- Variables:
catalogue_overwrite (bool) – Permit writing the packaged catalogue in place. Without this, or an explicit path, a write is refused: an installed
vepmust not silently rewrite its own wheel.dry_run (bool) – Report the change and its validation without writing.
- catalogue_overwrite: bool#
- dry_run: bool#
- section_name: ClassVar[str] = 'catalogue_write'#