Git Product home page Git Product logo

visxhclust's Introduction

visxhclust: visual exploration of hierarchical clustering

R-CMD-check CRAN status DOI

visxhclust is a package that includes a Shiny application for visual exploration of hierarchical clustering. 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.

Installation

The latest release can be installed from CRAN:

install.packages("visxhclust")

The latest development version can be installed from GitHub:

remotes::install_github("rhenkin/visxhclust")

Most dependencies are found in CRAN. However, the heatmap drawing package is part of Bioconductor and may require a separate installation:

install.packages("BiocManager")
BiocManager::install("ComplexHeatmap")

Getting started

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

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 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 an analysis using the functions exported by the package. See with vignette("clusterworkflow") in R.
  • An example of how to reproduce the evaluation workflow 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 for code contribution and suggestions.

visxhclust's People

Contributors

rhenkin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

olivroy

visxhclust's Issues

Add support for semicolon as separator

The current assumption is that every CSV file uses comma as separator, which will not be the case if the CSV was exported from Excel from various countries.

Replace clusterCrit methods

clusterCrit is going to be archived from CRAN so it should be replaced. It's probably easier to manually implement some of the metrics or use a simpler package.

Release visxhclust 1.0.1

First release:

Prepare for release:

  • git pull
  • devtools::build_readme()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • git push

Submit to CRAN:

  • usethis::use_version('patch')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • git push
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • git push

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.