Metadata-Version: 2.4
Name: tardis_em
Version: 0.3.22
Summary: PyTorch segmentation of 2D/3D images such as electron tomography (ET),Cryo-EM or fluorescent microscopy data into 3D segmented point cloud.
Home-page: https://github.com/SMLC-NYSBC/TARDIS
Author: Robert Kiewisz, Tristan Bepler
Author-email: robert.kiewisz@gmail.com
License: MIT
Keywords: semantic segmentation,instance segmentation,MT segmentation,membrane segmentation,CNN,FNet,DIST
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Education
Classifier: Environment :: Console
Classifier: Environment :: GPU :: NVIDIA CUDA :: 11
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: !=3.12,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: torch>2.0.0
Requires-Dist: numpy>=2.0.0
Requires-Dist: pandas>=2.2.0
Requires-Dist: tardis_em_analysis==0.3.22
Requires-Dist: tifffile
Requires-Dist: imagecodecs
Requires-Dist: scikit-learn>1.0.1
Requires-Dist: scikit-image>0.19.2
Requires-Dist: scipy>=1.10.0
Requires-Dist: opencv-python>=4.12.0.0
Requires-Dist: plyfile>=0.9
Requires-Dist: requests>=2.31.0
Requires-Dist: ipython>8.10.0
Requires-Dist: click>8.0.4
Requires-Dist: setuptools>=67.6.0
Provides-Extra: open3d
Requires-Dist: open3d; extra == "open3d"
Provides-Extra: pyvista
Requires-Dist: pyvista; extra == "pyvista"
Provides-Extra: nd2
Requires-Dist: nd2; extra == "nd2"
Requires-Dist: roi; extra == "nd2"
Provides-Extra: all
Requires-Dist: open3d; extra == "all"
Requires-Dist: pyvista; extra == "all"
Requires-Dist: nd2; extra == "all"
Requires-Dist: roi; extra == "all"
Dynamic: license-file

.. image:: resources/Tardis_logo_2.png
    :width: 512
    :align: center
    :target: https://smlc-nysbc.github.io/TARDIS/

========

.. image:: https://img.shields.io/github/v/release/smlc-nysbc/tardis
        :target: https://img.shields.io/github/v/release/smlc-nysbc/tardis

.. image:: https://img.shields.io/badge/Join%20Our%20Community-Slack-blue
        :target: https://join.slack.com/t/tardis-em/shared_invite/zt-27jznfn9j-OplbV70KdKjkHsz5FcQQGg

.. image:: https://img.shields.io/github/downloads/smlc-nysbc/tardis/total
        :target: https://img.shields.io/github/downloads/smlc-nysbc/tardis/total

.. image:: https://img.shields.io/badge/https%3A%2F%2Fgithub.com%2FSMLC-NYSBC%2Fnapari-tardis_em?style=plastic&label=Napari&link=https%3A%2F%2Fgithub.com%2FSMLC-NYSBC%2Fnapari-tardis_em
   :alt: Static Badge


.. image:: https://github.com/SMLC-NYSBC/TARDIS/actions/workflows/python_pytest.yml/badge.svg
        :target: https://github.com/SMLC-NYSBC/TARDIS/actions/workflows/python_pytest.yml

.. image:: https://github.com/SMLC-NYSBC/TARDIS/actions/workflows/sphinx_documentation.yml/badge.svg
        :target: https://github.com/SMLC-NYSBC/TARDIS/actions/workflows/sphinx_documentation.yml

Python-based software for generalized object instance segmentation from (cryo-)electron microscopy
micrographs/tomograms. The software package is built on a general workflow where predicted semantic segmentation
is used for instance segmentation of 2D/3D images.

.. image:: resources/workflow.png

Features
========

- Robust and high-throughput semantic/instance segmentation of all microtubules:
    - Supported file formats: [.tif, .mrc, .rec, .am]
    - Supported modality: [ET, Cryo-ET]
    - Supported Å resolution: [any best results in 1-40 Å range]
    - 2D micrograph modality microtubule segmentation will come soon!

- Robust and high-throughput semantic/instance segmentation of membranes:
    - Supported file formats: [.tif, .mrc, .rec, .am]
    - Supported modality: [EM, ET, Cryo-EM, Cryo-ET]
    - Supported Å resolution: [all]

- High-throughput semantic/instance segmentation of actin [Beta]
- Fully automatic segmentation solution!
- `Napari plugin <https://github.com/SMLC-NYSBC/napari-tardis_em/>`__
- Cloud computing [Coming soon]

Citation
========

`DOI [BioRxiv] <http://doi.org/10.1101/2024.12.19.629196>`__

Kiewisz R. et.al. 2024. Accurate and fast segmentation of filaments and membranes in micrographs and tomograms with TARDIS.

