This functions calculates an average protein profile for each
marker class (proteins of unknown localisation are ignored) and
then generates a dendrogram representing the relation between
marker classes. The colours used for the dendrogram labels are
taken from the default colours (see getStockcol
) so
as to match the colours with other spatial proteomics
visualisations such as plot2D
.
Arguments
- object
An instance of class
MSnSet
.- fcol
Feature meta-data label (fData column name) defining the groups to be differentiated using different colours. Default is
markers
.- distargs
A
list
of arguments to be passed to thedist
function.- hclustargs
A
list
of arguments to be passed to thehclust
function.- method
A
function
to average marker profiles. Default ismean
.- plot
A
logical
defining whether the dendrogram should be plotted. Default isTRUE
.- ...
Additional parameters passed when plotting the
dendrogram
.
Value
Invisibly returns a dendrogram object, containing the
hierarchical cluster as computed by hclust
.
Examples
library("pRolocdata")
data(dunkley2006)
mrkHClust(dunkley2006)