Skip to main content

Simple-Track-Builder

License MIT PyPI Python Version tests codecov

A very simple cell tracker from labeled images


Installation

You can install Simple-Track-Builder via pip:

pip install Simple-Track-Builder

To install latest development version :

pip install git+https://github.com/GuignardLab/Simple-Track-Builder.git

Usage

Once installed, Simple-Track-Builder can be used multiple ways.

Command line call

Simple-Track-Builder can be called in the terminal the following way:

simple-track-builder --pathes p1.tiff p2.tiff [...] --output out_test.lT

where p1.tiff, p2.tiff, ... are the pathes to all the images to use in temporal order, from start to finish.

Instead of informing all the pathes manually, one can inform the path format, the starting and ending times:

simple-track-builder --path-format p{t:d}.tiff --start-time 0 --end-time 10 --output out_test.lT

If necessary, the background can be informed using the --background parameter.

Finally, a help for simple-track-builder can be called the following way:

simple-track-builder --help

Python

Simple-Track-Builder can be called in Python 2 different ways:

Direct function

from simple_track_builder import build_tracks

pathes = ["p1.tiff", "p2.tiff", ...]
out = "test.lT"
build_track(label_image_list=pathes, background=0, out=out)

label_image_list can also take np.ndarrays:

from simple_track_builder import build_tracks
from tifffile import imread
pathes = [imread("p1.tiff"), imread("p2.tiff"), ...]
out = "test.lT"
build_track(label_image_list=pathes, background=0, out=out)

That can be usefull when you are running tests and do not want to reload the images each time.

Class

For the most modularity, one can use the class itself:

from simple_track_builder import SimpleTrackBuilder
pathes = ["p1.tiff", "p2.tiff", ...]

lT = SimpleTrackBuilder(pathes, background=0)
lT.build_lineages()

lT.write("out.lT")

lT is a LineageTree instance that has all their properties (see there)

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, "Simple-Track-Builder" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.


This library was generated using Cookiecutter and a custom made template based on @napari's cookiecutter-napari-plugin template.

Metadata

Release files for Simple-Track-Builder 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Simple-Track-Builder 0.0.2
File Size Uploaded
Simple-Track-Builder-0.0.2.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Simple-Track-Builder 0.0.2
File Interpreter ABI Platform
Simple_Track_Builder-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.5 kB

Release files / Simple-Track-Builder-0.0.2.tar.gz

Download URL Simple-Track-Builder-0.0.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
405413060261785a1f7f7d56393f1c2e7161884bca123b045088041d5044f20c
BLAKE2b-256 checksum
How to use checksums
c8c421cda0235b7342d95a06d2fde0412caf78cb0d5bc07724925852f35214ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / Simple_Track_Builder-0.0.2-py3-none-any.whl

Download URL Simple_Track_Builder-0.0.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29ced17f4a3101f3897f968429292a6ca1835811f87b69a061f34d13c1e04e05
BLAKE2b-256 checksum
How to use checksums
054ad0085ad7c374de8ec251182079ae20ae0c1587190e7cbe3797a058c689b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page