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
nameis in the reference list with the providedid_typeand organism.is_not(names, id_type[, ncbi_tax_id])Returns the identifiers from
nameswhich are not instances of the providedid_typeand from the given organism.load(key)select(names, id_type[, ncbi_tax_id])Selects the identifiers in
nameswhich are in the reference list with the providedid_typeand organism.which_list(id_type[, ncbi_tax_id])- check(name, id_type, ncbi_tax_id=None)[source]§
Checks if the identifier
nameis in the reference list with the providedid_typeand organism.