Add option to ignore N-/C-terminus effects in isoelectric point calculation#5022
Open
FriedLabJHU wants to merge 1 commit intobiopython:masterfrom
Open
Add option to ignore N-/C-terminus effects in isoelectric point calculation#5022FriedLabJHU wants to merge 1 commit intobiopython:masterfrom
FriedLabJHU wants to merge 1 commit intobiopython:masterfrom
Conversation
…lation This update introduces a new ignore_termini parameter to the IsoelectricPoint class, allowing users to exclude the N-terminus, C-terminus, or both from isoelectric point (pI) and charge calculations. Key Changes: Added ignore_termini argument to IsoelectricPoint.__init__, which accepts: "Nterm" – excludes N-terminal charge and pK contribution "Cterm" – excludes C-terminal charge and pK contribution "both" – excludes both N- and C-terminal contributions Purpose: In many use cases (e.g., peptide segments derived from a larger protein), the termini of a fragment may not be chemically exposed and therefore do not contribute to the molecule’s charge in physiological contexts. This enhancement enables more biologically realistic pI calculations for internal peptide fragments by omitting artificial terminal effects. Additionally, it allows for flexible modeling of peptides with only one exposed terminus, such as C-terminal peptides (ignore Nterm) or N-terminal peptides (ignore Cterm), which is useful in proteomics applications and fragment-based analyses.
Member
|
I thought there might be a similar option in one of the existing |
Author
|
@peterjc as far as I am aware, there aren't any other functions that explicitly ignore the protein termini (other than by indexing). If there is an existing option meant for ignoring termini, then I will change this PR to match that naming. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[ X] I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
[ X] I have read the
CONTRIBUTING.rstfile, have runpre-commitlocally, and understand that continuous integration checks will be used to
confirm the Biopython unit tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)
This update introduces a new ignore_termini parameter to the IsoelectricPoint class, allowing users to exclude the N-terminus, C-terminus, or both from isoelectric point (pI) and charge calculations.
Key Changes:
Added ignore_termini argument to IsoelectricPoint.init, which accepts:
"Nterm" – excludes N-terminal charge and pK contribution
"Cterm" – excludes C-terminal charge and pK contribution
"both" – excludes both N- and C-terminal contributions
Purpose:
In many use cases (e.g., peptide segments derived from a larger protein), the termini of a fragment may not be chemically exposed and therefore do not contribute to the molecule’s charge in physiological contexts. This enhancement enables more biologically realistic pI calculations for internal peptide fragments by omitting artificial terminal effects.
Additionally, it allows for flexible modeling of peptides with only one exposed terminus, such as C-terminal peptides (ignore Nterm) or N-terminal peptides (ignore Cterm), which is useful in proteomics applications and fragment-based analyses.