deepfold.common.protein.from_pdb_string¶
- deepfold.common.protein.from_pdb_string(pdb_str: str, chain_id: str | None = None) Protein[source]¶
Takes a PDB string and constructs a Protein object.
- WARNING: All non-standard residue types will be converted into UNK. All
non-standard atoms will be ignored.
- Parameters:
pdb_str – The contents of the pdb file
chain_id – If None, then the whole pdb file is parsed. If chain_id is specified (e.g. A), then only that chain is parsed.
- Returns:
A new Protein parsed from the pdb contents.