PyCoM API

PyCoM comes with a RESTful API hosted at https://pycom.brunel.ac.uk/api/. It can be used to query the 540,000+ proteins alongside coevolution matrices.

Guides

Full specifications (in Swagger) are available at: https://pycom.brunel.ac.uk/api/spec/

If you only need a short tutorial, one is available here: https://pycom.brunel.ac.uk/tutorials/00_WebAPI.html

Examples

Find proteins associated with cancer (first 10 entries):

https://pycom.brunel.ac.uk/api/find?disease=cancer

Load the second page (entries 11 to 20)

https://pycom.brunel.ac.uk/api/find?disease=cancer&page=2

Entries with cofactor FAD which have a PTM, and have a disease associated with them:

https://pycom.brunel.ac.uk/api/find?cofactor=FAD&has_ptm=true&has_disease=true

Look for proteins with with 10-15 residues, and load the matrix (by setting matrix=true). Set per_page=2 to only load two proteins (instead of 10).

https://pycom.brunel.ac.uk/api/find?min_length=10&max_length=15&matrix=true&per_page=2

List of Endpoints

Find Endpoint

The main endpoint (/api/find) is used to query the database.

https://pycom.brunel.ac.uk/api/find

The /api/find endpoint support the following parameters:

Secondary Endpoints

There are secondary (support) endpoints. These serve static content and take no parameters.

https://pycom.brunel.ac.uk/api/get-disease-list
https://pycom.brunel.ac.uk/api/get-cofactor-list
https://pycom.brunel.ac.uk/api/get-organism-list
https://pycom.brunel.ac.uk/api/get-biological-process-list
https://pycom.brunel.ac.uk/api/get-cellular-component-list
https://pycom.brunel.ac.uk/api/get-development-stage-list
https://pycom.brunel.ac.uk/api/get-domain-list
https://pycom.brunel.ac.uk/api/get-ligand-list
https://pycom.brunel.ac.uk/api/get-molecular-function-list
https://pycom.brunel.ac.uk/api/get-ptm-list