Skip to contents

iSC.MEB: Integrate spatial clustering analysis with hidden Markov random field using empirical Bayes. iSC.MEB is a package for integrating and analyzing multiple spatially resolved transcriptomics (SRT) datasets, developed by the Jin Liu’s lab.

Check out our Package Website for a more complete description of the methods and analyses.

iSC.MEB can be used to compare and contrast experimental datasets in a variety of contexts, for instance:

  • Across experimental batches
  • Across individuals
  • Across different conditions (i.e., case and control)
  • Across datasets with only partially shared cell/domain clusters

Installation

To install the the packages “iSC.MEB”, firstly, install the ‘devtools’ package. Besides, “iSC.MEB” depends on the ‘Rcpp’ and ‘RcppArmadillo’ package, which also requires appropriate setting of Rtools and Xcode for Windows and Mac OS/X, respectively.

install.packages("devtools")
library(devtools)
install_github("XiaoZhangryy/iSC.MEB")

Usage

For usage examples and guided walkthroughs, check the vignettes directory of the repo.

For the users that don’t have set up system properly, the following setup on different systems can be referred. ## Setup on Windows system First, download Rtools; second, add the Rtools directory to the environment variable. Users can follow here to add Windows PATH Environment Variable.

Setup on MacOS system

First, install Xcode. Installation about Xcode can be referred here.

Second, install “gfortran” for compiling C++ and Fortran at here.

Setup on Linux system

For parallel computation on Linux, users must use the following system command to set the C_stack unlimited in case of the error R Error: C stack usage is too close to the limit.

ulimit -s unlimited

If you use conda environment on Linux system and some dependent packages (such as scater) can not normally installed, you can search R package at anaconda.org website. We take the scater package as example, and its search result is https://anaconda.org/bioconda/bioconductor-scater. Then you can install it in conda environment by following command.


conda install -c bioconda bioconductor-scater

For the user not using conda environment, if dependent packages (such as scater) not normally installed are in Bioconductor, then use the following command to install the dependent packages.

# install BiocManager
if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
# install the package on Bioconducter
BiocManager::install(c("scater"))

If dependent packages (such as DR.SC) not normally installed are in CRAN, then use the following command to install the dependent packages.

# install the package on CRAN
install.packages("DR.SC")

Demonstration

For an example of typical iSC.MEB usage, please see our Package Website for a demonstration and overview of the functions included in iSC.MEB.