Tracking cells and lineage with deep learning.
Project description
deepcell-tracking
uses deep learning models from deepcell-tf within an assignment problem framework to track cells through time-lapse sequences and build cell lineages. The assignment problem is solved using the Hungarian algorithm.
Getting Started
deepcell-tracking
is a Python package that can be installed with pip
:
pip install deepcell-tracking
Or it can be installed from source:
git clone https://github.com/vanvalenlab/deepcell-tracking.git
cd deepcell-tracking
# install the dependencies
pip install .
How to Use
from deepcell_tracking import CellTracker
# X and y are the time-sequence data and their corresponding segmentations (labels), respectively.
# model is a deepcell-tf tracking model.
tracker = CellTracker(X, y, model)
tracker.track_cells() # runs in place, builds tracks
# Save all tracked data and lineage files to a .trk file
tracker.dump('./results.trk')
# Open the track file
from deepcell_tracking.utils import load_trks
data = load_trks('./results.trk')
lineage = data['lineages'] # linage information
X = data['X'] # raw X data
y = data['y'] # tracked y data
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
DeepCell_Tracking-0.5.0rc1.tar.gz
(35.2 kB
view hashes)
Close
Hashes for DeepCell_Tracking-0.5.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe630c3bb84e3f4865e40a86886f7df1607ab2b284533b03169c749e09c85d4 |
|
MD5 | 5a7d1270d7f70a32e151acb4e82c5751 |
|
BLAKE2b-256 | b2bef25bd44e19adfe8d8c81dc524b2af606dd8c32312bc70d010fb31c84b9e5 |