Papers › MIST-CF: Chemical formula inference from tandem mass spectra

MIST-CF: Chemical formula inference from tandem mass spectra

17 Jul 2023arXiv:2307.08240archive 2025-07-28

Samuel Goldman, Jiayi Xin, Joules Provenzano, Connor W. Coley

Chemical formula annotation for tandem mass spectrometry (MS/MS) data is the first step toward structurally elucidating unknown metabolites. While great strides have been made toward solving this problem, the current state-of-the-art method depends on time-intensive, proprietary, and expert-parameterized fragmentation tree construction and scoring. In this work we extend our previous spectrum Transformer methodology into an energy based modeling framework, MIST-CF, for learning to rank chemical formula and adduct assignments given an unannotated MS/MS spectrum. Importantly, MIST-CF learns in a data dependent fashion using a Formula Transformer neural network architecture and circumvents the need for fragmentation tree construction. We train and evaluate our model on a large open-access database, showing an absolute improvement of 10% top 1 accuracy over other neural network architectures. We further validate our approach on the CASMI2022 challenge dataset, achieving nearly equivalent performance to the winning entry within the positive mode category without any manual curation or post-processing of our results. These results demonstrate an exciting strategy to more powerfully leverage MS2 fragment peaks for predicting MS1 precursor chemical formula with data driven learning.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2307.08240")

Code

Syntology Ran 14 of 17 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · violated contract; 13 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

samgoldman97/mist-cf officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 14 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
13ran
3unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from samgoldman97/mist-cf. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

clamped_log_np samgoldman97/mist-cf/src/mist_cf/common/misc_utils.py official repository ran fingerprinted MIT (permissive) · 3d86f40324ba0a2c · report
cm2inch samgoldman97/mist-cf/src/mist_cf/common/plot_utils.py official repository ran · violated contract fingerprinted MIT (permissive) · a9cd3385008cabd7 · report
extract_ar samgoldman97/mist-cf/src/mist_cf/fast_form_score/fast_form_data.py official repository ran fingerprinted MIT (permissive) · bb4baa6a14cd5d15 · report
get_data_dir samgoldman97/mist-cf/src/mist_cf/common/misc_utils.py official repository ran MIT (permissive) · 2b795c71fe9f09a2 · report
get_instr_idx samgoldman97/mist-cf/src/mist_cf/common/chem_utils.py official repository ran MIT (permissive) · 7a4efff97c96f932 · report
get_instr_tol samgoldman97/mist-cf/src/mist_cf/common/chem_utils.py official repository ran MIT (permissive) · c8defd5c0d9ea9f0 · report
get_ion_idx samgoldman97/mist-cf/src/mist_cf/common/chem_utils.py official repository ran MIT (permissive) · 6c5e73cb477c83f7 · report
get_rounded_masses samgoldman97/mist-cf/src/mist_cf/decomp/sirius_decomp.py official repository ran fingerprinted MIT (permissive) · 7ec3536d0ceb8542 · report
get_splits samgoldman97/mist-cf/src/mist_cf/common/splitter.py official repository ran MIT (permissive) · 4f7b84bcfae202f9 · report
max_thresh_spec samgoldman97/mist-cf/src/mist_cf/common/parse_utils.py official repository ran MIT (permissive) · ec84a9ba70c311b1 · report
parse_element_str samgoldman97/mist-cf/src/mist_cf/decomp/sirius_decomp.py official repository ran fingerprinted MIT (permissive) · b6896b30b438c83d · report
process_spec_file samgoldman97/mist-cf/src/mist_cf/common/parse_utils.py official repository ran MIT (permissive) · a52ac883c5ef6b19 · report
random_split samgoldman97/mist-cf/src/mist_cf/common/splitter.py official repository ran MIT (permissive) · 1ce22fc7117ae7bd · report
unravel_index samgoldman97/mist-cf/src/mist_cf/common/misc_utils.py official repository ran MIT (permissive) · 3338dabc50f8f122 · report
chunked_parallel samgoldman97/mist-cf/src/mist_cf/common/parallel_utils.py official repository unverified MIT (permissive) · 6bf05accd83a54c0 · report
process_spec_file_unbinned samgoldman97/mist-cf/src/mist_cf/common/parse_utils.py official repository unverified MIT (permissive) · 6640791d28598124 · report
simple_parallel samgoldman97/mist-cf/src/mist_cf/common/parallel_utils.py official repository unverified MIT (permissive) · 4d717f8f5be31876 · report

Tasks

Learning-To-Rank

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutFragmentationLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections