Source code for boltz_data.external.pdb_redo
"""PDB-REDO integration functions."""
import gemmi
from boltz_data.cif import read_single_cif_from_file
[docs]
def get_mmcif_from_pdb_redo(*, pdb_id: str) -> gemmi.cif.Block:
"""Download and parse an mmCIF file from PDB-REDO."""
url = f"https://pdb-redo.eu/db/{pdb_id}/{pdb_id}_final.cif"
return read_single_cif_from_file(url)