library(data.table)
data_skyline <- data.table(
'Peptide Modified Sequence' = c(
"AGLC[+57]QTFVYGGC[+57]R",
"AAAASAAEAGIATTGTEDSDDALLK",
"IVGGWEC[+57]EK"
),
Condition = c("A", "B", "B")
)
PTM_table <- data.table(
PTM_mass = c(57.02, -0.98, 15.9949),
PTM_type = c("Cam", "Amid", "Ox")
)
converted_data_skyline <- obtain_mod(
data_skyline,
'Peptide Modified Sequence',
'Skyline',
seq_column = NULL,
PTM_table,
PTM_annotation = TRUE,
PTM_mass_column = "PTM_mass"
)
data_maxquant <- data.table(
'Modified sequence' = c(
"_(ac)AAAAELRLLEK_",
"_EAAENSLVAYK_",
"_AADTIGYPVM(ox)IRSAYALGGLGSGICPNK_"
),
Condition = c("A", "B", "B")
)
PTM_table <- data.table(
PTM_mass = c('Phospho (STY)', 'Oxidation (M)'),
PTM_type = c("Phos", "Ox")
)
converted_data_maxquant <- obtain_mod(
data_maxquant,
'Modified sequence',
'Maxquant',
seq_column = NULL,
PTM_table,
PTM_annotation = TRUE,
PTM_mass_column = "PTM_mass"
)
Run the code above in your browser using DataLab