Conversion of software specific precursor entries
Source:R/convert_precursor.R
convert_precursor.Rd
Precursor entries are converted to a common text representation
Usage
convert_precursor(
input_df,
software = c("MaxQuant", "PD", "DIA-NN", "Spectronaut")
)
Arguments
- input_df
A tibble with precursor level information. For MaxQuant: evidence.txt, for PD: PSMs.txt with R-friendly headers enabled, for DIA-NN and Spectronaut default output reports.
- software
The used analysis software for the input_df - MaxQuant, PD, DIA-NN or Spectronaut. Default is MaxQuant.
Value
This function returns the original submitted tibble
- input_df - including two new columns:
traceR_precursor - software-independent standardized text for precursor entries.
traceR_precursor_unknownMods - logical value, if TRUE: a modification is detected, which is not converted to a standardized text.
Details
The input entries are converted to a software independent format. The generated entries are appended to the submitted dataframe. Conversion of modifications is currently only available for UniMod:35 and UniMod:4. Other modifications will not be converted to standardized format.
Examples
# Load libraries
library(dplyr)
library(stringr)
library(tidyr)
library(tibble)
# MaxQuant example data
data <- tibble::tibble(
"Modified sequence" = c("_AACLLPK_",
"_ALTDM(Oxidation (M))PQM(Oxidation (M))R_",
"ALTDM(Dummy_Modification)PQMK"),
Charge = c(2,2,3)
)
# Conversion
convert_precursor(
input_df = data,
software = "MaxQuant"
)
#> # A tibble: 3 x 5
#> `Modified sequence` Precursor.Id Charge traceR_precursor traceR_precursor~
#> <chr> <chr> <dbl> <chr> <lgl>
#> 1 _AACLLPK_ AACLLPK2 2 AACLLPK2 FALSE
#> 2 _ALTDM(Oxidation (~ ALTDM(Oxidatio~ 2 ALTDM(UniMod:35)~ FALSE
#> 3 ALTDM(Dummy_Modifi~ ALTDM(DummyMod~ 3 ALTDM(DummyModif~ TRUE