read_mzml
Read the spectra of a PSI mzML run file: each spectrum's native id, MS level, centroid or profile, scan start time and unit, base peak, total ion current, precursor (selected ion m/z, charge, intensity, isolation window) and peak arrays, interpreted as pyteomics reads mzML (validated on every spectrum of three real runs). An MS/MS spectrum it returns is what score_spectrum takes as mz, intensity and precursorCharge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | return only the spectrum with this native id; empty returns every spectrum. | |
| text | Yes | the mzML file's contents. | |
| _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. | |
| msLevel | No | return only spectra at this MS level (0 returns every level). | |
| _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: id, msLevel, scanStartTime, precursors, mz, intensity |