Skip to content

Repository files navigation

landscapeR

An R package for multi-layer omic state-transition analysis.

Combines comparative decomposition (GSVD / HO-GSVD) with quasi-potential dynamics to identify tipping points and irreversibility in biological state transitions — generalising the Frankhouser/Rockne AML work to arbitrary multi-omic contexts.

What it does

  1. Stage 1 — decomposition: builds candidate state-space axes from one or more omic layers. Biological target and nuisance meaning is assigned only through the declared metadata-association, proposal, and human-confirmation workflow; unsupervised decomposition does not label an axis by itself.

  2. Stage 2 — Quasi-potential dynamics: fits U(x) = −log p(x) on those coordinates and reads out critical points (wells, barriers) and barrier heights — the tipping points and irreversibility of state transitions.

Component galleries are descriptive diagnostics. The planned structured metadata atlas/proposal workflow—not a plot heuristic—will recommend a target biological axis for human confirmation.

Install

Platform: macOS and Linux only. Windows is not supported (ADR 0014).

# install.packages("pak")
pak::pak("drejom/landscapeR")

Bioconductor dependencies (MultiAssayExperiment, S4Vectors) are resolved automatically via pak.

Quick start

library(landscapeR)

# Single-omic-layer synthetic double-well calibration control
std <- synthetic_k1_double_well_control(n = 80L, p = 100L, seed = 42L)

# Stage 1: explicit registered SVD
svd_ctor <- get_strategy("Decomposer", "svd")
std1 <- decompose(svd_ctor(), std)@value
plot_spectrum(std1)

# Stage 2: cross-sectional calibration output only
dynamics_ctor <- get_strategy("DynamicsEstimator", "kde_logdensity")
std2 <- estimate_dynamics(dynamics_ctor(), std1)@value
plot_potential(std2)  # critical-point classifications are off by default

Package plots use the same publication visual grammar: quiet black, white, and grey structure; red only for the declared focal contrast; visible missing-data marks; and explicit categorical or continuous scales. The public helpers are theme_landscapeR(), scale_colour_landscapeR(), scale_fill_landscapeR(), and save_landscapeR_plot(). The save helper defaults to a 100 mm square, 450 dpi figure; pass explicit dimensions when a journal layout requires another aspect ratio.

Every public scientific plot carries a separate, state-derived caption. Keep the graphic uncluttered and retrieve the corresponding publication text with scientific_caption(plot), for example:

potential_plot <- plot_potential(std2)
scientific_caption(potential_plot)

The caption names the plotted layer or component, metadata and missingness encodings, applicable sampling-design fields, model references or uncalibrated diagnostics, and the scientific claim boundary.

For destructive-sampling developmental designs, synthetic_branching_control() provides a disclosed two-branch visualisation and development control. It is not validation evidence. Reproducible source for the July 2026 informal presentation is retained under inst/extra/presentations/2026-07-22-ai-meeting/; the tracked acquisition scripts and normalized metadata for the future Pogona analysis are documented in data-raw/pogona/README.md. Those local development manifests treat one expression-matrix column as one canonical observation, expose declared tissue pools without counting their libraries as biological replicates, and retain unresolved registry conflicts as exclusions. They are prepared inputs for future exploratory work, not packaged example data or validation evidence.

Status

Active development. ROADMAP.md is the single authoritative run sheet for scope, sequencing, dependencies, and the next task. The pkgdown site presents current package behavior and evidence, not the work schedule.

Reference

  • Rockne et al. Cancer Research 2020 · PMID 32414754
  • Frankhouser et al. Leukemia 2024 · PMID 38307941

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages