Duaer

入门

在 Duaer 里按 USI 取谱

在 Duaer 里按 USI 取公开质谱的峰列表。一次成功查询用 1 额度。

能拿到什么

Duaer 数据里的「Spectrum by USI」一次成功查询 1 额度,查不到结果也算一次。

结果里的峰列表可直接交给 MassBank 谱图或 MASST。

逐步处理未知特征见 用 Duaer 注释未知特征。

在画布里检索

  1. 打开节点创建器,选 Duaer 数据 → Spectrum by USI。
  2. 填 USI(以 mzspec: 开头)。
  3. Limit 默认 10,最大 20。执行。

成功扣 1 额度;输入为空或来源失败不扣。

用 API 调用

  • GET https://api.duaer.com/v1/data/spectrum?...
  • Authorization: Bearer <Duaer key>

下方是英文技能。

调用技能(英文)

调用这项数据的技能。

---
name: duaer-spectrum
description: >-
  Duaer spectrum by USI. Fetch the peaks of a public mass spectrum by its USI.
  One successful search uses 1 Duaer credit.
---

# Duaer spectrum by USI

Fetch the peaks of a public mass spectrum by its USI. Data comes from GNPS USI.

## When to use

- Fetch the peaks of a public spectrum by USI.
- Get peaks to pass to a spectrum match.

## When not to use

- Find datasets that contain a spectrum. Use https://skills.duaer.com/masst.md.

## Call

`GET https://api.duaer.com/v1/data/spectrum?usi=mzspec:GNPS:GNPS-LIBRARY:accession:CCMSLIB00005435737`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

- `usi` — required. A USI that starts with `mzspec:` (GNPS, MassIVE, MetaboLights, and other public repositories).

## Examples

- `GET https://api.duaer.com/v1/data/spectrum?usi=mzspec:GNPS:GNPS-LIBRARY:accession:CCMSLIB00005435737` — peaks of one GNPS library spectrum.

## Result

The response is `{ "items": [...] }`. One item with `source`, `title`, `url` (spectrum viewer), `summary`, `usi`, `precursorMz`, `charge`, `peakCount`, `peaks` (`mz:intensity` pairs), and `splash`.

Pass `peaks` to https://skills.duaer.com/massbank.md, or the `usi` to https://skills.duaer.com/masst.md.
To work an unannotated feature step by step, follow https://skills.duaer.com/metabolic-dark-matter.md.

Fields without a value are empty strings or left out.

## Credits

A successful search uses 1 credit, even when it finds nothing.
Wrong input or a missing search field returns 400 with a message and uses 0.
A failed upstream search returns 503 and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/metabolic-dark-matter.md — Duaer: annotate an unknown feature (metabolic dark matter)
- https://skills.duaer.com/massbank.md — Duaer MassBank spectra
- https://skills.duaer.com/masst.md — Duaer MASST

常见问题

Duaer 的 Spectrum by USI 检索扣多少额度?

一次成功扣 1 额度,查不到结果也算一次;输入为空或来源失败不扣。

同组