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.1.tar.gz (100.7 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.1-py3-none-any.whl (118.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aligndg-1.0.1.tar.gz
  • Upload date:
  • Size: 100.7 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.1.tar.gz
Algorithm Hash digest
SHA256 87250430ba6aef31d4d2ec21967bc902abc353c2f00e99c8635fe9b0d12bee55
MD5 625ba6f10ae90e6ba9ab22a26ae9ce7b
BLAKE2b-256 e36be0e401394469c44b95159ea22820c773ab6707d018e68ff00a9de228dc03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aligndg-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 118.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2449d18d71b983818d13e085b8d862ab0fce691afed375a700f7e811bcad37cd
MD5 6f24eaac77d985c8dd4365919b07a468
BLAKE2b-256 eed92afca604596185eef8167ecb2dd23c6e06d87fd932661b2909b84937c174

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