Skip to main content

A Python package for tracking neurons across days

Project description

pyDANT: A Python toolbox for Density-based Across-day Neuron Tracking

View pyDANT on GitHub Documentation Status Open In Colab PyPI - Version GitHub License

DANT graphical abstract

pyDANT is a Python toolbox that combines iterative motion correction and density-based clustering to robustly track single neurons across days of high-density recordings.


📄 Preprint

Density-based longitudinal neuron tracking in high-density electrophysiological recordings

📚 Read the Documentation

🧮 Check out the MATLAB version (DANT)


Installation

This section describes installation of the pyDANT.

Install with Anaconda

Anaconda is recommended for managing the pyDANT environment.

conda create -n pyDANT python=3.11
conda activate pyDANT
pip install pyDANT

Install from Python Package Index (PyPI)

You can also install pyDANT directly from PyPI:

pip install pyDANT

Install from Source

If you prefer to install from source, clone the repository and install it manually:

git clone https://github.com/jiumao2/pyDANT.git
cd pyDANT
pip install -e .

🚀 Getting Started

To help you get familiar with the pipeline, we provide two tutorials.

  1. Colab Tutorial: Open the pyDANT Colab demo to run pyDANT in a browser without local setup or pre-downloading data.
  2. Documentation Tutorial: Download the example dataset for pyDANT, then follow the Python tutorial to run pyDANT locally or process your own recordings.

If you encounter any bugs, have questions, or want to suggest a feature, please open an issue. We look forward to your feedback!

📝 Citation

If you use pyDANT in your research, please cite our preprint:

@article {Huang2025DANT,
    author = {Huang, Yue and Wang, Hanbo and Cao, Jiaming and Chen, Yu and Wang, Xuanning and Zhao, Yujie and Ren, Hengkun and Zheng, Qiang and Yu, Jianing},
    title = {Density-based longitudinal neuron tracking in high-density electrophysiological recordings},
    year = {2025},
    doi = {10.64898/2025.12.19.695632},
    publisher = {Cold Spring Harbor Laboratory},
    URL = {https://www.biorxiv.org/content/early/2025/12/23/2025.12.19.695632},
    journal = {bioRxiv}
}

📚 References & Acknowledgements

pyDANT builds upon and integrates several excellent open-source tools. We extend our gratitude to the authors of the following packages:

  • HDBSCAN: Hierarchical Density-Based Spatial Clustering of Applications with Noise. (Campello et al., 2013; McInnes & Healy, 2017).
  • Kilosort: Fast spike sorting with drift correction. (Pachitariu et al., 2024).
  • DREDge: Robust online multiband drift estimation in electrophysiology data. (Windolf et al., 2025).

📄 License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

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

pydant-1.1.1.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

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

pydant-1.1.1-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file pydant-1.1.1.tar.gz.

File metadata

  • Download URL: pydant-1.1.1.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pydant-1.1.1.tar.gz
Algorithm Hash digest
SHA256 186ee6091c91b0633b00ee5a58668c1678a99e43301382f3b6c12c33db9bd249
MD5 4755c4b4c4c065a917f8d699d6f091af
BLAKE2b-256 712985f653190c50f091036748dbf0029c3ef1514b0d7b960b6d672db7820e3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydant-1.1.1.tar.gz:

Publisher: python-publish.yml on jiumao2/pyDANT

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pydant-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: pydant-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pydant-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95581e031fac375b37ffe53ab57c562348387ae4904dc8124dc91ddb1d74e726
MD5 cdbf0e890efdd42fca2beef03d7b42eb
BLAKE2b-256 c13ed2257b4d1d1de649adb0d277dabb7f0e01cbd1ac94260943f888a92d6f5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydant-1.1.1-py3-none-any.whl:

Publisher: python-publish.yml on jiumao2/pyDANT

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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