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.
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.
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
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 viapip 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
- Hematopoiesis Tutorial for a first scATAC-seq analysis
- Multiome tutorial for joint ATAC and RNA analysis
- Function documentation
- Release notes