Skip to content

Philosopher 'filter' crashes with 'fatal error: runtime: out of memory' on large metaproteomic database (2.5M proteins, 83 mzML files) #565

Open

Description

@martinastramacci

Description

I am running FragPipe v24.0 in headless mode on an HPC cluster (CINECA Leonardo, Italy) for a metaproteomic study (gut microbiome + human host). The pipeline runs to apparent completion (Slurm reports ExitCode 0), but internally Philosopher filter crashes with a Go runtime out-of-memory fatal error during the first filter --sequential call, immediately after ProteinProphet finishes successfully. This causes FragPipe to cancel the remaining 251 downstream tasks (report, IonQuant, LFQ, etc.), so no combined_protein.tsv or any final output is produced.

Environment

Item Detail
HPC system CINECA Leonardo
Node type dcgp_usr_prod — 112 CPU cores , 512 GB RAM
SLURM allocation --cpus-per-task=112 --mem=480G --gres=tmpfs:500G
FragPipe RAM flag --ram 460
OS Linux
Java OpenJDK 11.0.20.1 (Eclipse Adoptium)
FragPipe 24.0
MSFragger 4.4.1
Philosopher 5.1.3-RC9
Percolator 3.7.1
MSBooster 1.4.14
IonQuant 1.11.20

Dataset & Database Details

FASTA database

File Size
db_ridotto_closed_preliminare_decoys_contam.fasta.fas (target + rev_ decoys + cRAP contaminants, pre-appended) 2.4 GB

From the log — ProteinProphet processed 4,563,954 total peptides and 2,549,526 degenerate proteins (target ≈ ~1.16M + decoy ≈ ~1.16M + contaminants). Database size reported by ProteinProphet: db_size=4,589,678,523 bytes (~4.3 GB when loaded in memory).

The database.append-decoys=false and database.add-contaminants=false flags are set because decoys (rev_ prefix) and cRAP contaminants are already included in the FASTA.

mzML files (DDA, Orbitrap)

Group # Files Location
Patients (C-prefix, COVID-19 positive) 42 mzML file_mzml_MSCONVERTER/
Controls (N-prefix, healthy) 41 mzML controlli_mzml/
Total 83 mzML —

Each individual mzML file is approximately 1.5–2.5 GB. Total mzML data across both groups is approximately ~160 GB.

Workflow configuration

  • MSFragger: closed search, strict trypsin, ±20 ppm precursor, 20 ppm fragment
  • MSBooster: ON (DIA-NN models for RT, IM, spectra)
  • Percolator: ON (--only-psms --no-terminate --post-processing-tdc)
  • PeptideProphet: OFF
  • ProteinProphet: ON (--maxppmdiff 2000000)
  • Philosopher filter: --sequential --prot 0.01 --mapmods (no --picked)
  • IonQuant: ON (MaxLFQ, MBR OFF)

The Problem

Timeline

  1. MSFragger (8 database slices, 83 files) → completed successfully
  2. MSBooster → completed successfully
  3. Percolator → completed successfully (all 83 files)
  4. ProteinProphet → completed successfully (exit code 0), processed 2,549,526 proteins in ~22 hours
  5. Philosopher database --annotate → completed successfully (exit code 0)
  6. Philosopher filter --sequential → CRASHED with fatal error: runtime: out of memory (exit code 2) on the very first sample (C002_1)

FragPipe then cancelled the remaining 251 tasks.

Fatal error in the log

PhilosopherFilter [Work dir: .../output_closed_totale/C002_1]
philosopher-v5.1.3-RC9 filter --sequential --prot 0.01 --mapmods --tag rev_ \
  --pepxml .../C002_1 \
  --protxml .../combined.prot.xml \
  --razor

time="19:57:25" level=info msg="Executing Filter  v5.1.3"
time="19:57:25" level=info msg="Processing peptide identification files"
time="19:57:25" level=info msg="Parsing .../C002_1/interact-SarsCov2_C002_OT_06032023_01.pep.xml"

