metasnf

Scalable subtyping with similarity network fusion

https://github.com/branchlab/metasnf

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.6%) to scientific vocabulary

Keywords

bioinformatics clustering metaclustering r snf
Last synced: 9 months ago · JSON representation

Repository

Scalable subtyping with similarity network fusion

Basic Info
Statistics
  • Stars: 9
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
bioinformatics clustering metaclustering r snf
Created about 4 years ago · Last pushed 11 months ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
bibliography: bibliography.bib
link-citations: yes
linkcolor: blue
---



```{r, include = FALSE}
knitr::opts_chunk$set(
    collapse = TRUE,
    comment = "#>",
    fig.path = "man/figures/README-",
    out.width = "100%"
)
```

# metaSNF: Meta clustering with Similarity Network Fusion




## Brief Overview

metaSNF is an R package that facilitates usage of the meta clustering paradigm described in [@caruanaMeta2006] with the similarity network fusion (SNF) data integration procedure developed in [@wangSimilarity2014].
The package offers a comprehensive suite of tools to assist users in transforming multi-modal tabular data into cluster solutions, decision making in the clustering process, and visualization along the way with a strong emphasis on context-specific utility and principled validation of results.

## Installation

You will need R version 4.1.0 or higher to install this package.
metaSNF can be installed from CRAN:

```{r eval = FALSE}
install.packages("metasnf")
```

Development versions can be installed from GitHub:

```{r eval = FALSE}
# Latest development version
devtools::install_github("BRANCHlab/metasnf")

# Install a specific tagged version
devtools::install_github("BRANCHlab/metasnf@v2.1.3")
```

## Quick Start

Minimal usage of the package looks like this:

```{r}
# Load the package
library(metasnf)

# Setting up the data
dl <- data_list(
    list(abcd_cort_t, "cortical_thickness", "neuroimaging", "continuous"),
    list(abcd_cort_sa, "cortical_surface_area", "neuroimaging", "continuous"),
    list(abcd_subc_v, "subcortical_volume", "neuroimaging", "continuous"),
    list(abcd_income, "household_income", "demographics", "continuous"),
    list(abcd_pubertal, "pubertal_status", "demographics", "continuous"),
    uid = "patient"
)

# Specifying 5 different sets of settings for SNF
set.seed(42)
sc <- snf_config(
    dl,
    n_solutions = 5,
    max_k = 40
)

# This matrix has clustering solutions for each of the 5 SNF runs!
sol_df <- batch_snf(dl, sc)

sol_df

t(sol_df)
```

Check out the tutorial vignettes below to learn about how the package can be used:

* [Simple usage of the package](https://branchlab.github.io/metasnf/articles/a_simple_example.html)
* [Complex usage of the package](https://branchlab.github.io/metasnf/articles/a_complete_example.html)

And more tutorials can be found under the "articles" section of the documentation home page: [https://branchlab.github.io/metasnf/index.html](https://branchlab.github.io/metasnf/index.html)


## Background

**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](https://doi.org/10.1109/ICDM.2006.103) 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.

## Documentation

### Example workflows

* [Simple](https://branchlab.github.io/metasnf/articles/a_simple_example.html)
* [Complex](https://branchlab.github.io/metasnf/articles/a_complete_example.html)

### Essential objects

* [SNF config](https://branchlab.github.io/metasnf/articles/snf_config.html)
* [Data list](https://branchlab.github.io/metasnf/articles/data_list.html)

### Further customization of generated solutions

* [SNF schemes](https://branchlab.github.io/metasnf/articles/snf_schemes.html)
* [Distance metrics](https://branchlab.github.io/metasnf/articles/distance_metrics.html)
* [Clustering algorithms](https://branchlab.github.io/metasnf/articles/clustering_algorithms.html)
* [Feature weighting](https://branchlab.github.io/metasnf/articles/feature_weights.html)

### Additional functionality

* [Stability measures and consensus clustering](https://branchlab.github.io/metasnf/articles/stability_measures.html)
* [Removing unwanted signal](https://branchlab.github.io/metasnf/articles/confounders.html)
* [Parallel processing](https://branchlab.github.io/metasnf/articles/parallel_processing.html)
* [Label propagation](https://branchlab.github.io/metasnf/articles/label_propagation.html)
* [Imputations](https://branchlab.github.io/metasnf/articles/imputations.html)
* [NMI scores](https://branchlab.github.io/metasnf/articles/nmi_scores.html)

### Plotting

* [Correlation plots](https://branchlab.github.io/metasnf/articles/correlation_plots.html)
* [Similarity matrix heatmaps](https://branchlab.github.io/metasnf/articles/similarity_matrix_heatmap.html)
* [Manhattan plots](https://branchlab.github.io/metasnf/articles/manhattan_plots.html)
* [Alluvial plots](https://branchlab.github.io/metasnf/articles/alluvial_plots.html)
* [Feature plots](https://branchlab.github.io/metasnf/articles/feature_plots.html)

## References

Owner

  • Name: BRANCHlab
  • Login: BRANCHlab
  • Kind: organization

GitHub Events

Total
  • Issues event: 4
  • Watch event: 3
  • Delete event: 6
  • Issue comment event: 2
  • Push event: 146
  • Create event: 11
Last Year
  • Issues event: 4
  • Watch event: 3
  • Delete event: 6
  • Issue comment event: 2
  • Push event: 146
  • Create event: 11

Committers

Last synced: 12 months ago

All Time
  • Total Commits: 869
  • Total Committers: 3
  • Avg Commits per committer: 289.667
  • Development Distribution Score (DDS): 0.012
Past Year
  • Commits: 245
  • Committers: 1
  • Avg Commits per committer: 245.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
psvelayudhan p****u@g****m 859
pamelaxu213 p****u@m****a 8
larunerdman l****1@g****m 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 15
  • Total pull requests: 0
  • Average time to close issues: 23 days
  • Average time to close pull requests: N/A
  • Total issue authors: 5
  • Total pull request authors: 0
  • Average comments per issue: 3.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 0
  • Average time to close issues: 9 days
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 0
  • Average comments per issue: 2.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • apdlbalb (7)
  • Denisesabac (4)
  • pvelayudhan (2)
  • dsabac (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 280 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 6
  • Total maintainers: 1
cran.r-project.org: metasnf

Meta Clustering with Similarity Network Fusion

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 280 Last month
Rankings
Dependent packages count: 27.8%
Dependent repos count: 34.3%
Average: 49.7%
Downloads: 87.0%
Maintainers (1)
Last synced: 9 months ago