nr_obs_sample: Aggregates e.g. protein abundances from peptide abundances

View source: R/tidyMS_R6_TransitionCorrelations.R

nr_obs_sampleR Documentation

Aggregates e.g. protein abundances from peptide abundances

Description

Aggregates e.g. protein abundances from peptide abundances

Usage

nr_obs_sample(data, config, new_child = config$table$nr_children)

Examples

dd <- prolfqua::sim_lfq_data_peptide_config()
dd$data <- na.omit(dd$data)
xd <- nr_obs_sample(dd$data, dd$config)
xd$nr_children |> table()
# xd |> pivot_wider(id_cols = protein_Id, names_from = sample, values_from = nr_children)

dp <- prolfqua::sim_lfq_data_protein_config()
xp <- nr_obs_sample(dp$data, dp$config)
# xp
# xp |> pivot_wider(id_cols = protein_Id, names_from = sample, values_from = nr_peptides)
xp$nr_peptides |> table()


wolski/prolfqua documentation built on Oct. 31, 2024, 9:22 a.m.