ensembl.vep.runner.corpus package#

Corpus runners: describe, export, and check registered corpora.

Submodules#

ensembl.vep.runner.corpus.describe module#

Registered corpus descriptions.

class ensembl.vep.runner.corpus.describe.Runner(config)[source]#

Bases: object

Runner for describing a registered corpus.

With --annotate, also run the configured annotator over the whole corpus and count the terms it emits – what the corpus exercises, not only what it contains.

Variables:
  • name (ClassVar[str]) – The registry name.

  • sections (ClassVar[tuple[str, ...]]) – The configuration sections read.

  • description (ClassVar[str]) – One-line description for the subcommand list.

description: ClassVar[str] = 'describe a registered corpus and list its selectable overlaps'#
name: ClassVar[str] = 'corpus.describe'#
run()[source]#

Describe the configured corpus in the requested format.

Return type:

ExitCode

sections: ClassVar[tuple[str, ...]] = ('logging', 'corpus', 'annotation', 'corpus_describe')#

ensembl.vep.runner.corpus.golden module#

Golden corpus term generation and validation.

class ensembl.vep.runner.corpus.golden.Runner(config)[source]#

Bases: object

Runner for generating or validating golden corpus terms.

Checking reads the corpus spec from the golden file itself, so --golden_file alone is a complete check. The annotator comes from the file too, unless --annotator is given explicitly – checking another strategy against one annotator’s golden terms is a conformance check against a fixed expectation, which is the point.

Variables:
  • name (ClassVar[str]) – The registry name.

  • sections (ClassVar[tuple[str, ...]]) – The configuration sections read.

  • description (ClassVar[str]) – One-line description for the subcommand list.

description: ClassVar[str] = 'record or check the terms an annotator emits for a corpus'#
name: ClassVar[str] = 'corpus.golden'#
run()[source]#

Record or check, as asked.

Return type:

ExitCode

sections: ClassVar[tuple[str, ...]] = ('logging', 'corpus', 'annotation', 'corpus_golden')#

ensembl.vep.runner.corpus.save module#

Registered corpus export.

class ensembl.vep.runner.corpus.save.Runner(config)[source]#

Bases: object

Runner for exporting a corpus as FASTA, GFF3 and VCF.

Variables:
  • name (ClassVar[str]) – The registry name.

  • sections (ClassVar[tuple[str, ...]]) – The configuration sections read.

  • description (ClassVar[str]) – One-line description for the subcommand list.

description: ClassVar[str] = 'write a registered corpus as FASTA, GFF3 and VCF'#
name: ClassVar[str] = 'corpus.save'#
run()[source]#

Write the configured corpus and report what was written.

Return type:

ExitCode

sections: ClassVar[tuple[str, ...]] = ('logging', 'corpus', 'corpus_save')#