mdciao.pdb.pdb2ref

mdciao.pdb.pdb2ref(pdb, url='https://data.rcsb.org/rest/v1/core/entry/', timeout=5)

Print the primary citation of a pdb code via web lookup

The citation object is returned as a dict, check these links for more info

Parameters
  • pdb (str) – four-leter pdb-code

  • url (str) – the base URL for the look-ups, default is ‘https://data.rcsb.org/rest/v1/core/entry/

  • timeout (int) – passed to the requests.get API, ‘How many seconds to wait for the server to send data before giving up’

Returns

ref – Whatever is contained in “rcsb_primary_citation” of https://data.rcsb.org/data-attributes.html

Return type

dict