Download a copy of the vignette to follow along here: getting_started.Rmd
Introduction
What is this package?
metasnf is a package that facilitates usage of the meta clustering paradigm described in Caruana et al., 2006 with the similarity network fusion (SNF) data integration procedure developed in Wang et al., 2014. The package offers a comprehensive suite of tools to assist users in transforming raw patient data into patient subtypes, decision making in the subtyping process, and visualization along the way with a strong emphasis on context-specific utility and principled validation of results.
Why use meta clustering?
Clustering algorithms seek solutions where members of the same cluster are very similar to each other and members of distinct clusters are very dissimilar to each other. In sufficiently noisy datasets where many qualitatively distinct solutions with similar scores of clustering quality exist, it is not necessarily the case that the top solution selected by a clustering algorithm will also be the most useful one for the user’s context.
To address this issue, the original meta clustering procedure Caruana et al., 2006 involved generating a large number of reasonable clustering solutions, clustering those solutions into qualitatively similar ones, and having the user examine those “meta clusters” to find something that seems like it’ll be the most useful.
Why use SNF?
In the clinical data setting, we often have access to patient data across a wide range of domains, such as imaging, genetics, biomarkers, demographics. When trying to extract subtypes out of all this information, direct concatenation of the data followed by cluster analysis can result in a substantial amount of lost (valuable) signal contained in each individual domain. Empirically, SNF has been demonstrated to effectively integrate highly diverse patient data for the purposes of clinical subtyping.
Installation
The package is currently hosted on GitHub (not CRAN). The easiest way to install metasnf is with the devtools package.
install.packages("devtools") # if you don't have it already
# By default, this will install the latest version of the package
devtools::install_github("BRANCHlab/metasnf")
# To ensure you are always installing a specific version of the package,
# you can manually specify a tagged release or a commit:
devtools::install_github("BRANCHlab/metasnf@v0.2.0")