Skip to main content

Pytacs: Python-implemented Topology-Aware Cell Segmentation for high-resolution spatial transcriptomics

Project description

Pytacs - Python-implemented Topology-Aware Cell Segmentation

Note: this is a prototype for DeTACH. Pytacs was initially a Python package but now supports command-line usage.

Copyright (C) 2025 Xindong Liu

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

A tool for segmenting/integrating sub-cellular spots in high-resolution spatial transcriptomics into single-cellular spots and cell-type mapping leveraging paired scRNA-seq.

Requirements

It could be simply installed by pip install pytacs.

For conda users,

conda create -n pytacs python=3.12 -y
conda activate pytacs
pip install pytacs

For python3 users, first make sure your python is of version 3.12, and then in your working directory,

python -m venv pytacs
source pytacs/bin/activate
python -m pip install pytacs

For developers, requirements (at develop time) are listed in requirements.in (initial dependencies), requirements.txt (full dependencies) and requirements.tree.txt (for a tree view).

For developers using Poetry, the dependencies lock file is poetry.lock and the project information including main dependencies is listed in pyproject.toml.

To use it for downstream analysis in combination with Squidpy, it is recommended to use a seperate virtual environment to install Squidpy.

Usage

(Updated in 2025.11.27)

Pytacs now is packed as a commandline tool:

See help:

$ python -m pytacs -h

If you are interested in using Pytacs as a python package, we recommend using pytacs.recipe module. See docstring in pytacs.recipe.

Demo

Demo

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

pytacs-2025.11.27.tar.gz (65.5 kB view details)

Uploaded Source

Built Distribution

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

pytacs-2025.11.27-py3-none-any.whl (69.9 kB view details)

Uploaded Python 3

File details

Details for the file pytacs-2025.11.27.tar.gz.

File metadata

  • Download URL: pytacs-2025.11.27.tar.gz
  • Upload date:
  • Size: 65.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/5.4.0-216-generic

File hashes

Hashes for pytacs-2025.11.27.tar.gz
Algorithm Hash digest
SHA256 02d713ed56309498dc283271fbbd3cb81c146bb11a5a5393608324a505ba04bf
MD5 7cf6102cc696192501a166d9b0a6bc01
BLAKE2b-256 915f287ff957fe584ef657dc1116bae4bec250d63743e2d8625e4d7919dc660d

See more details on using hashes here.

File details

Details for the file pytacs-2025.11.27-py3-none-any.whl.

File metadata

  • Download URL: pytacs-2025.11.27-py3-none-any.whl
  • Upload date:
  • Size: 69.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/5.4.0-216-generic

File hashes

Hashes for pytacs-2025.11.27-py3-none-any.whl
Algorithm Hash digest
SHA256 5d0d80b04b112079e42b25df2b4caf4bdd11beac9344d210361234f5a93fa33e
MD5 8d9198ee157cb7b9e04ef3e1ad0f33fb
BLAKE2b-256 ed52a69f3135ab38267f031f579ccde05d55c2722ecdb4031a55f19ef3717c5c

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