phe.variant.variant_factory

Classes and functions for working with variant callers.

Date:22 Sep, 2015
Author:Alex Jironkin
available_callers()[source]

Return list of available variant callers.

dynamic_caller_loader()[source]

Fancy way of dynamically importing existing variant callers.

Returns:
dict:

Available variant callers dictionary. Keys are parameters that can be used to call variants.

factory(variant=None, custom_options=None)[source]

Make an instance of a variant class.

Parameters:
variant: str, optional

Name of the variant class to instantiate.

custom_options: str, optional

Custom options to be passed directly to the implementing class.

Returns:
:py:class:`phe.variant.VariantCaller`:

Instance of the phe.variant.VariantCaller for given variant name, or None if one couldn’t be found.