ms-spectra-simulation
Installation
SKILL.md
MS Spectra Simulation Skill
When to use this
Use this skill when the user provides a SMILES string and wants:
- Predicted MS/MS spectrum
- Raw MSP output downloaded from fioRa
- Standard MGF output
- A quick stick-spectrum PNG visualization
- Simple defaults without manually preparing a CSV
Inputs
- SMILES string (required)
--name(optional, default:mol1)--precursor(optional, default:[M+H]+)--ce(optional, default:20)--instrument(optional, default:HCD)--output-stem(optional, default:predicted_ms)--plot / --no-plot(optional, default: plot enabled)--show-title / --no-show-title(optional, default: no title on the plot)
Outputs
/tmp/chemclaw/predicted_ms.msp/tmp/chemclaw/predicted_ms.mgf/tmp/chemclaw/predicted_ms.png
If --output-stem mol1 is used, the outputs become:
/tmp/chemclaw/mol1.msp/tmp/chemclaw/mol1.mgf/tmp/chemclaw/mol1.png
Agent response
When returning results to the user, include the generated spectrum image directly in the response when a PNG was created.
Notes
- This skill calls the fioRa online app at
https://apps.bam.de/shn01/fioRa/. - The site is a Shiny web app, so this skill uses Playwright browser automation instead of a simple REST request.
- Network access is required.
New environment (from zero)
conda create -n fiora-online python=3.10 pip -y
conda activate fiora-online
cd ms-spectra-simulation
python -m pip install -r requirements.txt
python -m playwright install chromium
python ms_spectra_simulation.py CCO
- Run the script in an environment with browser access.
How to use (environment already prepared)
Fastest default run
cd ms-spectra-simulation
python ms_spectra_simulation.py CCO
This uses:
name=mol1precursor=[M+H]+ce=20instrument=HCD- plot enabled
- plot title hidden
- fioRa online backend
Custom metadata
cd ms-spectra-simulation
python ms_spectra_simulation.py "CCO" \
--name mol1 \
--precursor "[M+H]+" \
--ce 20 \
--instrument HCD
Keep the spectrum but skip PNG
cd ms-spectra-simulation
python ms_spectra_simulation.py "CCO" --no-plot
Show the title on the figure
cd ms-spectra-simulation
python ms_spectra_simulation.py "CCO" --show-title
Related skills
More from internscience/chemclaw
literature-parsing
将 PDF 文献转换为 Markdown 文件,并提取所有图表图片。使用 MinerU (opendatalab) 进行工业级高质量解析。
13molecular_properties_predictor
预测小分子多种物化性质(沸点、折射率、密度、黏度、表面张力等),当前已真实接入 bamboo_mixer 单分子物性模型后端。
13adme-prediction
ADME 性质预测工具。预测分子的吸收、分布、代谢、排泄性质,包括 Caco-2 通透性、PAMPA、HIA、Pgp 抑制、生物利用度、亲脂性等。使用 Morgan 指纹 + Random Forest/XGBoost。当用户提到 ADME 预测、药物性质、通透性、吸收、代谢等时触发。
13reaction-data-extraction
从 PDF 文献中提取化学反应数据,特别是反应条件优化信息。支持提取反应物、产物、催化剂、溶剂、温度、时间、产率等,并输出结构化 CSV 文件。使用 MinerU + NLP + 规则匹配进行精确提取。
13mol-3d-viewer
将 SMILES 或化学名称转换为分子 3D 结构。支持生成 SDF 文件、3D 分子图片和可交互 HTML 网页(可旋转观察)。
13mineru-pdf-converter
|
13