Duaer

Get started

Match spectra in MassBank with Duaer

In Duaer, match MS/MS peaks, an exact mass, or an InChIKey against MassBank. One successful search uses 1 credit.

What you get

MassBank spectra in Duaer data uses 1 credit per successful search, including a search with no match.

Peak searches return a cosine score.

To work an unknown feature step by step, see Annotate an unknown feature with Duaer.

Search on the canvas

  1. Open the node creator, pick Duaer Data → MassBank spectra.
  2. Fill Peaks (mz:intensity pairs separated by spaces), Exact mass, or InChIKey.
  3. Optional: Cosine threshold, Mass tolerance (Da), Ion Mode.
  4. Limit defaults to 10, max 20. Execute.

A successful search uses 1 credit. Empty input or a failed source uses 0.

Call the API

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

The call skill is below.

Call skill

The skill for calling this data.

---
name: duaer-massbank
description: >-
  Duaer MassBank spectra. Match MS/MS peaks, an exact mass, or an InChIKey against MassBank spectra.
  One successful search uses 1 Duaer credit.
---

# Duaer MassBank spectra

Match MS/MS peaks, an exact mass, or an InChIKey against MassBank spectra. Data comes from MassBank.

## When to use

- Match an MS/MS spectrum against MassBank reference spectra.
- Find reference spectra by exact mass or InChIKey.

## When not to use

- MoNA reference spectra. Use https://skills.duaer.com/mona.md.

## Call

`GET https://api.duaer.com/v1/data/massbank?peaks=59.0138:715%2089.0251:999&ionMode=NEGATIVE&limit=10`

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

Provide `peaks`, `mass`, or `inchikey` (used in that order).

- `peaks` — MS/MS peaks as `mz:intensity` pairs separated by spaces. One `mz intensity` pair per line also works.
- `threshold` — Optional. Minimum cosine similarity for `peaks`, from 0 to 1. Default 0.7.
- `mass` — neutral monoisotopic mass, such as 180.0634.
- `tolerance` — Optional. Mass tolerance in Da for `mass`. Default 0.01.
- `inchikey` — reference records for one compound, such as a https://skills.duaer.com/mass-candidates.md result.
- `ionMode` — Optional. `POSITIVE` or `NEGATIVE`.
- `limit` — Optional. From 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/massbank?peaks=59.0138:715%2089.0251:999&ionMode=NEGATIVE&limit=10` — negative mode match for two peaks.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, `summary`, `accession`, `compound`, `formula`, `mass`, `inchikey`, `ionMode`, `instrument`, and `score` (cosine, peak searches only).

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/mona.md — Duaer MoNA spectra
- https://skills.duaer.com/mass-candidates.md — Duaer mass candidates
- https://skills.duaer.com/spectrum.md — Duaer spectrum by USI

Questions

How many credits does a MassBank spectra search use in Duaer?

One successful search uses 1 credit, including a search with no match. Empty input or a failed source uses 0.

In this section