View source: R/tidyMS_R6_TransitionCorrelations.R
nr_B_in_A | R Documentation |
Compute nr of B per A
nr_B_in_A(pdata, config, merge = TRUE)
pdata |
data.frame |
config |
AnalysisConfiguration |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.