Skip to content

topolow

2.0.1

Force-Directed Euclidean Embedding of Dissimilarity Data

0packages depend
2.5Kdownloads / year
66.1%test coverage
13/13checks pass

Overview

About
Maintained by Omid ArhamiFirst published 2025-07-113 releasesCRAN page ↗GitHub ↗

A robust implementation of Topolow algorithm. It embeds objects into a low-dimensional Euclidean space from a matrix of pairwise dissimilarities, even when the data do not satisfy metric or Euclidean axioms. The package is particularly well-suited for sparse, incomplete, and censored (thresholded) datasets such as antigenic relationships. The core is a physics-inspired, gradient-free optimization framework that models objects as particles in a physical system, where observed dissimilarities define spring rest lengths and unobserved pairs exert repulsive forces. The package also provides functions specific to antigenic mapping to transform cross-reactivity and binding affinity measurements into accurate spatial representations in a phenotype space. Key features include: * Robust Embedding from Sparse Data: Effectively creates complete and consistent maps (in optimal dimensions) even with high proportions of missing data (e.g., >95%). * Physics-Inspired Optimization: Models objects (e.g., antigens, landmarks) as particles connected by springs (for measured dissimilarities) and subject to repulsive forces (for missing dissimilarities), and simulates the physical system using laws of mechanics, reducing the need for complex gradient computations. * Automatic Dimensionality Detection: Employs a likelihood-based approach to determine the optimal number of dimensions for the embedding/map, avoiding distortions common in methods with fixed low dimensions. * Noise and Bias Reduction: Naturally mitigates experimental noise and bias through its network-based, error-dampening mechanism. * Antigenic Velocity Calculation (for antigenic data): Introduces and quantifies "antigenic velocity," a vector that describes the rate and direction of antigenic drift for each pathogen isolate. This can help identify cluster transitions and potential lineage replacements. * Broad Applicability: Analyzes data from various objects that their dissimilarity may be of interest, ranging from complex biological measurements such as continuous and relational phenotypes, antibody-antigen interactions, and protein folding to abstract concepts, such as customer perception of different brands. Methods are described in the context of bioinformatics applications in Arhami and Rohani (2025a) doi:10.1093/bioinformatics/btaf372, and mathematical proofs and Euclidean embedding details are in Arhami and Rohani (2025b) doi:10.48550/arXiv.2508.01733.

Install

Health

CRAN checks
13OK
Slowest check: 5.4 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.30
66.1%
Coverage · measured lines
100%
Documentation · exports
12
Dependencies · direct
Check history
  • OK2026-06-08
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-07
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,273 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
87%
Documented parameters
94%
Return-value docs
97%
References docs
0%

Downloads

2.5K
CRAN downloads in the past year
Rank #20,648 · ~7/day · ~211/mo
Daily download trend is not available in this view yet.
16630 days
55590 days
2.5K1 year
Compare downloads with other packages →
Also on95 r2u33 autocran

Repository

Repository
6Stars
3Forks
0Open issues
0Open PRs
11Releases
252Commits
3Contributors
antigenic-cartographyimputation-algorithmmultidimensional-scalingphenotype-predictioneuclidean-distancesnon-metric
252 commits · Last activity 2026-06-23 · 0% stars, 30d

Stars over time

2025-07-11 · 32026-07-07 · 6

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/omid-arhami/topolow on 2026-07-26.

Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
CRAN-SUBMISSION
Research and citation (1)
JOSS paper
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
25 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.1Latest
    2025-08-31 · current release · diff ↗
  • 2.0.0
    2025-08-19 · diff ↗
  • 1.0.0
    2025-07-11
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-07-11
Total releases
3 / 1 yrs
License
BSD_3_clause + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
333 KB / 5 files
Download size
1.5 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →