pypath.utils.mapping.guess_type§

pypath.utils.mapping.guess_type(name, entity_type=None)[source]§

From a string, tries to guess the ID type and optionally the entity type. Returns a tuple of strings: ID type and entity type.