phe.annotations

Module contents

Date:10 Nov, 2015
Author:Alex Jironkin
class Annotator(name)[source]

Bases: phe.metadata.PHEMetaData

Base class for Annotators

Attributes

name  

Methods

annotate([vcf_path])
get_meta()
get_meta_values()
annotate(vcf_path=None)[source]
get_meta()[source]
get_meta_values()[source]
name = None
available_annotators()[source]

Return list of available filters.

dynamic_annotator_loader()[source]

Fancy way of dynamically importing existing annotators.

Returns:

dict:

Available annotators dictionary. Keys are parameters that can be supplied to the filters.

make_annotators(config)[source]

Create a list of annotators from config.

Parameters:

config: dict, optional

Dictionary with name: value pairs. For each name, an appropriate Annotator will be found and instanciated.

Returns:

list:

List of Annotator annotators.