nr_B_in_A: Compute nr of B per A

View source: R/tidyMS_R6_TransitionCorrelations.R

nr_B_in_AR Documentation

Compute nr of B per A

Description

Compute nr of B per A

Usage

nr_B_in_A(pdata, config, merge = TRUE)

Arguments

pdata

data.frame

config

AnalysisConfiguration

Examples


bb <- sim_lfq_data_peptide_config(Nprot = 100)
config <- bb$config$clone(deep=TRUE)
data <- bb$data
hierarchy <- config$table$hierarchy_keys()
res <- nr_B_in_A(data, config)

res$data |>
  dplyr::select_at(c(config$table$hierarchy_keys_depth(),  res$name)) |>
  dplyr::distinct() |>
  dplyr::pull() |> table()


bb <- prolfqua::prolfqua_data('data_skylineSRM_HL_A')
config <- old2new(bb$config_f())
data <- bb$data
data$Area[data$Area == 0] <- NA
analysis <- setup_analysis(data, config)

resDataStart <- bb$analysis(bb$data, config)

nr_B_in_A(resDataStart, config)
nr_B_in_A(resDataStart, config, merge = FALSE)
config$table$hierarchyDepth <- 2
nr_B_in_A(resDataStart, config, merge = FALSE)


wolski/prolfqua documentation built on Dec. 4, 2024, 11:18 p.m.