View source: R/AnalysisConfiguration.R
hierarchy_counts | R Documentation |
E.g. number of proteins, peptides, precursors in the dataset
hierarchy_counts(pdata, config)
pdata |
data.frame |
config |
AnalysisConfiguration |
Other summary:
INTERNAL_FUNCTIONS_BY_FAMILY
,
hierarchy_counts_sample()
,
nr_B_in_A_per_sample()
,
summarize_hierarchy()
bb <- prolfqua::sim_lfq_data_peptide_config()
config <- bb$config$clone(deep=TRUE)
data <- bb$data
x <- hierarchy_counts(data, config)
x$protein_Id
stopifnot(ncol(x) == length(config$table$hierarchy_keys()) + 1)
# select non existing protein
data0 <- data |> dplyr::filter( protein_Id == "XYZ")
tmp <- hierarchy_counts(data0, config)
stopifnot(nrow(tmp) == 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.