AGENT SKILL

molclaw-rgroup-sampling

Generate new molecules sampling from the input scaffold.

License 许可
MIT
最近更新
2026-10-09
Stars
★ 0
Forks
0

01 前言 Front Matter

name
molclaw-rgroup-sampling
license
MIT license
metadata
{ "skill-author": "PJLab" }
description
Generate new molecules sampling from the input scaffold.

03 SKILL.md 正文

Molecule Generation from Scaffold

Note:

  • Local files are not directly accessible by the server. Please upload them to the server using molclaw-file-transfer before execution.
  • For PDB file inputs, it is recommended to preprocess them using molclaw-pdbfixer before execution.
  • Please refer to skill molclaw-scp-server to complete tool invocation.

The description of tool libinvent_rgroup_sampling_by_scaffold.

Generate new molecules sampling from the input scaffold.
Args:
    scaffold (str): Input scaffold SMILES string containing R-group position markers such as [*:1], [*:2], etc. e.g., 'c1ccc([*:1])cc1C(=O)N[*:2]'
    n (int): Number of molecules for sampling
    lipinski (bool): Whether to apply Lipinski's rule of five filtering, default is True
    filter_preset (str): Filter preset, options: ['none', 'minimal', 'default', 'strict'], default is 'default'
Return:
    status (str): success/error
    msg (str): message
    save_smiles_file (str): Path to the saved SMILES file
    output_smiles_list (List[str]): List of generated SMILES strings

How to use tool libinvent_rgroup_sampling_by_scaffold :

response = await client.session.call_tool(
    "libinvent_rgroup_sampling_by_scaffold",
    arguments={
        "scaffold": scaffold,
        "n": n,
        "lipinski": True,
        "filter_preset": filter_type
    }
)
result = client.parse_result(response)
output_smiles_list = result["output_smiles_list"]

04 同仓库更多 Skills