Skip to content

Sage fails silently if the protein database does not contain decoys in combination with "generate_decoys": false #192

@fabianegli

Description

@fabianegli

Dear Michael

Thanks for this great and really fast search tool!
Today I spent quite some time figuring out why sage was failing on me and generating lfq.tsv files containing only the header.
In the hope the next person hitting this roadblock spending less time on it than I did today, I file this issue.

Observed behavior

If the FASTA protein database does not contain decoys and the config doesn't indicate that they should be generate, sage fails silently with only the following warning:

[2025-09-22T15:56:36Z WARN  sage] linear model fitting failed, falling back to heuristic discriminant score

The config would be the following:

{
  "database": {
    ...
    "generate_decoys": true,
  },
  ...
}

And the database one with no decoys.

Expected behavior

I would expect sage to fail in this case with a warning that there are no decoys in the database and that they either should be added to the added or the config changed so they are generated by sage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions