
Automatic Aggregation
auto_aggregate.RdAggregates glycoproteomics data to "gfs" (glycoforms with structures) level if the glycan structure column exists, otherwise to "gf" (glycoforms with compositions) level.
Arguments
- exp
A
glyexp::experiment()object with "glycoproteomics" type.- standardize_variable
Whether to call
glyexp::standardize_variable()after aggregation. Set toFALSEto skip network calls for faster testing. Default isTRUE.
Value
A modified glyexp::experiment() object with aggregated expression matrix and
updated variable information.
Examples
library(glyexp)
exp <- real_experiment
auto_aggregate(exp)
#> ℹ Aggregating to "gfs" level
#>
#> ── Glycoproteomics Experiment ──────────────────────────────────────────────────
#> ℹ Expression matrix: 12 samples, 4001 variables
#> ℹ Sample information fields: group <fct>
#> ℹ Variable information fields: protein <chr>, glycan_composition <comp>, glycan_structure <struct>, protein_site <int>, gene <chr>