Skip to main content

The initial package of AlignDG

Project description

Alignment of spatial transcriptomics slices across diseases, platforms and conditions

Yu Wang, Zaiyi Liu, Qingchen Zhang, Xiaoke Ma

AlignDG is the network-based model for aligning distant slices without prior information, covering scenarios such as non-consecutive, non-continuous, across different tissues and diseases conditions that cannot be properly handled with available methods. Furthermore, AlignDG joints feature learning and slice alignment, where features are learned under the guidance of alignment, thereby improving discriminative and quality of features. Extensive experimental results demonstrate the superiority of AlignDG over existing state-of-the-art in terms of precision, robustness and efficiency. AlignDG precisely tracks development of tissues from spatial-temporal slices by only using approximately 50% slices in datasets, which provides biologists with a new perspective to design experiments and analyze spatial transcriptomics data.

AlignDG workflow

Installation

(Note: To accelerate AlignDG by using GPU: If you have an NVIDIA GPU and using Linux OS, please install Pytorch and jaxlib-cuda in previous, the CPU version of them will be installed by default for you. Here is the installation guide of PyTorch and the installation guide of jaxlib)

The detailed tutorials for install AlginDG is available at: https://aligndg-tutorials.readthedocs.io/en/latest/Installation.html

1. Start by using python virtual environment with conda:

conda create --name aligndg_py python=3.10
conda activate aligndg_py

Note: If you encounter the error message "ImportError: Please install the skmisc package via pip install --user scikit-misc" while executing sc.pp.highly_variable_genes(adata, flavor='seurat_v3', n_top_genes=3000), please execute the following command in your terminal: pip install --user scikit-misc.

Then, you can install AlignDG via Pypi:

pip install aligndg

2. From source code (Github)

git clone https://github.com/xkmaxidian/AlignDG.git
cd your_dir/AlignDG/AlignDG_package
python setup.py build
python setup.py install

Tutorial

  1. Tutorial documentation for AlignDG generated using ReadTheDocsis accessible from: https://aligndg-tutorials.readthedocs.io/en.

  2. The tutorials for AlignDG source code are summarized as:

The jupyter Notebooks of the tutorial for the balanced simulate data (data 1 and 2) are also accessible from :

https://github.com/xkmaxidian/AlignDG/blob/master/Tutorials/Tutorials_Simulate1_Banalced.ipynb

https://github.com/xkmaxidian/AlignDG/blob/master/Tutorials/Tutorials_Simulate2_Balanced.ipynb


The jupyter Notebook of the tutorial for the unbalanced simulate data is accessible from : https://github.com/xkmaxidian/AlignDG/blob/master/Tutorials/Tutorials_simulate.ipynb


The tutorials for AlignDG on real spatial transcriptomics are accessible from:


Tutorials for AlignDG on multiple slices and 3D reconstruction are accessible from:

Note: Please install jupyter notebook in order to open this notebook.

Compared slice alignment algorithms in this paper:

Algorithms that are compared include:

We also acknowledge the authors who provided source code and data which inspire us a lot. They include:

Contact:

We are continuing adding new features. Bug reports or feature requests are welcome. Last update: 10/20/2025, version 1.0.1

Please send any questions or found bugs to Xiaoke Ma xkma@xidian.edu.cn.

Reference

Our paper is under review.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aligndg-1.0.2.tar.gz (101.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aligndg-1.0.2-py3-none-any.whl (119.4 kB view details)

Uploaded Python 3

File details

Details for the file aligndg-1.0.2.tar.gz.

File metadata

  • Download URL: aligndg-1.0.2.tar.gz
  • Upload date:
  • Size: 101.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for aligndg-1.0.2.tar.gz
Algorithm Hash digest
SHA256 69977dd92287d7225a6584edd58a9610c5b924f1bbe44dcfd5c2821163277b76
MD5 4af0464b3a0d07a13560f2e7aef33ef3
BLAKE2b-256 560fd511083ef9c4c82714efe2b109dad2e126cf1a13c26f5eabefbfe3394c51

See more details on using hashes here.

File details

Details for the file aligndg-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: aligndg-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 119.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for aligndg-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b95374277efc32f44277209f26a9a84fb824a5a9545eecc65850a01f5abc788e
MD5 f0fc7053066719c2f860b1c1646d55e2
BLAKE2b-256 bff1de699e5a5f2c6c0cb3903dd41fb8adc53e7029ee26cdb59d075ad2a3ef4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page