Skip to main content

ms-spectra-simulation

Predict and visualize MS/MS spectra from a single SMILES using the fioRa online app. Use when the user wants a mass spectrum, MGF/MSP output, or a plotted stick spectrum from SMILES, with optional custom Name, precursor type, collision energy, and instrument settings.

Informações da origem

Repositório
InternScience/ChemClaw
Última atividade na origem
27 de março de 2026 às 02:07
Idioma detectado do SKILL.md
inglês
Estrelas
53
Forks
13

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Explorador de arquivos
88 arquivos

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
ms-spectra-simulation
description
Predict and visualize MS/MS spectra from a single SMILES using the fioRa online app. Use when the user wants a mass spectrum, MGF/MSP output, or a plotted stick spectrum from SMILES, with optional custom Name, precursor type, collision energy, and instrument settings.
# 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) ```bash 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 ```bash cd ms-spectra-simulation python ms_spectra_simulation.py CCO ``` This uses: - `name=mol1` - `precursor=[M+H]+` - `ce=20` - `instrument=HCD` - plot enabled - plot title hidden - fioRa online backend ### Custom metadata ```bash 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 ```bash cd ms-spectra-simulation python ms_spectra_simulation.py "CCO" --no-plot ``` ### Show the title on the figure ```bash cd ms-spectra-simulation python ms_spectra_simulation.py "CCO" --show-title ```
Ver no GitHub