molclaw-mol-similarity
Calculate both Tanimoto similarities and the count of shared structural fragments between a target molecule and a list of candidate molecules via Morgan fingerprints.
- License 许可
- MIT
- 最近更新
- 2026-10-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- molclaw-mol-similarity
- license
- MIT license
- metadata
- { "skill-author": "PJLab" }
- description
- Calculate both Tanimoto similarities and the count of shared structural fragments between a target molecule and a list of candidate molecules via Morgan fingerprints.
03 SKILL.md 正文
Molecule Similarity Calculation
Note:
- Local files are not directly accessible by the server. Please upload them to the server using
molclaw-file-transferbefore execution. - For PDB file inputs, it is recommended to preprocess them using
molclaw-pdbfixerbefore execution. - Please refer to skill
molclaw-scp-serverto complete tool invocation.
Scene 1: Compute the Tanimoto similarities between a target molecule and a list of candidate molecules using Morgan fingerprints. Need to use the tool calculate_morgan_fingerprint_similarity.
The description of tool calculate_morgan_fingerprint_similarity.
Compute the Tanimoto similarities between a target molecule and a list of candidate molecules using Morgan fingerprints.
Args:
target_smiles (str): SMILES string of the target molecule
candidate_smiles_list (List[str]): List of candidate molecule SMILES strings
radius (int): Morgan fingerprint radius, default is 2
nBits (int): Morgan fingerprint vector bits number, default is 2048
Return:
status (str): success/error
msg (str): message
similarities (List[dict]): List of dict, each containing the keys 'smiles' and 'score'.
--smiles (str): A SMILES string of candidate_smiles_list
--score (float): Similarity value between the candidate SMILES and the target SMILES
How to use tool calculate_morgan_fingerprint_similarity :
response = await client.session.call_tool(
"calculate_morgan_fingerprint_similarity",
arguments={
"target_smiles": target_smiles,
"candidate_smiles_list": candidate_smiles_list,
"radius": radius,
"nBits": nBits
}
)
result = client.parse_result(response)
similarities = result["similarities"]
Scene 2: Compute the count of shared structural fragments between a target molecule and a list of candidate molecules using Morgan fingerprints. Need to use the tool calculate_common_fragments.
The description of tool calculate_common_fragments.
Compute the count of shared structural fragments between a target molecule and a list of candidate molecules using Morgan fingerprints.
Args:
target_smiles (str): SMILES string of the target molecule
candidate_smiles_list (List[str]): List of candidate molecule SMILES strings
radius (int): Morgan fingerprint radius, default is 2
Return:
status (str): success/error
msg (str): message
fragments_info (List[dict]): List of dict, each containing the keys 'smiles' and 'common_fragment_count'.
--smiles (str): A SMILES string of candidate_smiles_list
--common_fragment_count (float): Number of structural fragments shared between the candidate SMILES and the target SMILES
How to use tool calculate_common_fragments :
response = await client.session.call_tool(
"calculate_common_fragments",
arguments={
"target_smiles": target_smiles,
"candidate_smiles_list": candidate_smiles_list,
"radius": radius
}
)
result = client.parse_result(response)
fragments_info = result["fragments_info"]
04 同仓库更多 Skills
molclaw-smiles-valid-check
Check if the input molecule SMILES string is valid.
molclaw-skill-template-writer
Formats extracted execution patterns into standard MolClaw skill documents. Accepts structured input from the Skill Crystallization Meta-Workflow (L2-12) and outputs a properly formatted L1 or L2 skill document conforming to MolClaw conventions. This skill ensures that auto-generated skills are structurally identical to expert-curated skills, enabling seamless integration into the skill matching and loading pipeline.
molclaw-sequence-valid-check
Check if the input protein sequence is valid.
molclaw-scp-server
All tools utilized within molclaw skills connect via the MCP protocol. This skill serves as a unified guide for using the MCP Server. This skill must be loaded to create the MCP server before invoking any tools.
molclaw-run-bioemu
Run BioEmu sequence sampling and extract ensemble structures for downstream conformation analysis.
molclaw-rgroup-sampling
Generate new molecules sampling from the input scaffold.