Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Authors@R: c(
Date: 2026-12-02
Description: Multi-Assay Multi-Dataset Disk-Backed Analysis.
License: MIT + file LICENSE
URL: https://greenleaflab.github.io/MarchR/, https://github.com/GreenleafLab/MarchR
BugReports: https://github.com/GreenleafLab/MarchR/issues
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
Expand Down
70 changes: 34 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
# MarchR
<h1 align="center"><a href="https://greenleaflab.github.io/MarchR/"><img src="man/figures/MarchR_Logo.svg" alt="MarchR" width="350"></a></h1>

<!-- badges: start -->
[![R-CMD-check](https://github.com/GreenleafLab/MarchR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/GreenleafLab/MarchR/actions/workflows/R-CMD-check.yaml)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
<!-- badges: end -->

## Multi-Assay Multi-Dataset Disk-Backed Analysis
## 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](https://github.com/bnprks/BPCells) disk-backed streaming and extended [ArchR](https://github.com/GreenleafLab/ArchR) functionality. It provides user-friendly object-oriented interfaces for managing genomic datasets, matrices, fragments, and associated metadata.

MarchR is an R package for analyzing large-scale multi-omics datasets with disk-backed storage, built on top of [BPCells](https://github.com/bnprks/BPCells), and feature-rich [ArchR](https://github.com/GreenleafLab/ArchR) functionality. It provides object-oriented interfaces for managing genomic datasets containing matrices (gene expression, ATAC-seq), fragments (ATAC-seq), and associated metadata.

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

<hr>

![MarchR features and workflow diagram](man/figures/MarchR_Diagram.svg)
<img src="man/figures/MarchR_Diagram.svg" alt="MarchR features and workflow diagram">
<hr>

## Installation

### Requirements

MarchR requires **R>=4.4.0**, a **C++20 compiler**, and the **HDF5 C library** for BPCells.
- **R>=4.4.0**
- **C++20 compiler**
- **HDF5 C library** for BPCells.

<details>
<summary><b>Debian / Ubuntu Linux</b></summary>

On Debian or Ubuntu, install the build tools and libraries needed to build
MarchR and its R dependencies from source.
Expand All @@ -32,6 +38,11 @@ sudo apt install build-essential gfortran pkg-config \
libhdf5-dev libcurl4-openssl-dev libpng-dev
```

</details>

<details>
<summary><b>macOS</b></summary>

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](https://bnprks.github.io/BPCells/)
Expand All @@ -41,6 +52,8 @@ xcode-select --install
brew install hdf5
```

</details>

### Install MarchR

In R, install the beta release and its required packages. `remotes` installs
Expand All @@ -65,6 +78,8 @@ MarchRProject()

Install the packages for the workflows you use.

<b>Optional R packages</b>

```r
install.packages(c(
"harmony", # batch correction / integration
Expand Down Expand Up @@ -94,13 +109,19 @@ Install curated motif sets from GitHub for motif enrichment or chromVAR.
remotes::install_github("GreenleafLab/chromVARmotifs")
```

#### External tools
</details>

### External tools

- **Peak calling** requires [MACS](https://github.com/macs3-project/MACS)
(MACS3 preferred, MACS2 supported) on your `PATH`. Install via
`pip install macs3`.

#### Troubleshooting large Leiden graphs
## Troubleshooting

### Known Issues
<details>
<summary><b>igraph 2.3.4 - Leiden clustering fails with a memory allocation error on a large dataset</b></summary>

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.
Expand All @@ -110,46 +131,23 @@ on a large dataset, install igraph 2.2.2 and restart R before loading MarchR.
remotes::install_version("igraph", version = "2.2.2")
```

#### Development setup

To work on MarchR from a local clone, install the system requirements and run
the setup script from the repository root.
</details>

```r
source("package_setup_script.R")
```

### Core Architecture
### Feedback

MarchR is built around three main classes:
Report beta bugs and installation problems on GitHub. Include the command that
failed, the full error, and the output of `sessionInfo()`.
[MarchR issues](https://github.com/GreenleafLab/MarchR/issues)

- **`MarchRProject`**: Top-level container managing multiple datasets, genome annotations, dimensionality reductions, and analysis results
- **`MarchRDataset`**: Single dataset containing aligned matrices, fragments, cell metadata, QC results, and doublet scores
- **`Genome`**: Reference genome information - chromosome sizes, gene/transcript annotations, blacklist regions

### Documentation
## Documentation

- [Hematopoiesis tutorial](vignettes/marchr_hematopoiesis.Rmd) for a first scATAC-seq analysis
- [Multiome tutorial](vignettes/marchr_multiome.Rmd) for joint ATAC and RNA analysis (work in progress)
- [Function documentation](man/)
- [Release notes](NEWS.md)

Developers can build and preview the rendered tutorials and function reference locally.

```r
install.packages("pkgdown")
pkgdown::build_site()
pkgdown::preview_site()
```

The first tutorial build downloads the hematopoiesis fragment files and runs the complete analysis.

### Feedback

Report beta bugs and installation problems on GitHub. Include the command that
failed, the full error, and the output of `sessionInfo()`.
[MarchR issues](https://github.com/GreenleafLab/MarchR/issues)

### Citation

If you use MarchR in your research, please cite:
Expand Down
24 changes: 14 additions & 10 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,24 @@ template:
</script>
navbar:
structure:
left: [reference, tutorials]
left: [home, quick_tutorial, reference, tutorials]
right: [search, github, lightswitch]
components:
home:
icon: fa-house
href: index.html
aria-label: Home
quick_tutorial:
text: Quick Tutorial
icon: fa-graduation-cap
href: articles/marchr_hematopoiesis.html
reference:
text: Reference
icon: fa-code
href: reference/index.html
tutorials:
text: Tutorials
icon: fa-book-open
menu:
- text: Hematopoiesis
href: articles/marchr_hematopoiesis.html
Expand Down Expand Up @@ -201,15 +214,6 @@ reference:
- add_peak_matrix
- add_peak_gc
- get_peak_set
- subtitle: Pseudobulk Export
contents:
- pseudobulk_fragments
- write_pseudobulk_fragments
- write_pseudobulk_coverage
- write_pseudobulk_bigwig
- write_pseudobulk_peaks
- write_pseudobulk_chrom_sizes
- write_pseudobulk_manifest
- subtitle: Peak & Motif Annotations
contents:
- add_peak_annotations
Expand Down
2 changes: 1 addition & 1 deletion man/figures/MarchR_Diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading