The fcol name given in the vignette is non-standard for maxquant and doesn't work without renaming. A suitable alternative is 'Sequence' or 'Modified.sequence' as below.
scp <- aggregateFeaturesOverAssays(scp,
i = 1:100,
fcol = "Modified.sequence", # Note change from 'peptide'
name = paste0("peptides_", names(scp)),
fun = matrixStats::colMedians, na.rm = TRUE)
The fcol name given in the vignette is non-standard for maxquant and doesn't work without renaming. A suitable alternative is 'Sequence' or 'Modified.sequence' as below.
scp <- aggregateFeaturesOverAssays(scp, i = 1:100, fcol = "Modified.sequence", # Note change from 'peptide' name = paste0("peptides_", names(scp)), fun = matrixStats::colMedians, na.rm = TRUE)