read_mgf
Read the MS/MS spectra of a Mascot Generic Format (MGF) file: each spectrum's title, precursor m/z, precursor intensity, declared charge states and peak list, interpreted as pyteomics reads MGF (validated on every spectrum of PXD000001).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | the MGF file's contents. | |
| title | No | return only the spectrum with this title; empty returns every spectrum. | |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | spectra returned | |
| spectra | Yes | one row per spectrum: title, precursorMz, precursorIntensity, charges, mz, intensity |