pypath.utils.reflists.ReferenceListManager§

class pypath.utils.reflists.ReferenceListManager(cleanup_period=10, lifetime=300)[source]§

Bases: Logger

__init__(cleanup_period=10, lifetime=300)[source]§

Make this instance a logger.

Parameters:
  • name – The label of this instance that will be prepended to all messages it sends to the logger.

  • module – Send the messages by the logger of this module.

Methods

__init__([cleanup_period, lifetime])

Make this instance a logger.

check(name, id_type[, ncbi_tax_id])

Checks if the identifier name is in the reference list with the provided id_type and organism.

is_not(names, id_type[, ncbi_tax_id])

Returns the identifiers from names which are not instances of the provided id_type and from the given organism.

load(key)

select(names, id_type[, ncbi_tax_id])

Selects the identifiers in names which are in the reference list with the provided id_type and organism.

which_list(id_type[, ncbi_tax_id])

check(name, id_type, ncbi_tax_id=None)[source]§

Checks if the identifier name is in the reference list with the provided id_type and organism.

is_not(names, id_type, ncbi_tax_id=None)[source]§

Returns the identifiers from names which are not instances of the provided id_type and from the given organism.

select(names, id_type, ncbi_tax_id=None)[source]§

Selects the identifiers in names which are in the reference list with the provided id_type and organism.