Interact with PepX

XML-based API

Description

All information contained within the PepX database is exposed as XML (Extensible Markup Language). When certain URLs are visited, an XML file with the requested data is returned, following the REST interface for data exchange. For example, calling the URL http://pepx.switchlab.org/clusters.xml?threshold=2&alignment=75 serves an XML file with a description of the clusters for threshold 2 Å and an alignment of 75%. The XML interface is implemented for clusters, PDBs and BriX classes providing backbone variations on the peptides.

Example

In the example, we will retrieve all the PDB entries in XML, pick PDB 1N7F, find all the clusters this entry belongs to and return a list with BriX class IDs that cover the peptide of this complex.

pdbs.xml

First, we retrieve an XML file of all PDB entries at http://pepx.switchlab.org/pdbs.xml. Each entry looks like the image below (for PDB 1N7F).

pdbs.png

pdb.xml/<id>

With the id field of this PDB entry, we can query for the all information regarding that PDB at http://pepx.switchlab.org/pdb.xml/20900.

pdb.png

pdb-clusters.xml/<id>

To retrieve the clusters at the different thresholds and alignments this PDB is part of, visit http://pepx.switchlab.org/pdb-clusters.xml/20900.

clusters.png

brix.xml/<id>

Finally, you can get all the BriX classes that cover the peptide of this protein-peptide complex at http://pepx.switchlab.org/brix.xml/20900

brix.png

Download Raw Files

Go to the download page.