Skip to contents

All Functions

Package Overview

MarchR-package MarchR
MarchR: Multi-Assay Multi-Dataset Disk-Backed Analysis.
MarchRProject()
Create a MarchR project
MarchRDataset()
Create a MarchR dataset
Genome()
Create a MarchR genome reference

Project & Dataset Management

create_example_project()
Create a comprehensive example MarchR project with cell and feature metadata
get_tutorial_data()
Download tutorial fragment files
insert_dataset()
Insert a dataset to a MarchRProject object.
select_dataset()
Select a dataset from a MarchRProject.
load_project()
Load a MarchRProject saved by save_project()
save_project()
Save a MarchRProject to a directory

Matrix Operations

add_matrix(<MarchRDataset>) add_matrix(<MarchRProject>)
Add a matrix.
get_matrix()
Get a matrix object from a MarchRDataset or MarchRProject
get_assay_names(<MarchRDataset>) get_assay_names(<MarchRProject>)
Get assay names from a MarchRProject or MarchRDataset.
get_feature_names(<MarchRDataset>) get_feature_names(<MarchRProject>)
Get all feature names
get_values
Retrieve one assay's matrix from a project or dataset.
import_feature_matrix_10x()
Import a 10x multiome RNA feature matrix into an ATAC dataset

Fragment Operations

add_fragments(<MarchRDataset>) add_fragments(<MarchRProject>)
Add fragments to a MarchRDataset or a MarchRProject
get_fragments(<MarchRDataset>) get_fragments(<MarchRProject>)
Get a fragment object from a MarchRDataset or MarchRProject
get_fragment_names(<MarchRDataset>) get_fragment_names(<MarchRProject>)
Get all fragment names
remove_fragments(<MarchRDataset>) remove_fragments(<MarchRProject>)
Remove fragments from a MarchRDataset or MarchRProject
add_tile_matrix(<MarchRDataset>) add_tile_matrix(<MarchRProject>)
Add a tile matrix from fragment data

Quality Control

qc_matrix(<MarchRDataset>) qc_matrix(<MarchRProject>)
Perform quality control on matrices based on read depth per cell and feature prevalence
qc_fragments(<MarchRDataset>) qc_fragments(<MarchRProject>)
Perform quality control on fragments based on fragment count and TSS enrichment
get_matrix_qc(<MarchRDataset>) get_matrix_qc(<MarchRProject>)
Get matrix qc metrics
get_fragment_qc(<MarchRDataset>) get_fragment_qc(<MarchRProject>)
Get fragment qc metrics
run_matrix_qc()
Run quality control on matrices based on read depth per cell and feature prevalence. Returns both the filtered matrix and the qc metrics.
run_fragment_qc()
Run pre-defined quality controls on frags that filters based on the number of frags and tss enrichment on each cell. Returns both the filtered fragments and the qc metrics.

Normalizations

Feature Selection

Dimensionality Reduction

DimReduction() project()
Barebones definition of a DimReduction class.
project_bulk_atac()
Project bulk ATAC-seq samples into a single-cell latent space
PCA(<default>) PCA(<MarchRProject>) project(<PCA>)
Principal Component Analysis (PCA) with log normalization and variable gene selection
LSI(<default>) LSI(<MarchRProject>) project(<LSI>)
Perform latent semantic indexing (LSI) on a matrix.
IterativeLSI(<default>) project(<IterativeLSI>) IterativeLSI(<MarchRProject>)
Run Iterative LSI on a matrix.
dim_reduction_names(<MarchRProject>) get_dim_reduction(<MarchRProject>) add_dim_reduction(<MarchRProject>) remove_dim_reduction(<MarchRProject>) project_dim_reduction(<MarchRProject>)
MarchRProject DimReduction methods
add_combined_dims()
Combine per-modality embeddings into a joint embedding

Integration

run_harmony()
Run Harmony on dimensionality reductions
add_gene_integration_matrix()
Integrate scATAC gene scores with an scRNA reference

Genome & Annotations

