MyNixOS website logo
Description

Single-Cell Decomposition using Hierarchical Autoencoder.

Provides a fast and accurate pipeline for single-cell analyses. The 'scDHA' software package can perform clustering, dimension reduction and visualization, classification, and time-trajectory inference on single-cell data (Tran et.al. (2021) <DOI:10.1038/s41467-021-21312-2>).

scDHA

The scDHA software package can perform cell segregation through unsupervised learning, dimension reduction and visualization, cell classification, and time-trajectory inference on single-cell RNA sequencing data.

News

  • The package is now available on CRAN.
  • The machine learning framework is changed from Tensorflow to Torch. Torch can be called directly from R. Python environment is no longer required.

How to install

  • The package can be installed from CRAN or this repository.
  • Using CRAN: install.packages('scDHA')
  • Using devtools:
    • Install devtools: utils::install.packages('devtools')
    • Install the package using: devtools::install_github('duct317/scDHA')
      Or, install with manual and vignette: devtools::install_github('duct317/scDHA', build_manual = T, build_vignettes = T)
  • When the package is loaded, it will check for the necessary libtorch: library(scDHA)
    libtorch can be installed using: torch::install_torch()

To run the Goolam example

  • Load the package: library(scDHA)
  • Load Goolam dataset: data('Goolam'); data <- t(Goolam$data); label <- as.character(Goolam$label)
  • Log transform the data: data <- log2(data + 1)
  • Generating clustering result: result <- scDHA(data, seed = 1)
  • The clustering result can be found here: cluster <- result$cluster
  • Calculating adjusted Rand Index using mclust package: mclust::adjustedRandIndex(cluster,label)
  • A detailed tutorial on how to use scDHA package is available at http://scdha.tinnguyen-lab.com/
    Or, a vignette in R Notebook format is available here

How to use the package for new data

To use our package for new data, the package includes these functions:

  • scDHA: main function, doing dimension reuction and clustering. The input is a matrix with rows as samples and columns as genes.
  • scDHA.vis: visualization. The input is demension reduction output.
  • scDHA.pt: generating pseudotime. The input is demension reduction output.
  • scDHA.class: classification new data using available one. The inputs consist of train data matrix, train data label and new data matrix.
  • The result is reproducible by setting seed for these functions.
  • More detail about parameters for each function could be found in the manual.

Citation

Duc Tran, Hung Nguyen, Bang Tran, Carlo La Vecchia, Hung N. Luu, Tin Nguyen (2021). Fast and precise single-cell data analysis using a hierarchical autoencoder. Nature Communications, 12, 1029. doi: 10.1038/s41467-021-21312-2 (link)

Metadata

Version

1.2.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows