MediatorLocalPhylogenyMixin¶
- class MediatorLocalPhylogenyMixin(database, phy_method='infer', phy_sub_nodes=True, phy_ignore_tips=False, phy_refrep='tid', **kwargs)[source]¶
Mixin class for local mediator that handle phylogeny data.
Mixin class constructor for
MediatorLocalPhylogenyMixin- Parameters
database (pmaf.database._metakit.DatabasePhylogenyMetabase) – Instance of
DatabaseBaseandDatabasePhylogenyMixinphy_method (str) – Phylogeny retrieval method. Can be either “infer” or “prune”
phy_ignore_tips (bool) – Ignore duplicated tips
phy_refrep (str) – Taxonomy lookup level. Can be either “tid” for tids or “rid” for rids
kwargs (Any) – Compatibility
Attributes
PHYLO_EXTRACT_METHODSclientCurrent active client that mediator mediates.
configsAll current configs.
stateState of the mediator(client)
Methods
get_identifier_by_phylogeny(docker, factor, …)- meta private
get_phylogeny_by_identifier(docker, factor, …)Get phylogeny data that matches identifiers in docker within local database client.
reconfig(name, value)Set config name to value
verify_factor(factor)Verify/validate compatibility of the current mediator and factor