proteometer.ptm#
Functions#
|
Get the positions of PTM labels in a peptide. |
|
Get YST positions in a peptide. |
|
Extracts numeric positions from a string of modified residues. |
|
Combines multiple proteomics dataframes into a single dataframe. |
Module Contents#
- proteometer.ptm.get_ptm_pos_in_pept(peptide: str, ptm_label: str = '*', special_chars: str = '.]+-=@_!#$%^&*()<>?/\\|}{~:[') list[int] [source]#
Get the positions of PTM labels in a peptide.
This function processes a peptide string to find the positions of post-translational modification (PTM) labels. It accounts for special characters and returns a list of positions adjusted to the stripped peptide sequence. Positions are 0-indexed from the start of the peptide.
- Parameters:
- Returns:
- A sorted list of integer positions where the PTM labels
occur in the peptide, adjusted for any modifications made during processing.
- Return type:
- proteometer.ptm.get_yst(strip_pept: str, ptm_aa: str = 'YSTyst') list[tuple[int, str]] [source]#
Get YST positions in a peptide.
This function takes a stripped peptide sequence and finds the positions of Y, S, and T residues.
- Parameters:
- Returns:
- A list of tuples where the first element is the
position of the label in the stripped peptide and the second element is the YST residue letter.
- Return type:
- proteometer.ptm.get_phosphositeplus_pos(mod_rsd: str) list[int] [source]#
Extracts numeric positions from a string of modified residues.
- proteometer.ptm.combine_multi_ptms(multi_proteomics: dict[str, pandas.DataFrame], par: proteometer.params.Params) pandas.DataFrame [source]#
Combines multiple proteomics dataframes into a single dataframe.
This function processes and combines different types of proteomics data into a unified dataframe. It distinguishes between global proteomics data and post-translational modifications (PTM) data, assigning specific labels and counting site numbers accordingly.
- Parameters:
- Returns:
- A combined dataframe containing all the input proteomics data,
labeled and processed as per the specified parameters.
- Return type:
pd.DataFrame