CosMAP: Contrastive Manifold Approximation and Projection for Dimensionality Reduction of Omics and Genealogical Data

Fenosoa Randrianjatovo, Maya Saleh, Simon Girard, Amadou Barry
8/11/2026
q-bio.GNcs.LGstat.CO

Official code: FenosoaRandrianjatovo/CosMAP-dr (3 stars, Python, BSD-2-Clause, last commit 2026-08-19).

Abstract

Omics datasets, particularly single-cell RNA sequencing data, are high-dimensional, sparse, noisy, and dominated by zero values, making faithful low-dimensional representation challenging. Existing dimensionality-reduction methods may distort local neighbourhoods, global organization, or the cohesion of meaningful populations, with similar limitations arising in genealogical data.

Show full abstract

We introduce Contrastive Manifold Approximation and Projection (CosMAP), a graph-based unsupervised dimensionality-reduction method for producing faithful and interpretable embeddings. CosMAP extends the graph-based framework of UMAP by combining cosine-similarity neighbourhoods with temperature-normalized contrastive affinities, which are optimized in the embedding space using an attractive--repulsive objective. It further employs a two-phase refinement strategy: an intermediate higher-dimensional representation is first learned and then used to reconstruct the neighbourhood graph and initialize the final low-dimensional embedding. We evaluate CosMAP on MNIST and USPS handwritten-digit datasets, mouse retina and cortex single-cell RNA-sequencing datasets, and a large genealogical kinship dataset derived from BALSAC-CARTaGENE. Compared with state-of-the-art dimensionality-reduction methods, CosMAP produces more coherent visual representations, improves neighbourhood preservation, and provides clearer global organization of digit classes, biological cell populations, and regional genealogical patterns. These results indicate that CosMAP offers a robust framework for exploratory analysis of complex, sparse, high-dimensional data. The implementation is publicly available at https://github.com/FenosoaRandrianjatovo/CosMAP-dr.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause
30Python, ShellMay 13, 20263 months agoBSD-2-Clause

Similar Papers

Cite this paper

@article{randrianjatovo2026cosmap,
  title  = {CosMAP: Contrastive Manifold Approximation and Projection for Dimensionality Reduction of Omics and Genealogical Data},
  author = {Fenosoa Randrianjatovo and Maya Saleh and Simon Girard and Amadou Barry},
  year   = {2026},
  eprint = {2608.11269},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.11269v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.11269.svg)](https://codeofpaper.com/paper/2608.11269)

Discussion