visxhclust

visxhclust: An R Shiny package for visual exploration of hierarchical clustering - Published in JOSS (2022)

https://github.com/rhenkin/visxhclust

Science Score: 93.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
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

clustering data-analysis data-science r r-package r-shiny rstats shiny-apps
Last synced: 6 months ago · JSON representation

Repository

A Shiny app and functions for visual exploration of hierarchical clustering.

Basic Info
Statistics
  • Stars: 4
  • Watchers: 4
  • Forks: 0
  • Open Issues: 2
  • Releases: 2
Topics
clustering data-analysis data-science r r-package r-shiny rstats shiny-apps
Created almost 5 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog Contributing License

README.Rmd

---
output: github_document
---



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

# visxhclust: visual exploration of hierarchical clustering

[![R-CMD-check](https://github.com/rhenkin/visxhclust/workflows/R-CMD-check/badge.svg)](https://github.com/rhenkin/visxhclust/actions)
[![CRAN status](https://www.r-pkg.org/badges/version/visxhclust)](https://CRAN.R-project.org/package=visxhclust)
[![DOI](https://joss.theoj.org/papers/10.21105/joss.04074/status.svg)](https://doi.org/10.21105/joss.04074)


visxhclust is a package that includes a Shiny application for **vis**ual e**x**ploration of **h**ierarchical **clust**ering. It is aimed at facilitating iterative workflows of hierarchical clustering on numeric data. For that, the app allows users to quickly change parameters and analyse and evaluate results with typical heatmaps with dendrograms and other charts. Additionally, it includes lightweight data overview plots such as correlation heatmaps, annotated MDS and PCA plots. On the evaluation side, it builds on existing packages to compute internal validation scores and Gap statistic, as well as Dunn's test to evaluate significant differences between clusters. Many of the functions are also exported to facilitate documenting a complete analysis cycle.

**NEW!** A live demo of the app is running [here](https://rhenkin.shinyapps.io/visxhclust).

## Installation

The latest release can be installed from CRAN:

```{r cran, eval = FALSE}
install.packages("visxhclust")
```

The latest development version can be installed from GitHub:

```{r installation, eval = FALSE}
remotes::install_github("rhenkin/visxhclust")
```

Most dependencies are found in CRAN. However, the heatmap drawing package is part of [Bioconductor](http://www.bioconductor.org/) and may require a separate installation:

```{r bioconductor, eval = FALSE}
install.packages("BiocManager")
BiocManager::install("ComplexHeatmap")
```

## Getting started

To run the app once the package is installed, use the following commands:

```{r example, eval = FALSE}
library(visxhclust)
# Increases max file size to 30 MB
options(shiny.maxRequestSize = 30*1024^2)
run_app()
```

The app includes multiple help points in the interface (look for the question marks), and there are also three guides on how to use tool:

- An [animated guide](https://rhenkin.github.io/visxhclust/articles/visxhclust.html) on loading data and the basic clustering loop. It's also accessible in R by using the command `vignette("visxhclust")`.
- An example of how to [reproduce an analysis](https://rhenkin.github.io/visxhclust/articles/clusterworkflow.html) an analysis using the functions exported by the package. See with `vignette("clusterworkflow")` in R.
- An example of how to [reproduce the evaluation workflow](https://rhenkin.github.io/visxhclust/articles/clusterevaluation.html) using the functions exported by the package. See with `vignette("clusterevaluation")` in R.

## Usage tips and data requirements

To use your data with the tool, you can save a data frame or tibble in an RDS file, or use comma or tab-delimited files, with .csv, .tsv or .txt extensions. The clustering method supported by the tool works only on numeric values; columns containing text will be set aside to annotate the heatmap if so desired. If a column named `ID` exists, it will be used as an internal identifier for rows.

Clustering requires complete datasets with no missing values, NULLs or NAs. If any column contains missing values, it will be set aside to be used as a heatmap annotation. Badly formatted data will also lead to unexpected results in the tool. As an alternative, imputation packages can be used to fill missing data and faulty rows (e.g. text in numeric columns) should be removed before loading the file into the tool. The tool provides limited abilities to help with diagnosing issues and preprocessing data.

# Contributing

Please see the [guide](https://github.com/rhenkin/visxhclust/blob/master/CONTRIBUTING.md) for code contribution and suggestions.

Owner

  • Name: Rafael Henkin
  • Login: rhenkin
  • Kind: user
  • Location: London, United Kingdom
  • Company: Queen Mary University of London

Postdoctoral Researcher/Data Engineer

JOSS Publication

visxhclust: An R Shiny package for visual exploration of hierarchical clustering
Published
February 05, 2022
Volume 7, Issue 70, Page 4074
Authors
Rafael Henkin ORCID
Centre for Translational Bioinformatics, William Harvey Research Institute, Faculty of Medicine and Dentistry, Queen Mary University of London
Michael R. Barnes ORCID
Centre for Translational Bioinformatics, William Harvey Research Institute, Faculty of Medicine and Dentistry, Queen Mary University of London
Editor
Øystein Sørensen ORCID
Tags
clustering interactive visualization visual analytics Shiny

GitHub Events

Total
  • Push event: 1
  • Pull request event: 1
Last Year
  • Push event: 1
  • Pull request event: 1

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 35
  • Total Committers: 2
  • Avg Commits per committer: 17.5
  • Development Distribution Score (DDS): 0.029
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Rafael Henkin r****n@g****m 34
olivroy 5****y 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 4
  • Total pull requests: 12
  • Average time to close issues: 13 days
  • Average time to close pull requests: about 1 month
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.25
  • Average comments per pull request: 0.08
  • Merged pull requests: 11
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • rhenkin (4)
Pull Request Authors
  • rhenkin (11)
  • olivroy (2)
Top Labels
Issue Labels
enhancement (3)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 243 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: visxhclust

A Shiny App for Visual Exploration of Hierarchical Clustering

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 243 Last month
Rankings
Stargazers count: 26.2%
Forks count: 28.8%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Average: 37.1%
Downloads: 65.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • ComplexHeatmap * imports
  • DT * imports
  • RColorBrewer * imports
  • bsplus * imports
  • circlize * imports
  • cluster * imports
  • clusterCrit * imports
  • dendextend * imports
  • dplyr * imports
  • dunn.test * imports
  • fastcluster * imports
  • ggplot2 * imports
  • kableExtra * imports
  • knitr * imports
  • patchwork * imports
  • readr * imports
  • shiny * imports
  • shinycssloaders * imports
  • shinyhelper * imports
  • tidyr * imports
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite