haddock.modules.analysis.alascan.scan module
alascan module.
- class haddock.modules.analysis.alascan.scan.AddDeltaBFactor(model: PDBFile, path: Path, model_results: List[MutationResult])[source]
Bases:
AddDeltaBFactorAdd alascan delta score in the b-factor column of a PDB.
- class haddock.modules.analysis.alascan.scan.ClusterOutputer(cluster_scan_data: Dict[str, Dict[str, float | int]], clt_id: str, clt_population: int, scan_residue: str | None = None, generate_plot: bool = False, offline: bool = False, splitplot: bool = False)[source]
Bases:
ClusterOutputerManage the generation of alascan outputs for cluster-based analysis.
- sort_columns = ['chain', 'resid']
- class haddock.modules.analysis.alascan.scan.InterfaceScanner(model: str | Path | Any, mutation_res: str = 'ALA', params: Dict[str, Any] | None = None)[source]
Bases:
objectScan interface of a model to get tartget residues and create corresponding mutation jobs.
- class haddock.modules.analysis.alascan.scan.ModelPointMutation(model_path: Path, model_id: str, chain: str, resid: int, ori_resname: str, target_resname: str, native_scores: Tuple[float, float, float, float, float], output_mutants: bool = False, ligand_param_fname: Path | str = '', ligand_top_fname: Path | str = '')[source]
Bases:
objectExecutes a single point mutation.
- haddock.modules.analysis.alascan.scan.group_scan_by_cluster(models, results_by_model)[source]
Group alascan data per cluster, keyed by residue.
- haddock.modules.analysis.alascan.scan.mutate(pdb_f, target_chain, target_resid, mut_resname)[source]
Mutate a residue in a PDB file into a different residue.
- Parameters:
pdb_f (str) – Path to the pdb file.
target_chain (str) – Chain of the residue to be mutated.
target_resid (int) – Residue number of the residue to be mutated.
mut_resname (str) – Residue name of the residue to be mutated.
- Returns:
mut_pdb_fname (str) – Path to the mutated pdb file.