qp.structure.setup.parse_input¶
- qp.structure.setup.parse_input(input, output, center_yaml_residues)[source]¶
Parse input sources and determine center residues for each structure.
Processes the user-provided input (PDB codes, file paths, or CSV) and determines the center residue definitions from either the CSV
centercolumn or the YAMLcenter_residuesparameter.- Parameters:
input (str or list) – Input specification: PDB code(s), path to PDB file(s), or path to CSV.
output (str) – Path to the output directory.
center_yaml_residues (list) – Center residue definitions from the YAML config file.
- Returns:
(pdb_all, center_residues)wherepdb_allis a list of(pdb_id, pdb_path)tuples andcenter_residuesis a list of center definition strings.- Return type:
tuple of (list, list)
- Raises:
SystemExit – If no center residues are provided in either the CSV or YAML.