Skip to content

Endpoints: Mapping

Christopher Anna edited this page Aug 8, 2018 · 2 revisions

wormbase_parasite.endpoint_groups.mapping

MappingMixin

MappingMixin(self, /, *args, **kwargs)

A mixin with methods for accessing the Information section of the Wormbase ParaSite REST API

This mixin provides access to the following endpoints:

GET /map/cdna/:id/:region
GET /map/cds/:id/:region
GET /map/translation/:id/:region

Any arguments listed with a * are required

cdna2genomic

MappingMixin.cdna2genomic(self, id, object_type, region, species=None)

GET /map/cdna/:id/:region

Arguments

  • id* (str): A stable ID
  • object_type* (str): Object type
  • region* (str): Query region
  • species (str): Default: None

Example

client = wormbase_parasite.WormbaseClient()
client.cdna2genomic('Bm4789', 'transcript', '100..300')

Returns

data (dict): a dictionary representing the data returned by the API

See also: https://parasite.wormbase.org/rest/documentation/info/assembly_cdna

cds2genomic

MappingMixin.cds2genomic(self, id, object_type, region, species=None)

GET /map/cds/:id/:region

Arguments

  • id* (str): A stable ID
  • object_type* (str): Object type
  • region* (str): Query region
  • species (str): Default: None

Example

client = wormbase_parasite.WormbaseClient()
client.cds2genomic('Bm4789', 'transcript', '1..300')

Returns

data (dict): a dictionary representing the data returned by the API

See also: https://parasite.wormbase.org/rest/documentation/info/assembly_cds

protein2genomic

MappingMixin.protein2genomic(self, id, region, object_type=None, species=None)

GET /map/translation/:id/:region

Arguments

  • id* (str): A stable ID
  • region* (str): Query region
  • object_type (str): Object type
  • species (str): Default: None

Example

client = wormbase_parasite.WormbaseClient()
client.cds2genomic('Bm4789', '1..100')

Returns

data (dict): a dictionary representing the data returned by the API

See also: https://parasite.wormbase.org/rest/documentation/info/assembly_translation

Clone this wiki locally