API documentation
PDBFlex provides an application programming interface (API) integrate our data directly into development of novel bioinformatics methods. All interfaces have to be accessed through http. Results are returned as JSON strings.
PDBStats
Request flexibility data about one particular PDB.

http://pdbflex.org/php/api/PDBStats.php?pdbID=1a50&chainID=A

  1. pdbID   of structure you are interested in
  2. chainID   of chain you are interested in

[{"pdbID":"1a50",
"chainID":"A",
"parentClusterID":"4hn4A",
"avgRMSD":"0.538",
"maxRMSD":"2.616",
"flexibilityLabel":"Low",
"otherClusterMembers":["4hn4A","4hpjA","4hpxA","4kkxA",...],
"PDBFlexLink":"http:\/\/pdbflex.org\/cluster.html#!\/4hn4A\/20987\/1a50A"}]


Note: you can omit the chainID and PDBFlex will return information for all chains.
RMSD profile
Request RMSD array used for local flexibility plots

http://pdbflex.org/php/api/rmsdProfile.php?pdbID=1a50&chainID=A

  1. pdbID   PDB ID of structure you are interested in
  2. chainID   Chain ID of chain you are interested in

{"queryPDB":"1a50A",
"clusterName":"4hn4A",
"profile":"[0.616,0.624,0.624,0.624,0.624,0.624,0.029,0.013,0.016,0.023,0.025,0.028,0.030,0.034,0.035,0.035,0.035,0.035,0.036,0.033,0.027,0.023,0.017...]"}
Sequence profile
Request RMSD array used for local flexibility plots but for any protein sequence currently not analyzed by PDBFlex

http://pdbflex.org/php/api/sequence.php

sequence.php requires to send a POST request for a sequence.
  1. sequence   The sequence you are interested in

{"queryPDB":"1a50A",
"clusterName":"4hn4A",
"profile":"[0.616,0.624,0.624,0.624,0.624,0.624,0.029,0.013,0.016,0.023,0.025,0.028,0.030,0.034,0.035,0.035,0.035,0.035,0.036,0.033,0.027,0.023,0.017...]"}
PDB representatives
Request representatives for a PDB's own cluster. Returns a list of chains that represent the most distinct structures in the cluster.

http://pdbflex.org/php/api/representatives.php?pdbID=1a50&chainID=A

  1. pdbID   PDB ID of structure you are interested in
  2. chainID   Chain ID of chain you are interested in

["2trsA","3pr2A","1kfjA"]