View source: R/extract_modification.R
obtain_mod_PEAKS | R Documentation |
This function takes PEAKS output containing a column with modified peptide sequences including PTM information and converts it into a new dataframe with the desired format of peptide sequences and associated PTM information.
obtain_mod_PEAKS(
data,
column,
PTM_table = NULL,
PTM_annotation = FALSE,
PTM_mass_column
)
data |
A dataframe with a column containing modified peptide sequences. |
column |
The name of the column containing the modified peptide sequences. |
PTM_table |
A dataframe with columns 'PTM_mass' and 'PTM_type' containing PTM annotation information. |
PTM_annotation |
A logical value indicating whether to include PTM annotation information in the result. |
PTM_mass_column |
The name of the column containing the PTM mass information |
A data.table with 'PTM_position', 'PTM_type', 'PTM_mass', 'reps', and other columns.
library(data.table)
data <- data.table(
Peptide = c(
"AAN(+42)Q(-0.98)RGSLYQCDYSTGSC(+57.02)EPIR",
"K.AAQQTGKLVHANFGT.K",
"K.(-0.98)AATVTGKLVHANFGT.K"
),
Sequence = c(
"AANQRGSLYQCDYSTGSCEPIR",
"AAQQTGKLVHANFGT",
"AATVTGKLVHANFGT"
),
Condition = c("A", "B", "B")
)
PTM_table <- data.table(PTM_mass = c(42, -0.98, 57.02),
PTM_type = c("Acet", "Amid", "Cam"))
column <- "Peptide"
PTM_mass_column <- "PTM_mass"
converted_data <- obtain_mod_PEAKS(data, column, PTM_table, PTM_annotation = TRUE, PTM_mass_column)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.