Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Report protein match overflow explicitely#1842

Open
pverscha wants to merge 3 commits intodevelopunipept/unipept:developfrom
feature/report-cutoff-usedunipept/unipept:feature/report-cutoff-usedCopy head branch name to clipboard
Open

Report protein match overflow explicitely#1842
pverscha wants to merge 3 commits intodevelopunipept/unipept:developfrom
feature/report-cutoff-usedunipept/unipept:feature/report-cutoff-usedCopy head branch name to clipboard

Conversation

@pverscha
Copy link
Copy Markdown
Member

@pverscha pverscha commented May 5, 2026

This PR provides a fix for #1839. Instead of hiding that a peptide's matches were cutoff, this is now explicitly reported to the user in both the "single peptide analysis" and "metaproteomics peptide analysis".

An alert is shown in the summary of the single peptide analysis. For the metaproteomics analysis, I have added an extra column to the analysis summary table. There is also a tooltip that's shown when the user hovers over the icons in this column which explains what this match exceeded means.

Screenshot for SPA:
image

Screenshot for MPA:
image

@pverscha pverscha requested a review from tibvdm May 5, 2026 13:31
@pverscha pverscha self-assigned this May 5, 2026
Copy link
Copy Markdown
Contributor

@tibvdm tibvdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feature seems to work and I was able to input older projects to test the upgrader. I left some small remarks on the code


for (const [peptide, old] of oldMap) {
const response = old.toPeptideDataResponse();
response.cutoff_used = response.fa.counts.all > 9000;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this 9.000 come from? The cutoff value usually is 10.000 so I'm confused

return lin;
}

public get ec(): any {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably does not matter that much, but maybe this can be correctly typed. Looks like Record<string, number>

return value === -1 ? "-" : value.toString();
}

public get go(): any {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem

return output;
}

public get ipr(): any {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem

}
}

const updatedMetadata = JSON.parse(await metadataFile.async("string"));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metadata is already parsed above the loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.