一键导入
molclaw-fix-pdb
Repair and clean PDB files with PDBFixer, returning repaired file path and topology counts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Repair and clean PDB files with PDBFixer, returning repaired file path and topology counts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Predict the ADMET (absorption, distribution, metabolism, excretion, and toxicity) properties of the input molecules.
Predict binding affinity between target protein sequence and small molecule SMILES using Boltz-2.
Predict protein structures with Chai-1 from sequence or FASTA input and return model scoring summaries.
Chroma toolkit skill covering chroma_monomer for single-chain generation, chroma_complex for multi-chain assembly generation, and chroma_symmetry for symmetry-constrained protein design.
Retrieve SMILES strings from PubChem database using compound names.
Generate new molecules de novo.
| name | molclaw-fix-pdb |
| description | Repair and clean PDB files with PDBFixer, returning repaired file path and topology counts. |
| license | MIT license |
| metadata | {"skill-author":"PJLab"} |
Note:
molclaw-file-transfer before execution.molclaw-pdbfixer before execution.molclaw-scp-server to complete tool invocation.The description of tool fix_pdb.
Repair a PDB file using PDBFixer, optionally clean or model missing parts, write the repaired PDB (unless `dry_run`), and return topology counts.
Args:
input_path (str): Path to the source PDB file to repair.
output_path (str|None): Optional output file path for the repaired PDB. If omitted the tool writes to a run-specific folder.
add_hydrogens (bool): Add missing hydrogens after filling atoms (default: False).
ph (float): pH value used when adding hydrogens (default: 7.0).
remove_heterogens (bool): Remove heterogens/ligands (keeps waters unless `remove_water` True).
remove_water (bool): Remove water molecules (default: False).
replace_nonstandard (bool): Replace nonstandard residues with standard counterparts (default: False).
keep_chains (List[str]|None): If provided, retain only these chain IDs.
add_missing_residues (bool): Attempt to model missing residues before filling atoms (default: False).
dry_run (bool): Validate operations without writing the repaired file (default: False).
Return:
status (str): 'success' or 'error'.
msg (str): Human-readable summary or error message.
output_dir (str|None): Run-specific directory under tool_result/pdbfixer_result.
output_file (str|None): Path to the repaired PDB file (None for dry runs or on error).
atom_count (int|None): Total atoms in the repaired topology when available.
residue_count (int|None): Total residues in the repaired topology when available.
chain_count (int|None): Total chains in the repaired topology when available.
How to use tool fix_pdb :
response = await client.session.call_tool(
"fix_pdb",
arguments={
"input_path": "/path/to/input.pdb",
"output_path": None,
"add_hydrogens": True,
"ph": 7.0,
"remove_heterogens": False,
"remove_water": False,
"replace_nonstandard": False,
"keep_chains": None,
"add_missing_residues": False,
"dry_run": True,
}
)
result = client.parse_result(response)
output_file = result.get("output_file")
# 1) Main mode: basic repair with hydrogens added (dry-run for validation)
{
"input_path": "/path/to/input.pdb",
"add_hydrogens": True,
"dry_run": True
}
# 2) Variant mode: keep specific chains and remove waters, write output
{
"input_path": "/path/to/input.pdb",
"keep_chains": ["A", "B"],
"remove_water": True,
"dry_run": False
}