Skip to main content

graphical program to interactively segment image stacks of cells in tissue with edge-labels (aka. white outlines)

Project description

SeedWater Segmenter

Seedwater Segmenter (SWS) is a graphical Python program to interactively segment image stacks of cells in tissue with edge-labels (aka. white outlines). The interactions are entirely based on the editing of seeds, which in turn are expanded by a watershed algorithm. The major difference between SWS and other tools is that you can place more than one seed per cell, which can help you adjust the boundaries of difficult cells.

SWS is built on top of wxPython, matplotlib, numpy, scipy, PIL, and mahotas.

At its core, it uses a lightning-fast watershed algorithm (thanks to the mahotas project) and allows real-time updates. It has a simple (if cluttered) UI and is fully interactive, even including 1-level undo.

The publication about SWS that gives all these details and more in Cytometry Part A:

http://onlinelibrary.wiley.com/doi/10.1002/cyto.a.22034/abstract

Source code is mirrored to three repositories and to PyPI:

You may also want to read the manual, but be aware that it needs updating: "SeedWaterSegmenter V x.x Manual.txt"

Installing and Running


The quickest way to install SWS is using Anaconda. Once you install Anaconda from here:

https://www.anaconda.com/products/individual

open a Terminal window (see here for help finding your terminal).

and run this command:

pip install SeedWaterSegmenter

Run SWS with this command on Windows or Linus:

python -c "from SeedWaterSegmenter import start_sws; start_sws()"

and this command on macOS:

pythonw -c "from SeedWaterSegmenter import start_sws; start_sws()"

SWS now supports Python 3. If you have issues, please make open issue on Github here . For Python 2 instructions on macOS, see here.

Making a desktop launcher with icon

While I recommend running SWS from the terminal to see the console logs, you can also create a desktop launcher to make it more convenient to launch if you prefer.

Windows:

Run one of these two command from the Anaconda Command Prompt (depending on whether you did a single-user or system-wide install):

python C:\Users\<your username>\Anaconda\Scripts\create_sws_shortcut.py -install
python C:\Anaconda\Scripts\create_sws_shortcut.py -install

macOS

Thanks to Sveinbjorn Thordarson's Platypus tool, a packaged app is available for download at: https://github.com/davidmashburn/SeedWaterSegmenter/blob/master/MacOSX/SeedWaterSegmenterApp.zip Just extract the zip file and place the App on the Desktop or in the Applications folder

Be aware that this is only a link to the python scripts and will not work by itself without the above installation.

There is also a ".command" file that can serve the same purpose if the App does not work: https://github.com/davidmashburn/SeedWaterSegmenter/blob/master/MacOSX/SeedWaterSegementer.command

Linux

Look at this to get you started:

https://github.com/davidmashburn/SeedWaterSegmenter/blob/master/desktop/SeedWaterSegmenter.desktop

This is how I created the symlinks that make this work:

ln -s /usr/local/lib/python2.7/dist-packages/SeedWaterSegmenter*/seedwatersegmenter/SeedWaterSegmenter.py /usr/local/bin/seedwatersegmenter
ln -s /usr/local/lib/python2.7/dist-packages/SeedWaterSegmenter*/seedwatersegmenter/icons/SeedWaterSegmenter.svg /usr/local/share/pixmaps/SeedWaterSegmenter.svg

= Screenshot =

https://github.com/davidmashburn/SeedWaterSegmenter/blob/master/doc/SWS_Screenshot.png

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

SeedWaterSegmenter-0.7.1.tar.gz (398.7 kB view details)

Uploaded Source

File details

Details for the file SeedWaterSegmenter-0.7.1.tar.gz.

File metadata

  • Download URL: SeedWaterSegmenter-0.7.1.tar.gz
  • Upload date:
  • Size: 398.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for SeedWaterSegmenter-0.7.1.tar.gz
Algorithm Hash digest
SHA256 411773794fc0c7e3100076a139f44ba0d1d5ed1782c1ce9b221027582fa6311b
MD5 660436515f6f503cce6a862de5a89847
BLAKE2b-256 f1f7992ab0a2c3359c3813995d7f18a515fe2f8b7cd671e708515357f0dd2be6

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