set_gene_annotations(<Genome>) set_gene_annotations(<MarchRProject>)
Add gene annotations to an object
set_blacklist(<Genome>) set_blacklist(<MarchRProject>)
Add a blacklist to an object
set_chrom_sizes(<Genome>) set_chrom_sizes(<MarchRProject>)
Set chromosome sizes for a Genome or MarchRProject object
get_gene_annotations(<Genome>) get_gene_annotations(<MarchRProject>)
Get gene annotations from a Genome or MarchRProject object.
get_blacklist(<Genome>) get_blacklist(<MarchRProject>)
Get the blacklist from a Genome or MarchRProject object.
get_chrom_sizes(<Genome>) get_chrom_sizes(<MarchRProject>)
Get chromosome sizes from a Genome or MarchRProject object
set_genome_sequence(<Genome>) set_genome_sequence(<MarchRProject>)
Set the BSgenome reference for a Genome or MarchRProject object

Cell & Feature Metadata

Subsetting & Alignment

subset_cells()
Subset cells in a MarchRDataset/MarchRProject object.
subset_assays(<MarchRDataset>) subset_assays(<MarchRProject>)
Subset assays in a MarchRDataset/MarchRProject object.
subset_project(<MarchRDataset>)
Subset matrices in a MarchRDataset object.
subset_project(<MarchRProject>)
Subset matrices in a MarchRProject object.
align_cells(<MarchRDataset>) align_cells(<MarchRProject>)
Coerce all matrices in datasets to use the same cells
align_assays()
Align assays in a MarchRProject.
validate_cell_alignment(<MarchRDataset>) validate_cell_alignment(<MarchRProject>)
Check matrices and fragments to see if they all have the same cells.
validate_assay_alignment()
Check whether assays in a MarchRProject have the same features

Visualization

plot_knee
Create a knee plot for single-cell QC visualization
plot_tss_scatter()
Plot TSS enrichment vs. fragment count
plot_tss_profile()
Plot TSS insertion profile
plot_fragment_length()
Plot fragment size distribution

Clustering

add_clusters(<default>) add_clusters(<MarchRProject>)
Perform clustering and add labels to cell metadata

Embeddings

add_umap(<default>) add_umap(<MarchRDataset>) add_umap(<MarchRProject>)
Add UMAP embedding to a MarchR object
add_tsne(<default>) add_tsne(<MarchRDataset>) add_tsne(<MarchRProject>)
Add t-SNE embedding to a MarchR object
plot_embedding()
Plot embedding with ArchR-compatible aesthetics

Gene Scores & Modules

add_gene_score_matrix(<MarchRDataset>) add_gene_score_matrix(<MarchRProject>)
Add a gene score matrix from fragment data
plot_gene_scores()
Plot gene scores on a UMAP embedding
add_module_score(<MarchRDataset>) add_module_score(<MarchRProject>)
Add module scores to a MarchR object

Peak Calling & Coverage

add_group_coverages(<default>) add_group_coverages(<MarchRProject>)
Create pseudobulk replicate groups for coverage-based analyses
get_group_coverages()
Retrieve stored pseudobulk replicate groups
add_reproducible_peak_set(<MarchRProject>)
Call peaks and build a reproducible peak set
add_peak_matrix(<MarchRProject>)
Create a peaks x cells insertion count matrix
add_peak_gc(<MarchRProject>)
Add GC content to the peak set
get_peak_set()
Retrieve the stored peak set

Peak & Motif Annotations

add_peak_annotations(<MarchRProject>)
Add a generic peak annotation to a MarchRProject
get_peak_annotation(<MarchRProject>)
Retrieve a stored peak annotation
add_motif_annotations(<MarchRProject>)
Annotate peaks with TF motif matches
get_motifs(<MarchRProject>)
Retrieve per-annotation motif profiles
plot_motif_logo(<matrix>) plot_motif_logo(<PWMatrix>) plot_motif_logo(<PFMatrix>) plot_motif_logo(<ICMatrix>) plot_motif_logo(<list>) plot_motif_logo(<PWMatrixList>) plot_motif_logo(<PFMatrixList>) plot_motif_logo(<MarchRProject>)
Plot a motif as a sequence logo
peak_annotation_enrichment(<MarchRProject>)
Hypergeometric enrichment of marker peaks against a peak annotation
custom_enrichment(<MarchRProject>)
Hypergeometric enrichment of arbitrary foreground GRanges
get_matches(<MarchRProject>)
Retrieve the peak x annotation match matrix
get_positions(<MarchRProject>)
Retrieve per-annotation positions