`DOI [Microscopy and Microanalysis] <http://dx.doi.org/10.1093/micmic/ozad067.485>`__

Kiewisz R., Fabig G., Müller-Reichert T. Bepler T. 2023. Automated Segmentation of 3D Cytoskeletal Filaments from Electron Micrographs with TARDIS. Microscopy and Microanalysis 29(Supplement_1):970-972.

`Link: NeurIPS 2022 MLSB Workshop <https://www.mlsb.io/papers_2022/Membrane_and_microtubule_rapid_instance_segmentation_with_dimensionless_instance_segmentation_by_learning_graph_representations_of_point_clouds.pdf>`__

Kiewisz R., Bepler T. 2022. Membrane and microtubule rapid instance segmentation with dimensionless instance segmentation by learning graph representations of point clouds. Neurips 2022 - Machine Learning for Structural Biology Workshop.

What's new?
===========

`Full History <https://smlc-nysbc.github.io/TARDIS/HISTORY.html>`__

TARDIS-em v0.3.10 (2025-01-07):
    * Models update
    * Progress with estimated ETA time
    * Small bugfixes

Quick Start
===========

For more examples and advanced usage please find more details in our `Documentation <https://smlc-nysbc.github.io/TARDIS/>`__

1) Install TARDIS-em:

 Install pytorch with GPU support as per Pytorch official website: https://pytorch.org/get-started/locally/

.. code-block:: bash

    pip install tardis-em

2) Verifies installation:

.. code-block:: bash

    tardis

3) Optional Napari plugin installation

.. code-block:: bash

    pip install napari-tardis-em

Filaments Prediction
--------------------

3D Actin prediction
^^^^^^^^^^^^^^^^^^^
Full tutorial: `3D Actin Prediction <https://smlc-nysbc.github.io/TARDIS/usage/3d_actin.html>`__

Usage:
""""""

.. code-block:: bash

    recommended usage: tardis_actin [-dir path/to/folder/with/input/tomogram]
    advance usage: tardis_actin [-dir str] [-out str] [-ps int] [-ct float] [-dt float]
                             [-pv int] [-px float] ...


2D Microtubule prediction
^^^^^^^^^^^^^^^^^^^^^^^^^

TBD

3D Microtubule prediction
^^^^^^^^^^^^^^^^^^^^^^^^^
Full tutorial: `3D Microtubules Prediction <https://smlc-nysbc.github.io/TARDIS/usage/3d_mt.html>`__


Example:
""""""""

.. image:: resources/3d_mt.jpg

Data source: Dr. Gunar Fabig and Prof. Dr. Thomas Müller-Reichert, TU Dresden


Usage:
""""""

.. code-block:: bash

    recommended usage: tardis_mt [-dir path/to/folder/with/input/tomogram]
    advance usage: tardis_mt [-dir str] [-out str] [-ps int] [-ct float] [-dt float]
                             [-pv int] [-px float] ...


TIRF Microtubule prediction
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Full tutorial: `TIRF Microtubules Prediction <https://smlc-nysbc.github.io/TARDIS/usage/tirf_mt.html>`__


Example:
""""""""

.. image:: resources/tirf_mt.png

Data source: RNDr. Cyril Bařinka, Ph.D, Biocev


Usage:
""""""

.. code-block:: bash

    recommended usage: tardis_mt_tirf [-dir path/to/folder/with/input/data]
    advance usage: tardis_mt [-dir str] [-out str] [-ps int] [-ct float] [-dt float]
                             [-pv int] ...


Membrane Prediction
-------------------

2D prediction
^^^^^^^^^^^^^
Full tutorial: `2D Membrane Prediction <https://smlc-nysbc.github.io/TARDIS/usage/2d_membrane.html>`__

Example:
""""""""

.. image:: resources/2d_mem.jpg

Data source: Dr. Victor Kostyuchenko and Prof. Dr. Shee-Mei Lok, DUKE-NUS Medical School Singapore

Usage:
""""""

.. code-block:: bash

    recommended usage: tardis_mem2d [-dir path/to/folder/with/input/tomogram] -out mrc_csv
    advance usage: tardis_mem [-dir str] [-out str] [-ps int] ...

3D prediction
^^^^^^^^^^^^^
Full tutorial: `3D Membrane Prediction <https://smlc-nysbc.github.io/TARDIS/usage/3d_membrane.html>`__

Example:
""""""""

.. image:: resources/3d_mem.jpg

Data source: EMPIRE-10236, DOI: 10.1038/s41586-019-1089-3

Usage:
""""""

.. code-block:: bash


    recommended usage: tardis_mem [-dir path/to/folder/with/input/tomogram] -out mrc_csv
    advance usage: tardis_mem [-dir str] [-out str] [-ps int] ...



MIT License

Copyright (c) 2022 Robert Kiewisz, Tristan Bepler

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
