[](https://github.com/GreenleafLab/MarchR/actions/workflows/R-CMD-check.yaml)
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
-## 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.
-
+
## 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.
+
+
+Debian / Ubuntu Linux
On Debian or Ubuntu, install the build tools and libraries needed to build
MarchR and its R dependencies from source.
@@ -32,6 +38,11 @@ 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](https://bnprks.github.io/BPCells/)
@@ -41,6 +52,8 @@ xcode-select --install
brew install hdf5
```
+
+
### Install MarchR
In R, install the beta release and its required packages. `remotes` installs
@@ -65,6 +78,8 @@ MarchRProject()
Install the packages for the workflows you use.
+Optional R packages
+
```r
install.packages(c(
"harmony", # batch correction / integration
@@ -94,13 +109,19 @@ Install curated motif sets from GitHub for motif enrichment or chromVAR.
remotes::install_github("GreenleafLab/chromVARmotifs")
```
-#### External tools
+
+
+### 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
+
+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.
@@ -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.
+
-```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:
diff --git a/_pkgdown.yml b/_pkgdown.yml
index e56a617..17ca46d 100644
--- a/_pkgdown.yml
+++ b/_pkgdown.yml
@@ -55,11 +55,24 @@ template:
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
@@ -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
diff --git a/man/figures/MarchR_Diagram.svg b/man/figures/MarchR_Diagram.svg
index 39478be..e784f49 100644
--- a/man/figures/MarchR_Diagram.svg
+++ b/man/figures/MarchR_Diagram.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/man/figures/MarchR_Logo.svg b/man/figures/MarchR_Logo.svg
new file mode 100644
index 0000000..e467c56
--- /dev/null
+++ b/man/figures/MarchR_Logo.svg
@@ -0,0 +1 @@
+
diff --git a/pkgdown/extra.scss b/pkgdown/extra.scss
index 899a2f2..b89b662 100644
--- a/pkgdown/extra.scss
+++ b/pkgdown/extra.scss
@@ -46,3 +46,29 @@ pre code span.cn {
[data-bs-theme="dark"] pre code span.cn {
color: #8b949e !important;
}
+
+// Package version beside the navbar title, shown as a badge. The navbar background is
+// fixed in both themes, so one rule covers light and dark. !important beats the
+// `.text-muted` utility pkgdown puts on the version element.
+.navbar .nav-text {
+ padding: 0.15rem 0.5rem;
+ border-radius: 0.25rem;
+ background-color: #504945;
+ color: #ebdbb2 !important;
+ font-size: 0.8rem;
+}
+
+// Navbar links: wider spacing, and a darker box behind the current page's section. pkgdown
+// marks the current section with .active on the