obtain_mod_mzIdenML {PepMapViz} | R Documentation |
Obtain modification information from Peptide data generated by mzIdenML
Description
This function takes mzIdenML output containing a 'modification' column with PTM information and converts it into a new dataframe with the desired format of peptide sequences and associated PTM information.
Usage
obtain_mod_mzIdenML(
data,
mod_column,
seq_column,
PTM_table = NULL,
PTM_annotation = FALSE,
PTM_mass_column
)
Arguments
data |
A data.table with a column containing stripped sequence and a column containing PTM information. |
mod_column |
The name of the column containing the modified peptide sequences. |
seq_column |
The name of the column containing peptide sequences for mzIdenML. |
PTM_table |
A data.table 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 |
Value
A data.table with 'PTM_position', 'PTM_type', 'reps', and other columns.
Examples
library(data.table)
data <- data.table(
pepseq = c("DDREDMLVYQAK", "EAAENSLVAYK", "IEAELQDICNDVLELLDK"),
modification = c("-0.984016 (10), 15.994915 (13)", NA, "15.994915 (12)"),
Condition1 = c("A", "B", "B"),
Condition2 = c("C", "C", "D")
)
PTM_table <- data.table(
PTM_mass = c(-0.984016, 15.994915),
PTM_type = c("Amid", "Ox")
)
mod_column <- "modification"
seq_column <- "pepseq"
converted_data <- obtain_mod_mzIdenML(
data,
mod_column,
seq_column,
PTM_table,
PTM_annotation = TRUE,
PTM_mass_column = "PTM_mass"
)
[Package PepMapViz version 1.1.0 Index]