Skip to contents

Calculate quantitative precision on peptide-level

Usage

get_CV_LFQ_pep(input_list)

Arguments

input_list

A list with data frames and respective quantitative peptide information.

Value

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

  • CV_Peptide_LFQ_mpwR - coefficient of variation in percentage.

Details

For each submitted data the coefficient of variation is calculated on peptide-level for LFQ intensities. Only full profiles are included.

Author

Oliver Kardell

Examples

# Load libraries
library(stringr)
#> Warning: package 'stringr' was built under R version 4.2.2
library(magrittr)
library(tibble)
#> Warning: package 'tibble' was built under R version 4.2.3

# 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),
           Stripped.Sequence_mpwR = rep(c("A", "B", "C", "D", "E"), 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_LFQ_pep(
  input_list = data
)