qp.manager.create.residue_exists¶
- qp.manager.create.residue_exists(sphere_path, res_name, chain, res_id)[source]¶
Check whether a specific residue exists in a PDB file.
- Parameters:
sphere_path (str) – Path to the sphere PDB file (e.g.,
0.pdb).res_name (str) – Three-letter residue name to search for.
chain (str) – Single-character chain ID.
res_id (int) – Residue sequence number.
- Returns:
True if a matching residue is found, False otherwise.
- Return type:
bool