Motif Deviations

add_deviations_matrix(<MarchRProject>)
Compute per-cell ChromVAR-style motif deviations
add_background_peaks(<MarchRProject>)
Compute bias-matched background peaks
get_background_peaks(<MarchRProject>)
Retrieve the stored background peaks
get_var_deviations(<MarchRProject>)
Rank motifs by cross-cell variance of z-scores
plot_var_deviations()
Variance scatter plot of motif deviations
add_kmer_bias(<MarchRProject>)
Compute Tn5 k-mer bias tables per pseudobulk replicate
get_kmer_bias(<MarchRProject>)
Retrieve cached k-mer bias tables

Peak-to-Gene & Co-accessibility

add_co_accessibility()
Compute peak-peak co-accessibility
get_co_accessibility()
Retrieve co-accessibility links
add_peak2gene_links()
Compute peak-to-gene links
get_peak2gene_links()
Retrieve peak-to-gene links
make_knn_pseudobulks()
Build low-overlap KNN metacell groups from an embedding

Pseudobulk Export

pseudobulk_fragments(<MarchRProject>)
Group cells into pseudobulk fragment sets
write_pseudobulk_fragments()
Write one fragment file per pseudobulk group
write_pseudobulk_coverage()
Write per-group base-resolution insertion coverage
write_pseudobulk_bigwig()
Convert pseudobulk coverage bedGraphs to bigWig
write_pseudobulk_chrom_sizes()
Write a chrom.sizes file for the pseudobulk export
write_pseudobulk_peaks()
Write pseudobulk peaks in narrowPeak format
write_pseudobulk_manifest()
Write the pseudobulk manifest as TSV and JSON
write_sce2g_inputs()
Write pseudobulk inputs for the scE2G enhancer-gene pipeline

Doublet Detection

add_doublet_scores()
Add doublet scores to a MarchR object
score_doublets()
Score cells based on their proximity to simulated doublets using k-nearest neighbors algorithms
simulate_doublets()
Generate matrix of simulated doublets
project_doublets()
Compute models and embeddings of cells and simulated doublets onto a shared lower-dimensional space (LSI and UMAP)
filter_doublets()
Filter doublets from MarchRProject
plot_doublet_scores()
Plot doublet scores on UMAP embedding
add_doublet_umap()
Store a simulated doublet UMAP coordinates on a dataset
get_doublet_umap()
Retrieve simulated doublet UMAP from a dataset
remove_doublet_umap()
Remove doublet_umap matrix from a dataset

Marker Features

get_marker_features()
Retrieve stored marker feature results
add_marker_features(<default>) add_marker_features(<MarchRProject>)
Compute and store marker features
MarkerResult()
MarkerResult S3 class
plot_marker_heatmap()
Marker gene heatmap
plot_markers()
Marker MA / Volcano plots

Imputation

add_impute_weights()
Add MAGIC imputation weights to a MarchRProject
get_impute_weights()
Get imputation weights from a MarchRProject
impute_matrix()
Impute a matrix using MAGIC weights

Footprinting

get_footprints(<MarchRProject>)
Compute TF footprints around motif positions
plot_footprints
Plot TF footprints from a get_footprints() SummarizedExperiment

Genome Browser

plot_browser_track()
Plot browser tracks for a genomic region

Enrichment Visualization

plot_enrichment_heatmap()
Heatmap of group x motif enrichment

Palettes & Themes

palette_continuous()
ArchR-compatible continuous color palettes
palette_discrete()
ArchR-compatible discrete color palettes
theme_archr()
ArchR-compatible ggplot2 theme

Parallelization

get_threads()
Get the default number of threads for MarchR functions
set_threads()
Set the default number of threads for MarchR functions

Trajectory Analysis

add_trajectory()
Fit a supervised pseudotime trajectory
get_trajectory()
Summarize feature dynamics along a trajectory
plot_trajectory()
Plot a trajectory on an embedding
plot_trajectory_heatmap()
Heatmap of feature dynamics across a trajectory
plot_trajectory_profile()
Plot a feature's dynamics across pseudotime

Utilities

strip_cell_prefix()
Strip dataset prefix from cell names added when inserting into MarchRProject
gene_region()
Get genomic region for a gene symbol