Skip to content

Error in BaseSpline with 3 PSMs or fewer #362

@MatthewThe

Description

@MatthewThe

The BaseSpline estimation during the PEP estimation results in a segmentation error if fewer than 4 PSMs are present.
This is because the quadratic spline needs at least 4 bins, leading to an out of bounds error here:

Q[n - 2].packedAddElement(n-4, 1 / dx[n - 3]);

If the --no-terminate flag is set, we can address this edge case by simply repeating the last bin, until we have 4 bins.

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