Skip to content

CleanupPDB

apiblocks.CleanupPDB

Converts raw PDB file into a ProteinStructure object. In addition, performs the following actions:

  • Removes residues that don't represent amino acids.
  • Removes residues that don't have a Ca atom.
  • Removes residues that have more than one Ca atom.
Parameters:
Name Type Description Example Default
pdb_data str

Raw data of a pdb file

"ATOM   2085  CA   PRO A1269       3.521  -3.568  11.905  1.00 22.18           C"
pdb_name Optional[str]

Name of the protein structure

"Protein X"
"Unnamed protein"
Examples:
$ curl 'https://api.apiblocks.dev/rpc' \
-H 'X-API-KEY: $APIBLOCKS_TOKEN' \
-H 'Content-Type: application/json' \
--data '{
    "id": "9bf74949-51e9-4aee-b06e-d9c742715644",
    "method": "apiblocks.CleanupPDB",
    "params": {
      "pdb_data": "ATOM   2085  CA   PRO A1269       3.521  -3.568  11.905  1.00 22.18           C",
      "pdb_name": "Protein X"
    }
  }'