summarize_hierarchy: Summarize hierarchy counts

View source: R/AnalysisConfiguration.R

summarize_hierarchyR Documentation

Summarize hierarchy counts

Description

E.g compute number of peptides for each protein

Usage

summarize_hierarchy(
  pdata,
  config,
  hierarchy = config$table$hierarchy_keys_depth(),
  factors = character()
)

Arguments

pdata

data.frame

config

AnalysisConfiguration

hierarchy

for which hierarchy level (default up to hierarchy depth)

factors

which factors to include

See Also

Other summary: INTERNAL_FUNCTIONS_BY_FAMILY, hierarchy_counts(), hierarchy_counts_sample(), nr_B_in_A_per_sample()

Examples




bb <- sim_lfq_data_peptide_config()
data <- bb$data
configur <- bb$config
summarize_hierarchy(data, configur)
summarize_hierarchy(data, configur, factors = character())

summarize_hierarchy(data, configur,
 hierarchy = configur$table$hierarchy_keys_depth() )
summarize_hierarchy(data, configur,
 hierarchy = NULL, factors = configur$table$factor_keys_depth() )
configur$table$hierarchyDepth = 1
summarize_hierarchy(data, configur,
 factors = configur$table$factor_keys_depth())
configur$table$hierarchyDepth = 2
summarize_hierarchy(data, configur)
configur$table$hierarchyDepth = 3
summarize_hierarchy(data, configur )
configur$table$hierarchyDepth = 4
summarize_hierarchy(data, configur )


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