Skip to main content

FeatureMAP Illustration

FeatureMAP: Feature-preserving Manifold Approximation and Projection

Visualizing single-cell data is essential for understanding cellular heterogeneity and dynamics. FeatureMAP enhances this process by introducing gene projection and transition/core states, providing deeper insights into cellular states. While traditional methods like UMAP and t-SNE effectively capture clustering, they often overlook critical gene-level information. FeatureMAP addresses this limitation by integrating concepts from UMAP and PCA, preserving both clustering structures and gene feature variations within a low-dimensional space.

Description

FeatureMAP presents a novel approach by enhancing manifold learning with pairwise tangent space embedding, ensuring the retention of crucial cellular data features. It introduces two visualization plots: expression embedding (GEX) and variation embedding (GVA).

Here, we demonstrate its effectiveness using a synthetic dataset from (BEELINE) based on a bifurcation model. Compared to UMAP, FeatureMAP-GEX better preserves cell density, while FeatureMAP-GVA clearly delineates developmental paths.

Transition and Core States

Besides the two-dimensional visualization, FeatureMAP presents three key concepts:

  1. Gene Projection: Estimating and projecting gene feature loadings, where arrows indicate the direction and magnitude of gene expression changes. Gene Projection

  2. Transition and Core States: Transition and core states are computationally defined based on cell density, curvature, and betweenness centrality. Transition states are characterized by the lowest cell densities, maximal curvature, and highest betweenness centrality, whereas core states exhibit the highest cell densities, minimal curvature, and lowest betweenness centrality.

    Transition and Core States
  3. Differential Gene Variation (DGV) Analysis: The third concept introduces differential gene variation (DGV) analysis, which compares transition and core states to identify genes with significant variability. By quantifying gene variation between dynamic transition states and stable core states, DGV highlights regulatory genes likely driving cell-state transitions and differentiation.

    DGV

FeatureMAP, a feature-preserving method, enhances the visualization and interpretation of single-cell data. Through analyses of both synthetic and real scRNA-seq data (TUTORIAL), FeatureMAP effectively captures intricate clustering structures and identifies key regulatory genes, offering significant advantages for single-cell data analysis.

Getting Started

Dependencies

  • Python 3.8 or higher
  • Required Python libraries: numpy, scipy, matplotlib, umap-learn, scikit-learn
  • Operating System: Any (Windows, macOS, Linux)

Installation

Install directly using pip:

pip install featuremap

How to use FeatureMAP

Data Visualization

To apply FeatureMAP in Python with a data matrix (data), where rows represent cells and columns represent genes, use the following command:

import featuremap
v_emb = featuremap.FeatureMAP(output_variation=True).fit_transform(data)
x_emb = featuremap.FeatureMAP(output_variation=False).fit_transform(data)


Parameters:

output_variation: bool (False by default). Decide to generate expression embedding or variation embedding.

Outputs

x_emb: expression embedding to show the clustering

v_emb: variation embedding to show the trajectory

Documentation

More tutorials are at https://featuremap.readthedocs.io/en/latest/index.html.

Citation

Our FeatureMAP alogrithm is based on the paper

Yang, Y., Gong, J., Sun, H. et al. Feature-preserving manifold approximation and projection to analyze single-cell data. Nat Comput Sci (2026). https://doi.org/10.1038/s43588-026-00970-6

Yang, Yang, et al. "Interpretable dimensionality reduction by feature preserving manifold approximation and projection." arXiv preprint arXiv:2211.09321 (2022).

License

The FeatureMAP package is under BSD-3-Clause license.

Release files for featuremap 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for featuremap 0.0.5
File Size Uploaded
featuremap-0.0.5.tar.gz 59.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for featuremap 0.0.5
File Interpreter ABI Platform
featuremap-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 119.0 kB

Release files / featuremap-0.0.5.tar.gz

Download URL featuremap-0.0.5.tar.gz
Size 59.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a664253859087a9545f1ff613cb5c4143dc68195fe84c27a0c145eed56a7917a
BLAKE2b-256 checksum
How to use checksums
ab14fc46c04da0c80acc16d0591e5a5a3a1518b656bf344b6bf8002b157c1fda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / featuremap-0.0.5-py3-none-any.whl

Download URL featuremap-0.0.5-py3-none-any.whl
Size 59.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8867c49060a46eb72f7116fbf01ce2fcac560a5133d7040d676f3d767574f199
BLAKE2b-256 checksum
How to use checksums
131fb3d8116d547c4815847521c7da7e34b474eafd384bdd7ec1219eb3456d53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page