Skip to content
GreenleafLabPublic

About

MarchR: Multi-{modal, dataset} Analysis of Regulatory Chromatin in R

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MarchR

R-CMD-check Lifecycle: experimental

Multi-Modal Multi-Dataset Disk-Backed Analysis

MarchR is feature-rich R package for large-scale single-cell multi-omic processing and analysis. Built on top of BPCells disk-backed streaming and extended ArchR functionality. It provides user-friendly object-oriented interfaces for managing genomic datasets, matrices, fragments, and associated metadata.

Public Beta. MarchR is under active development and the API may change. Install a tagged release for reproducible analyses.


MarchR features and workflow diagram


Installation

Requirements

  • R>=4.4.0
  • C++20 compiler
  • HDF5 C library for BPCells.
Debian / Ubuntu Linux

On Debian or Ubuntu, install the build tools and libraries needed to build MarchR and its R dependencies from source.

sudo apt update
sudo apt install build-essential gfortran pkg-config \
  libhdf5-dev libcurl4-openssl-dev libpng-dev
macOS

On macOS, install the Xcode Command Line Tools and HDF5 via Homebrew. On Apple Silicon, use arm64 builds of R and HDF5. BPCells installation guide

xcode-select --install
brew install hdf5

Install MarchR

In R, install the beta release and its required packages. remotes installs BPCells from GitHub and the other dependencies from CRAN and Bioconductor.

install.packages(c("remotes", "BiocManager"), repos = "https://cloud.r-project.org")
options(repos = BiocManager::repositories())  # CRAN + Bioconductor
remotes::install_github("GreenleafLab/MarchR@v1.0.0")

Open a fresh R session to check that MarchR loads and can create a project.

library(MarchR)
packageVersion("MarchR")
MarchRProject()

Optional dependencies

Install the packages for the workflows you use.

Optional R packages

install.packages(c(
  "harmony",      # batch correction / integration
  "Seurat",       # RNA integration
  "Rtsne",        # t-SNE embeddings
  "ggseqlogo"     # motif sequence logos (plot_motif_logo)
))

Genomic ranges, motif analysis, and export packages are available from Bioconductor.

BiocManager::install(c(
  "chromVAR", "motifmatchr",     # TF motif deviations & matching
  "TFBSTools", "JASPAR2020",     # motif databases
  "BSgenome", "Biostrings",      # genome sequence access
  "BSgenome.Hsapiens.UCSC.hg19",  # use the reference for your genome assembly
  "GenomicRanges", "IRanges",
  "SummarizedExperiment", "S4Vectors",
  "Rsamtools"                   # bgzip and Tabix export
))

Install curated motif sets from GitHub for motif enrichment or chromVAR.

remotes::install_github("GreenleafLab/chromVARmotifs")

External tools

  • Peak calling requires MACS (MACS3 preferred, MACS2 supported) on your PATH. Install via pip install macs3.

Troubleshooting

Known Issues

igraph 2.3.4 - Leiden clustering fails with a memory allocation error on a large dataset

If Leiden clustering with igraph 2.3.4 fails with a memory allocation error on a large dataset, install igraph 2.2.2 and restart R before loading MarchR. Upstream igraph fix

remotes::install_version("igraph", version = "2.2.2")

Feedback

Report beta bugs and installation problems on GitHub. Include the command that failed, the full error, and the output of sessionInfo(). MarchR issues

Documentation

Citation

If you use MarchR in your research, please cite:

Liu ESX, Abdi I, Corces MR, Greenleaf WJ (2026). MarchR: Multi-Assay Multi-Dataset
Disk-Backed Analysis. R package version 1.0.0. https://greenleaflab.github.io/MarchR/

About

MarchR: Multi-{modal, dataset} Analysis of Regulatory Chromatin in R

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages