score_spectrum
Score how well an MS/MS spectrum matches a peptide with the X!Tandem HyperScore (validated against OpenMS): b and y ions are generated for the peptide, matched to the observed peaks within a tolerance, and scored as ln(1 + dot product) + ln(matched b!) + ln(matched y!).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mz | Yes | observed peak m/z values. | |
| _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. | |
| peptide | Yes | candidate peptide, one-letter residues with optional ProForma tags (a signed mass, a Unimod name, or UNIMOD:accession). | |
| _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. | |
| intensity | Yes | observed peak intensities, one per m/z. | |
| tolerance | No | fragment match tolerance. | |
| toleranceUnit | No | unit of the tolerance. | Da |
| precursorCharge | No | precursor charge; fragments are generated at charges 1 to max(1, charge - 1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score | Yes | HyperScore (natural log scale; higher is a better match) | |
| detail | Yes | matched b and y ion counts, mean match error, theoretical peak count | |
| matches | Yes | one row per matched ion: ion name, theoretical and observed m/z, intensity, error in the tolerance unit |