psm_to_peptide_style_modifications: Transformes PSM-level Modifications annotation style to...

View source: R/modifications.R

psm_to_peptide_style_modificationsR Documentation

Transformes PSM-level Modifications annotation style to peptide-level style

Description

Proteome Discoverer has a different style of annotation for peptide modifications in PSM and peptide-level outputs. In PSM-level output, each modification is listed separately, with the modification in parentheses after the position. In peptide-level output, the modifications are summarised more succintly, with the number of each modification followed by the positions For example: PSM: N-Term(Prot)(Acetyl); C2(Carbamidomethyl); C16(Carbamidomethyl) Peptide:1xAcetyl [N-Term]; 2xCarbamidomethyl [C2; C16]

Usage

psm_to_peptide_style_modifications(psm_style_modifications)

Arguments

psm_style_modifications

vector of PSM-style modification annotations

Value

vector of Peptide-style modification annotations

Examples

psm_mod <- "N-Term(Prot)(Acetyl); C2(Carbamidomethyl); C16(Carbamidomethyl)"
target <- "1xAcetyl [N-Term]; 2xCarbamidomethyl [C2; C16]"
psm_to_peptide_style_modifications(psm_mod) == target

CambridgeCentreForProteomics/camprotR documentation built on July 7, 2024, 2:13 a.m.