A desktop app for the ProSE search engine of OpenMS: Tauri 2 around the OS webview, the
native ProSE command-line tool as the only native code, and the screens of the ProSE web app (same theme,
shadcn-svelte components and colours). Design and plan: docs/superpowers/.
The packages come from CI (.github/workflows/desktop.yml); they bundle ProSE with its libraries and the PeptDeep
models (native/README.md). Everything runs on the computer: the app makes no network connection except when you ask for one: a proteome download from UniProt, with an organism-name search at NCBI Taxonomy (New search › Protein database), and links you open from Help (ProSE's
update check is off, native/README.md).
macOS 15 or later, Apple silicon (arm64; Intel Macs are not supported): the .dmg. Drag ProSE to
Applications, then, once, in Terminal:
xattr -dr com.apple.quarantine /Applications/ProSE.appThe app is signed ad hoc only (no Developer ID, not notarized), so macOS refuses to open it until then. The other way: open it once (it is refused), then System Settings > Privacy & Security > "Open Anyway".
Windows 10 (1903 or later) or 11, x64: the installer ProSE_<version>_x64-setup.exe, for the current user,
without administrator rights. It is not signed: SmartScreen asks once ("More info" > "Run anyway"). The app uses
Microsoft Edge WebView2, which Windows 11 and an updated Windows 10 have (the installer fetches it otherwise).
Linux x64 or arm64 (64-bit ARM: for example a Raspberry Pi 5 with a 64-bit system, ARM servers, ARM laptops),
Ubuntu 22.04 or later (and other distributions with glibc 2.35 or later): the AppImage runs as it is
(chmod +x ProSE_<version>_amd64.AppImage; on arm64 ProSE_<version>_aarch64.AppImage), or the .deb installs
with sudo apt install ./ProSE_<version>_amd64.deb (on arm64 ProSE_<version>_arm64.deb; package prose). The
AppImage needs one library of the system: OpenGL ES, libGLESv2.so.2, which desktop
installations have (the .deb pulls it in with WebKitGTK). Without it the app exits at once with exit code 127
("Couldn't open libGLESv2.so.2"). Install it with sudo apt install libgles2 (Ubuntu, Debian) or sudo dnf install libglvnd-gles (Fedora).
- A 64-bit processor and system as above; the packages take about 200 MB (ProSE and its libraries 173 MB, the PeptDeep models among them).
- Memory as the search needs it: ProSE has no limit of its own. The example takes well under 1 GB; a semi-tryptic
TMT search of a 78 MB mzML against the human reference proteome (no database chunks) peaked at 7.1 GB. Larger
searches can split the database (New search › Search settings › Advanced settings › Database chunk size,
database:chunk_size). The results are read into the app's page: see "Known limitations". - Disk: each search keeps ProSE's QPX outputs, most of it the spectra of the PSMs (the QPX mz view of each input: the 100 most intense peaks per 100 m/z and every annotated peak): about 3.6 MB per thousand PSMs of an Orbitrap HCD run with ~1,100 peaks per MS2 spectrum (2.8 MB the input's mz view, 0.5 MB its psm file with PeptDeep's predictions, 0.3 MB the merged psm file of all inputs), under 1 MB for the example. For many or large inputs, choose a searches folder on a drive with room before searching ("Where the data is").
- The searches (History): a folder per search,
<id>/: ProSE's outputs, the recordsearch.json,proteins.fasta(the proteins of the result, so that the search opens without its database),prose.ini(the parameters ProSE was given; ProSE's defaults of the recorded version for the rest),command.txt(its command line, the paths as placeholders: "Copy command line" in Overview and "Command line" in History copy it) and links to the inputs. They are in the searches folder, which New search and History show under their title: by defaultsearches/in the app's data folder, which is- Linux:
~/.local/share/org.openms.prose.desktop/($XDG_DATA_HOME) - macOS:
~/Library/Application Support/org.openms.prose.desktop/ - Windows:
%APPDATA%\org.openms.prose.desktop\(on the system drive, C:)
- Linux:
- Another searches folder (e.g. on a drive with more room, before searching many files): "Change…" beside the
folder, in New search or History, and choose an empty folder (the dialog can make a new one) or one that holds
ProSE's searches only. The searches to come, and results archives opened, go there; "Use the default folder" goes
back. The searches saved so far stay where they are, and History keeps listing them (with their size, and Delete to
free the space). To move them as well, close ProSE and move their folders into the new folder: History finds them
there. ProSE keeps nothing but its searches in that folder, and never lists, deletes or cleans up anything else in
it (
src-tauri/src/location.rs; the choice is kept in the app's data folder,searches-folder.json). - The log of the last search that failed:
logs/last-failure.logthere (the error names it). - Proteomes downloaded from UniProt (New search › Protein database):
databases/UP…fastathere. - Presets: the app's webview keeps them, on this computer.
- The recent setup files (File › Open Recent):
recent-setups.jsonthere (paths only). - The spectrum files (mzML, mzPeak, Thermo .raw, Bruker .d) and the FASTA are read where they are: never copied, and nothing is written beside them. Deleting a search in History removes its folder; uninstalling leaves the data folder, which can be deleted by hand.
Results has a tab per level, Proteins, Peptides and PSMs (beside Overview, with the key figures, Samples and QC). The
tabs and the filter row of a table stay where they are, whatever is open (src/views/Results.svelte):
- A click on a row opens its detail next to the table: a protein's panel (coverage, peptides, PSMs) and a peptide's detail (its proteins, its PSMs per sample, its PSMs) beside the table, a PSM's spectrum under the PSM table. The arrow keys go through the rows with the detail following; Prev and Next of the detail do the same and say where the row is ("3 of 132"). The line between the table and the detail can be dragged (or moved with the arrow keys; a double click gives the default); the sizes are kept. Esc closes the detail.
- Enter on the open row, or a double click, goes on to the level below, narrowed to that protein or peptide (as do "Peptides of … ›" and "PSMs of … ›" in the detail). The narrowing stands as a chip at the start of the filter row ("Protein: …", "Peptide: …") and on the tab ("4 of 132"), and is one for the Peptides and the PSMs table. A click on a chip takes it away: the table shows all rows again and what is open stays open, so Prev and Next then go through all PSMs. Backspace, or "Up to peptide … · protein …" in the PSM view, goes up a level.
- The PSM view fits the height under the PSM table and never scrolls: the spectrum takes what is left, and in a low window the fragment mass errors give way to it. "Features · Fragments" shows the PSM's features and its ion table beside the spectrum (by itself only in a window wide enough that the spectrum keeps the labels of its ions).
In the PSM view, Accept and Reject (keys A and R, also while the PSM table has the focus; pressing again takes the mark away) mark the open PSM, and Note keeps an optional line of text on it (saved when the field loses the focus or on Enter). The PSM table shows the mark in its Curation column (the note in its Note column, under Columns) and filters by it (Curated, Accepted, Rejected, Not curated); with the table at Not curated, marking a PSM goes on to the next one. Mark shown accepts, rejects or unmarks every PSM the table shows (e.g. all PSMs of a peptide after "PSMs of this peptide ›"), with Undo. The Peptides table counts the accepted (✓) and rejected (✗) PSMs of each peptide and filters by them (With an accepted PSM, ...).
Export › TSV (current view) saves the table as shown (Export › CSV or Excel for spreadsheets), and Export › Curated PSMs (TSV)
every marked or noted PSM, whatever the filters, with its mark and note. The marks and notes are saved in the
search's folder as curation.json (src/lib/results/curation.ts: each PSM by its file, native ID, peptide and
charge), so they stay with the search in History and go with its results archive.
The desktop app has native menus (Tauri's menu API, src-tauri/src/menu.rs): on macOS the menu bar with the app menu
(About ProSE, Services, Hide, Hide Others, Show All, Quit); on Windows and Linux the same menus on the window, with Ctrl
for ⌘, About under Help and Exit under File. File: New Search ⌘N (a new, unsaved setup: the window's setup file is let go,
so the next Save asks for one, and the form is cleared as Start over clears it, with its Undo; unsaved changes to an
opened setup file are asked about first), Open Setup… ⌘O, Open Recent (the last ten
setup files, kept in recent-setups.json of the app's data folder), Save Setup ⌘S, Save Setup As… ⇧⌘S, Open QPX
Folder…, Import Results Archive (.prose)…, Export ▸ (CSV, Excel, idXML, Methods section, Results archive; only with a result open,
CSV and Excel only on a table), Close Window ⌘W. Edit: the system's Undo, Redo, Cut, Copy, Paste, Select All (Linux's menus have no predefined Undo and Redo: there Edit has none, and Window's Minimize and Maximize are the app's own).
View: New Search, Results, History, Help (⇧⌘1–4), Theme ▸ System/Light/Dark, full screen. Window: Minimize,
Zoom. Help: ProSE Help, Troubleshooting, Keyboard Shortcuts (⌘/), Report an Issue (the link opens in
the browser). A click on an item is the event menu://action to the page (src/lib/menu.svelte.ts), which does what
its own buttons do; the page's ⇧⌘1–4 handler leaves those keys to the menu in the desktop app and keeps them in the
browser. Close Window and Exit close as the window's close button does: a running search, or unsaved changes to the opened
setup (set_setup_unsaved, CloseGuard.svelte), asks first.
A search setup is what New search holds (the files, their design, the database and the settings) and the state of
the views as one JSON file (format and fields:
src/lib/setup/setup.ts; schema 1). File › Save Setup (or Save setup… in New search) writes it where you
choose (the save dialog is the Rust side's, src-tauri/src/setup_file.rs; Save writes the same file again, Save As
asks; a name chosen without .prose-setup.json gets it, and Save asks before it replaces a file of that name);
Open Setup, Open Recent or Open setup… in New search reads it (only .prose-setup.json, at most 4 MB), and asks
first when the opened setup file has unsaved changes; a file that does not read as one changes nothing. It holds:
format"prose-setup",schema1,savedAt,appVersion,proseVersion,nameinputs: each spectrum file's absolutepath,nameandsize(bytes), and its design fields (condition,replicate,fraction,techReplicate) as entereddatabase(path,name,size,proteome: the UniProt proteome id of a downloaded FASTA),contaminants,decoyspresetIdandparameters(every ProSESearch:parameter the form sets),rescore,peptdeep,threadssearch(id,name: the History search it ran as, once it has run)ui: the view, the Help page, the settings' toggles, and for Results the tab and per table (proteins, peptides, PSMs) the filters (with what the table is narrowed to), sort, hidden columns and selected row, the open protein, peptide and PSM
Opening one fills New search (SearchForm.restoreSearch) and, when History has its search, opens it in Results
with that state. Files that are gone or have another size, a missing database or preset, and a search History does
not have are named in New search's notices; nothing starts by itself, but a UniProt proteome (database.proteome)
that is no longer on disk is downloaded again and chosen (as Protein database › Download does, its progress there; if
the download fails, the notices say to download it again). A newer schema is refused. A search setup is not a
results archive: it holds paths and settings, no results.
Export › Results archive (.prose) writes a search as one zip, which History › Import results archive opens on
another computer (src/lib/history/history.ts, src-tauri/src/archive.rs).
It holds the search's folder as the app keeps it: ProSE's outputs (the QPX Parquet files, the idXML, the
open-search tables), search.json, proteins.fasta, curation.json (if PSMs were curated), and inputs.json with the
files' names only. Left out are ProSE's log, the database copy with the contaminants, database.json (the path of a
database searched without them) and database-source.json (the path of one searched with them, for Re-run). ProSE's
outputs name folders of the computer that searched (e.g. the database's path and all of ProSE's
parameters in the QPX provenance view, the input and database paths in the idXML), and the archive carries them as they are: share it
where that is fine. A search saved by an earlier version of the app (with summary.yaml and OpenMS' own Parquet
files, or without the QPX run and provenance views) does not open in this one: History and Import results archive say so.
An archive has no size limit: it is written to disk entry by entry, and opened the same way, each file unpacked from the archive straight into the new search's folder with its size and checksum checked, so nothing of it is held in memory (History shows how far the unpacking is). The archive of a search of up to 3 GB (and 65,535 files) is a plain zip, which every version of the app opens; a larger one is a zip64, which this version and later ones open (app 0.5.0 and earlier, which held an archive in memory, do not). Any zip tool lists and unpacks both.
-
Large results. The page keeps a search's PSM rows in memory: a dozen numbers and the native ID of each PSM, in typed arrays, without an object per row. They are read from
quantms.psm.parqueta batch of row groups at a time, and only the columns the tables are made of (src/lib/results/read.ts): the file is never in memory as a whole, and what is decoded of a batch is let go before the next. What belongs to one PSM is read when it is opened, from its input's psm file and mz view (one row group of 256, the last four kept): its peaks, PeptDeep's prediction, and its features (the ~35 values Percolator saw, which would be most of a row). The computer's memory bounds the largest result that opens. Measured in the app (e2e/large.spec.ts; WebKitGTK 2.52 on Linux, 4 cores) with saved searches of one input made of the rows of the web app's example repeated, ~30 scores per PSM, in row groups of 100,000 rows (the files hold the spectra of the original search only, which are not read at open):PSMs opens in peak memory of the web process app 0.5.0, the same machine 1,000,000 6 s 1.1 GB 11 s, 1.9 GB 2,000,000 12 s 1.1 GB 34 s, 3.1 GB Larger results were not measured with this version (app 0.5.0 took 2.1 GB per million PSMs, up to 8 million with 16.7 GB, on a 128-core machine). Two things make a real search take more than these files. ProSE writes
quantms.psm.parquetin row groups of about a million rows, and a row group is decoded as a whole: about 0.7 GB more while one is read, whatever the size of the result (measured with the reader in a WebKitGTK page, batches of a million rows: a peak of 1.6 GB at one million PSMs, 1.7 GB at two). And the repeated rows share their native-ID strings and have few distinct peptides; a real search has a string per spectrum and a row per peptide (estimated: about 0.1 GB more per million PSMs). Opening the first PSM of an input also maps its native IDs to the spectra for a moment. The PSM rows take about 0.3 MB of disk per thousand PSMs, the spectra 2.8 MB (not read at open). On Windows the webview (WebView2) runs Chromium's JavaScript engine and on macOS WebKit, as on Linux; neither was measured with this version. -
macOS: Apple silicon only; not signed with a Developer ID (see Install).
-
Windows: two inputs of one name are searched together only when they are on the drive of the app's data.
"Try the example" in New search loads OpenMS' example run Ecoli_MS2_small.mzML (E. coli, LTQ Orbitrap XL, CID,
139 MS2 spectra, 1.2 MB) twice, as two replicates of one condition, and the 4,136 E. coli K-12 proteins (targets
only: ProSE adds the decoys, the app the cRAP contaminants). The settings are the default preset (PSM FDR 1 %) with a
fragment tolerance of 0.5 Da for the ion-trap fragments and the protein FDR off: the run is too small for a
protein FDR, so its proteins are listed without one (Overview says "not applied"). Leaving the
example (other files or another database, Remove all, Start over) gives these two settings back to the preset's, unless
you changed them. The search takes a few seconds and finds 55 target PSMs in each replicate (41 peptides, 41
proteins), with a median precursor error of 4.1 ppm; their q-value is 0.3 %, and a PSM FDR of 2 % finds 77.
(Until app 0.6 the example searched at 2 %, when its PSMs could not pass 1 %, and found 66 per replicate: since
OpenMS #10804 the tool also searches a second 13C peak, precursor:isotope_error_min −2, and in a run this small the
candidates that adds leave fewer PSMs within 1 %. With −1, set in "All parameters", it finds 62 at 1 % and 77 at
2 %.) The run also has too few PSMs for Percolator's full model: Percolator falls back to its best single feature
(Overview says why).
ProSE desktop is under OpenMS' licence (BSD-3-Clause, LICENSE). The packages list everything they bundle, with its
licence, in resources/notices/THIRD-PARTY-NOTICES.txt; the ProSE tool's libraries come with theirs in
resources/prose/share/OpenMS/LICENSES. The example is OpenMS example data. OpenMS logo © OpenMS Inc., used with
permission (the OpenMS Assets License, src/assets/logo).
Everything runs inside the user-space toolchain of native/scripts/in-env.sh (Rust, the WebKitGTK 4.1 sysroot,
Node 24.19.0, tauri-driver); see native/README.md for how it is built and where it lives (PROSE_TOOLS).
npm install
native/scripts/in-env.sh npm run tauri:build:debug # debug binary, no bundle: src-tauri/target/debug/prose-desktop
native/scripts/in-env.sh npm run check # svelte-check and tsc
native/scripts/in-env.sh e2e/run.sh [e2e/smoke.spec.ts] # WebdriverIO via tauri-driver + WebKitWebDriver, under xvfb-run
native/scripts/in-env.sh e2e/run.sh e2e/screens.shot.ts # screenshots into docs/screensThe OpenMS the app's ProSE is built from is pinned in native/OPENMS_COMMIT (a full commit hash) and
native/OPENMS_REPO (its repository, owner/name): develop of OpenMS/OpenMS. To move the pin, build and test the
new commit and make the parameter table and the fixtures again (native/README.md, "Moving the pin to another
repository or commit").
Packages and their smoke test (needs the OpenMS build of native/scripts/build-openms.sh):
native/scripts/bundle-prose.sh <openms>/build src-tauri/resources/prose # <openms>: the OpenMS checkout
native/scripts/package-linux.sh # .deb and AppImage
native/scripts/smoke-appimage.sh src-tauri/target/release/bundle/appimage/ProSE_0.2.0_amd64.AppImage \
--hide-openms <openms>/buildThe browser UI tests (e2e-web/, Playwright with Chromium; any OS, no Tauri, CI workflow ui) drive the page
against the Vite dev server in its browser mode. In dev, ?fixture=<name> (src/lib/dev/fixture.ts, not in the
build) opens a result of src/lib/results/fixtures through an in-memory History, e.g.
http://localhost:1420/?fixture=example#/results. The theme tests write full-page screenshots of the main
screens, light and dark, to e2e-web/screenshots/ (gitignored). Beyond rendering, oracle.spec.ts checks the numbers
Results shows against the same numbers recomputed from the fixture's QPX files (e2e-web/oracle/), and
metamorphic.spec.ts relations that must hold whatever the numbers are (a tighter cutoff never shows more rows,
filters commute, Re-run brings back the settings).
npx playwright install chromium # once
npm run test:ui # starts Vite on port 5179 itselfe2e/run.sh builds the debug binary first (E2E_SKIP_BUILD=1 skips that) and enters in-env.sh itself if it
is not in it.
The specs that run searches need the tool: PROSE_BIN=/path/to/ProSE (without it they skip; e2e/archive.spec.ts, a
results archive written and opened by the app from a saved search of the reader's fixtures, needs none); the bundled one,
src-tauri/resources/prose/bin/ProSE, is the one with PeptDeep (its build manifest says so, see native/README.md). Each spec file
gets an app of its own with its own data folder (XDG_DATA_HOME, made per run, removed at its end), and
tauri-driver runs for the whole run in a process group of its own; port 4444 must be free (a leftover
tauri-driver stops the run with a message). Debug builds read PROSE_TEST_DIALOG_PATH in place of the
system's save and open dialogs (e2e/app.sh sets it), since WebDriver cannot reach a dialog. The large search
(e2e/big.spec.ts) runs only with PROSE_BIG=1; it logs its time and ProSE's peak memory. The measurement of
large results (e2e/large.spec.ts, "Known limitations") runs only with PROSE_LARGE_DIR, the folder of the
synthetic searches that src/lib/results/read.test.ts writes on demand (both headers say how).
Host tools of the e2e specs: xvfb-run, and for closing the window ends ProSE (a window-manager close request
sent to the app's window) xwininfo, xprop and python3 with libX11 (e2e/close-window.py); without them that
test skips with a message. Run one test of a spec with
native/scripts/in-env.sh e2e/run.sh e2e/paths.spec.ts --mochaOpts.grep 'mzML.gz'.