fatal error: runtime: out of memory

runtime stack:
runtime.throw({0xb05f6b?, 0x204ee3?})
    C:/Program Files/Go/src/runtime/panic.go:1023 +0x5c
runtime.sysMapOS(0x1338cc00000, 0x800000000)
    C:/Program Files/Go/src/runtime/mem_linux.go:167 +0x11b
...
bytes.(*Buffer).grow(0xcf45390750, 0x13)
    C:/Program Files/Go/src/bytes/buffer.go:151 +0x13d

github.com/Nesvilab/philosopher/lib/id.(*ProtXML).Serialize(0xc000380000)
    E:/Projects/philosopher/phi-5.1.1_RC/philosopher/lib/id/pro.go:281 +0x6a
github.com/Nesvilab/philosopher/lib/fil.ReadProtXMLInput(...)
    E:/Projects/philosopher/phi-5.1.1_RC/philosopher/lib/fil/fil.go:608 +0x158
github.com/Nesvilab/philosopher/lib/fil.Run.func1()
    E:/Projects/philosopher/phi-5.1.1_RC/philosopher/lib/fil/fil.go:76 +0xc5
Process 'PhilosopherFilter' finished, exit code: 2
Process returned non-zero exit code, stopping
~~~~~~~~~~~~~~~~~~~~
Cancelling 251 remaining tasks

Additional warnings (non-blocking)

WARNING: Found the following zero-mass residues in protein entry sp|Q86VQ6|TRXR3_HUMAN : U

(Selenocysteine residue — expected, not related to the crash)

ERROR: Missing assets: .../tools/Skyline/SkylineRunner.exe
ERROR: Missing assets: .../tools/Skyline/SkylineDailyRunner.exe

(Expected — Skyline is Windows-only and not used in this Linux headless run)

Slurm Job Info

Job_id=50175911
Name=step3A_closed_totale
Run time: 1 day, 05:15:47
Status: COMPLETED (ExitCode 0)

Note: Slurm reports COMPLETED because the FragPipe Java process itself exited with code 0 (it handled the Philosopher crash internally and cancelled remaining tasks gracefully). The actual pipeline is incomplete.

Questions for Developers

  1. Is there a known memory limit for philosopher filter when dealing with very large combined.prot.xml files? My combined.prot.xml contains results from 2.5M proteins × 83 samples — is this expected to be too large for the current Philosopher implementation?

  2. Would processing samples in batches (e.g., smaller groups) and then merging results be a supported workaround?

  3. Is there a way to control Philosopher's memory usage independently from FragPipe's --ram flag? The --ram 460 flag seems to apply only to Java-based tools (MSFragger, IonQuant), while Philosopher (written in Go) does not appear to have a memory limit parameter.

  4. Would upgrading to a newer version of Philosopher (if available beyond 5.1.3-RC9) help with memory handling for large prot.xml files?

  5. Any alternative filtering strategies for datasets of this scale (e.g., using --picked instead of --sequential, or running without ProteinProphet and using Percolator-only FDR)?

Reproducibility

This is reproducible — the same crash happened on a previous run with 83 mzML files on the same database. The SLURM node provides the maximum available RAM on Leonardo DCGP partition (512 GB physical, 480 GB allocated).

Files available upon request

  • Full FragPipe log (log_2026-07-25_22-10-41.txt, ~2.4 MB, 23,807 lines)
  • Workflow file (.workflow)
  • SLURM batch script (.slurm)
  • Manifest file (.fp-manifest)
  • The FASTA database itself (2.4 GB)

Thank you for your help!

Activity

  1. self-assigned this
    on Jul 29, 2026
  2. fcyu commented on Jul 29, 2026

    @fcyu
    Member

    Could you please share log_2026-07-25_22-10-41.txt?

    Thanks,

    Fengchao

  3. martinastramacci commented on Jul 29, 2026

    @martinastramacci
    Author
  4. transferred this issue fromNesvilab/FragPipeon Jul 29, 2026
  5. removed their assignment
    on Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions