Skip to main content

deepsea is a package to segment and track single cells over the time-lapse phase contrast microscopy image sequences

Project description

DeepSea

This work presents a versatile and trainable deep-learning-based software, termed DeepSea, that allows for both segmentation and tracking of single cells in sequences of phase-contrast live microscopy images.

Datasets

To download our datasets go to https://deepseas.org/datasets/ or:

Usage

  • Example of single cell image segmentation

from deepsea.test_single_image_segmentation import apply_img_segmentation
import cv2
import os

output_dir='test_results/'
img = cv2.imread("segmentation_dataset/test/images/A11_z016_c001.png",0)
label_img,binary_mask,overlay_img,img=apply_img_segmentation(img)
cv2.imwrite(os.path.join(output_dir, 'label_img.png'), label_img)
cv2.imwrite(os.path.join(output_dir, 'binary_mask.png'), binary_mask)
cv2.imwrite(os.path.join(output_dir, 'overlay_img.png'), overlay_img)
cv2.imwrite(os.path.join(output_dir, 'original_img_resized.png'), img)

  • Example of tracking the single set of cell image sequences

from deepsea.test_single_set_tracking import apply_cell_tracking
import cv2
import os

single_image_set_dir="tracking_dataset/test/set_13_MESC/images/"
output_dir='test_results/'
img_list=[]
for img_name in sorted(os.listdir(single_image_set_dir)):
    img_list.append(cv2.imread(os.path.join(single_image_set_dir,img_name),0))

cell_labels,cell_centroids,tracked_imgs=apply_cell_tracking(img_list)
if tracked_imgs:
    for id, img in enumerate(tracked_imgs):
        cv2.imwrite(os.path.join(output_dir, 'img_{:04d}.png'.format(id)), img)

DeepSea GUI Software

Our DeepSea software is available on https://deepseas.org/software/ with examples and instructions. DeepSea software is a user-friendly and automated software designed to enable researchers to 1) load and explore their phase-contrast cell images in a high-contrast display, 2) detect and localize cell bodies using the pre-trained DeepSea segmentation model, 3) track and label cell lineages across the frame sequences using the pre-trained DeepSea tracking model, 4) manually correct the DeepSea models' outputs using user-friendly editing options, 5) train a new model with a new cell type dataset if needed, 6) save the results and cell label and feature reports on the local system. It employs our latest trained DeepSea models in the segmentation and tracking processes. It employs our last trained DeepSea models in the segmentation and tracking processes.

Useful Information

If you have any questions, contact us at abzargar@ucsc.edu.

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

deepsea-0.0.3.tar.gz (15.4 MB view details)

Uploaded Source

Built Distribution

deepsea-0.0.3-py3-none-any.whl (15.5 MB view details)

Uploaded Python 3

File details

Details for the file deepsea-0.0.3.tar.gz.

File metadata

  • Download URL: deepsea-0.0.3.tar.gz
  • Upload date:
  • Size: 15.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for deepsea-0.0.3.tar.gz
Algorithm Hash digest
SHA256 83cbd4533f29cda63a0e821941e77fe6f0256a2e7301d4f68532729e0d3e6db9
MD5 b0ffef82acc94729a50e77ab1e09dec3
BLAKE2b-256 cbc038467dd03cb5154b65c79818dd381c5444dd260a1d26b0a7b3a83403f9cd

See more details on using hashes here.

File details

Details for the file deepsea-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: deepsea-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for deepsea-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0bfc957d5ded44d4c628833f684ab09e00e7a83e3e51c671b4202d673be8204a
MD5 ca8348ffbfad2d23786b1fcc1f29b850
BLAKE2b-256 ff57d65dafb142f296b6888ed7bb14b03ce5066bc1bcc2ec17a5b4c41365556f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page