Skip to content

added no enzyme query for the use of fasta sequence itself for peptid…#598

Merged
YukiMatsuzawa merged 2 commits intomasterfrom
add_nocleavage_in_proteomicspipeline
Jul 10, 2025
Merged

added no enzyme query for the use of fasta sequence itself for peptid…#598
YukiMatsuzawa merged 2 commits intomasterfrom
add_nocleavage_in_proteomicspipeline

Conversation

@htsugawa
Copy link
Copy Markdown
Contributor

@htsugawa htsugawa commented Jul 8, 2025

…omics

@htsugawa htsugawa requested review from YukiMatsuzawa and Copilot July 8, 2025 14:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds support for a “no enzyme” option by defining it in the enzyme resource file and updating the digestion logic to return the intact protein when specified.

  • Introduce a new <enzyme> entry with title “No enzyme” and specificity - in enzymes.xml
  • Update GetDigestedPeptideSequences to handle empty/null cleavage lists and the "-" indicator by returning the full protein as a single peptide

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Common/CommonStandard/Proteomics/Resources/enzymes.xml Added a “No enzyme” entry with specificity - to allow full-protein queries without cleavage
src/Common/CommonStandard/Proteomics/Function/ProteinDigestion.cs Added early return for empty/null cleavage sites and special case for "-" to yield full-length peptide
Comments suppressed due to low confidence (1)

src/Common/CommonStandard/Proteomics/Function/ProteinDigestion.cs:27

  • Consider adding a unit test to verify that the method returns the full protein sequence as a single peptide when using the no-enzyme indicator ("-").
            if (cleavagesites.Count == 1 && cleavagesites[0] == "-") {

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@YukiMatsuzawa YukiMatsuzawa merged commit cf4b82a into master Jul 10, 2025
5 checks passed
@YukiMatsuzawa YukiMatsuzawa deleted the add_nocleavage_in_proteomicspipeline branch July 10, 2025 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants