Molecular formula enumeration from observed mass spectrometry
This pnpm workspace contains the Vite + TypeScript + Svelte front-end-only FormulaM app in apps/web/ and its validated scientific source data in packages/mass-data/. The app applies a simplified bare-ion exact-mass rule:
ion_mass = candidate_formula_mass - charge * electron_mass
candidate_mz = ion_mass / abs(charge)
The input mass is always observed
Workspace scripts are defined in package.json, and the Web package scripts and dependencies are defined in apps/web/package.json.
pnpm install
pnpm run devThe production build is written to apps/web/dist/.
The full automated check order is defined in .github/workflows/test.yml.
Run pnpm run validate:data for the focused mass-data integrity suite.
FormulaM enumerates candidate formulae from exact-mass constraints. A returned formula is not a confirmed molecular identity or structure. Confirm candidates with isotope-pattern agreement, MS/MS fragmentation, retention time, ionization behavior, sample context, and chemical plausibility.