pypath.internals.input_formats.UniprotListMapping§

class pypath.internals.input_formats.UniprotListMapping(id_type_a, id_type_b, uniprot_id_type_a=None, uniprot_id_type_b=None, ncbi_tax_id=9606, swissprot=None)[source]§

Bases: MappingInput

Provides parameters for downloading mapping table from UniProt Upload Lists webservice.

Parameters:
  • id_type_a (str) – Custom name for one of the ID types.

  • id_type_b (str) – Custom name for the other ID type.

  • uniprot_id_type_a (str) – This is the symbol the UniProt webservice uses for the first name type. These are included in the module and set automatically, the argument only gives a way to override this.

  • uniprot_id_type_b (str) – Same as above just for the other ID type.

  • swissprot (bool) – Download data only for SwissProt IDs.

__init__(id_type_a, id_type_b, uniprot_id_type_a=None, uniprot_id_type_b=None, ncbi_tax_id=9606, swissprot=None)[source]§

Methods

__init__(id_type_a, id_type_b[, ...])

possible(id_type_a, id_type_b[, ncbi_tax_id])

resource_id_type(id_type[, override])

set_organism(ncbi_tax_id)

swap_sides()