View source: R/tidyMS_aggregation.R
intensity_summary_by_hkeys | R Documentation |
Summarizes the intensities within hierarchy
intensity_summary_by_hkeys(data, config, func)
func |
- a function working on a matrix of intensities for each protein. |
retuns function object
Other aggregation:
INTERNAL_FUNCTIONS_BY_FAMILY
,
aggregate_intensity_topN()
,
estimate_intensity()
,
medpolish_estimate()
,
medpolish_estimate_df()
,
medpolish_estimate_dfconfig()
,
medpolish_protein_estimates()
,
plot_estimate()
,
plot_hierarchies_add_quantline()
,
plot_hierarchies_line()
,
plot_hierarchies_line_df()
,
rlm_estimate()
,
rlm_estimate_dfconfig()
Other deprecated:
INTERNAL_FUNCTIONS_BY_FAMILY
,
medpolish_protein_estimates()
bb <-sim_lfq_data_peptide_config()
data <- bb$data
config <- bb$config
x <- intensity_summary_by_hkeys(data, config, func = medpolish_estimate)
res <- x("unnest")
res$data |> dim()
x <- intensity_summary_by_hkeys(data, config, func = medpolish_estimate)
dd <- x(value = "plot")
stopifnot(nrow(dd) == length(unique(bb$data$protein_Id)))
dd$plot[[2]]
# example how to add peptide count information
tmp <- summarize_hierarchy(data, config)
tmp <- dplyr::inner_join(tmp, x("wide")$data, by = config$table$hierarchy_keys_depth())
tmp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.