ensembl.vep.output.factory.stream package
Format adapters for streams of annotated variants.
ensembl.vep.output.factory.stream.base module
The contract for a format adapter over annotated variants.
-
class ensembl.vep.output.factory.stream.base.AnnotationStreamFactory[RecordT_co](*args, **kwargs)[source]
Bases: Protocol[RecordT_co]
Record factory for one annotation output representation.
-
records(variants)[source]
Yield one output record for each annotated variant.
- Return type:
Iterator[RecordT_co]
ensembl.vep.output.factory.stream.json module
Ensembl VEP JSON-schema record generation.
-
class ensembl.vep.output.factory.stream.json.JSONStreamFactory[source]
Bases: object
Ensembl VEP JSON-schema record factory.
-
record(variant)[source]
Return one Ensembl VEP JSON-schema dictionary.
- Return type:
dict[str, object]
-
records(variants)[source]
Yield each variant as a JSON-compatible dictionary.
- Return type:
Iterator[dict[str, object]]