From 81127dd001be17e99464e01cd7d6e14e65f616d3 Mon Sep 17 00:00:00 2001 From: erliuu Date: Fri, 4 Dec 2026 01:07:14 -0700 Subject: [PATCH] docs([md] README & Site): Update pkgdown site CSS and README --- DESCRIPTION | 2 + README.md | 70 +++++++++++++++++----------------- _pkgdown.yml | 24 +++++++----- man/figures/MarchR_Diagram.svg | 2 +- man/figures/MarchR_Logo.svg | 1 + pkgdown/extra.scss | 26 +++++++++++++ 6 files changed, 78 insertions(+), 47 deletions(-) create mode 100644 man/figures/MarchR_Logo.svg diff --git a/DESCRIPTION b/DESCRIPTION index 9d6672a..13c6ac6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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) diff --git a/README.md b/README.md index 1027ab0..fbe7dc4 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,33 @@ -# MarchR +

MarchR

[![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) -## 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.
-![MarchR features and workflow diagram](man/figures/MarchR_Diagram.svg) +MarchR features and workflow diagram
## 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 @@ +MarchR — Marching shako (leaf and stem, green braid) wordmarkAAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYTo5MTRiMWUzYS1hZDVmLTRiNjAtYjg0Ni1iNDZjNmMzZDMzODIAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaEMV/h3Yojazko0X+vBi3p0AAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDoxZDIxN2IxMC1lMGU4LTRhMGYtYTk2Zi1hYTU4YTM1NWM2MWRscmVsYXRpb25zaGlwaHBhcmVudE9mAAAB4mp1bWIAAABBanVtZGNib3IAEQAQgAAAqgA4m3ETYzJwYS5hY3Rpb25zLnYyAAAAABhjMnNoGPjZLjcJUp6jDWhkbUc6bAAAAZljYm9yomdhY3Rpb25zgqJmYWN0aW9ua2MycGEub3BlbmVkanBhcmFtZXRlcnOha2luZ3JlZGllbnRzgaJjdXJseC1zZWxmI2p1bWJmPWMycGEuYXNzZXJ0aW9ucy9jMnBhLmluZ3JlZGllbnQudjNkaGFzaFgg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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZYQF1Lv0tR4gD4QhtCpArRH8Z7DGAMmyTKrA8eQCY5REf5MdTKLlm9q59Mtmqf8n3pSUL0lxksMoWNEl1XvUuewk0= 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
  • , including the Tutorials dropdown. +.navbar { + --bs-navbar-nav-link-padding-x: 0.75rem; +} + +.navbar-nav { + gap: 0.25rem; +} + +.navbar-nav > .nav-item.active > .nav-link { + background-color: #1d2021; + border-radius: 0.375rem; +}