Skip to contents

Calculate retention time precision

Usage

get_CV_RT(input_list)

Arguments

input_list

A list with data frames and respective retention time information.

Value

This function returns the original submitted data of the input_list including a new output column:

  • CV_Retention.time_mpwR - coefficient of variation in percentage.

Details

For each submitted data the coefficient of variation is calculated on precursor-level for retention time. Only full profiles are included.

Author

Oliver Kardell

Examples

# Load libraries
library(tibble)

# Example data
set.seed(123)
data <- list(
  Spectronaut = list(
     filename = "C",
     software = "Spectronaut",
     data = list(
        "Spectronaut" = tibble::tibble(
           Run_mpwR = rep(c("A","B"), times = 5),
           Precursor.IDs_mpwR = rep(c("A2", "A3", "B2", "B3", "C1"), each = 2),
           Peptide.IDs_mpwR = rep(c("A", "B", "C", "D", "E"), each = 2),
           ProteinGroup.IDs_mpwR = rep(c("A", "B", "C", "D", "E"), each = 2),
           Retention.time_mpwR = sample(1:20, 10),
           Peptide_LFQ_mpwR = sample(1:30, 10),
           ProteinGroup_LFQ_mpwR = sample(1:30, 10))
     )
  )
)

# Result
output <- get_CV_RT(
  input_list = data
)