Skip to main content

A phenotyping pipeline for python

Project description

Code review Windows Linux OSX Code coverage Code Style
pyOpenSci Build status soon to come none Coverage Status Code style

Author: Moritz Lürig
License: LGPL
Homepage www.phenopype.org
Publication https://doi.org/10.1111/2041-210x.13771


What is phenopype?

phenopype is a Python package to rapidly extract high dimensional phenotypic data from digital images. At the core, phenopype provides a project management ecosystem for large image datasets, signal processing based segmentation and data extraction routines, and the possibility to export the processed data in various formats - e.g. for direct analysis (csv - e.g. landmarks, coordinates, etc.), or for further processing in other machine learning pipelines (json - e.g. segmentation masks).

Why phenopype

phenopype is aiming to augment, rather than replace the utility of existing CV low level libraries for scientists who want to extract phenotypic data from images. Put differently, phenopype does not intend to be an exhaustive library of granular image processing functions, like OpenCV, scikit-image or ImageJ, but instead, it is a set of wrappers and convenient management tools to allow biologists to get their data fast without having to fiddle with too much code.

Who uses phenopype?

phenopype is intended for ecologists and evolutionary biologists with "laboratory grade" images, which, for example, contain specimens that have been photographed against a standardized background. It is also useful for anyone interested in building a robust training dataset for deep learning models: with phenopype segmentation masks can be created semi-automatically (instead of annotating the images by hand), and, in the process, phenotypic data can already by extracted and evaluated.


Main features

(For a complete list check the API reference)

  • image analysis workflow:
    • preprocessing (automatic reference detection, colour and size correction, morphology operations)
    • segmentation (thresholding, watershed, contour-filtering, foreground-background subtraction)
    • measurement (pixel intensities, landmarks, shape features, texture features)
    • visualization (various options) and export (csv, json, ROI images, ...)
    • video analysis module for object tracking
  • project management tools to organize images and data (automatic creation of project directory tree)
  • customizable analysis-templates that allow anyone to reproduce all collected data with only a few lines of code (suitable for repositories like Dryad or OSF).


Quickstart

https://www.phenopype.org/docs/quickstart/

Documentation

https://www.phenopype.org/docs/

Vignette gallery

https://www.phenopype.org/gallery/

Contributions and feedback

phenopype development is ongoing and contributions towards making it more broadly applicable and user-friendly are most welcome. This can be in the form of feature requests (e.g. more functions from the OpenCV library) or by reporting bugs via the issue tracker. You can also get in touch with me directly if you would like to contribute code - in that case, please have a look at the API.

How to cite phenopype

Lürig, M. D. (2021). phenopype : A phenotyping pipeline for Python. Methods in Ecology and Evolution. https://doi.org/10.1111/2041-210x.13771

@ARTICLE{Lurig2022-pb,
  title     = "phenopype : A phenotyping pipeline for Python",
  author    = "L{\"u}rig, Moritz D",
  journal   = "Methods in ecology and evolution / British Ecological Society",
  publisher = "Wiley",
  volume    =  13,
  number    =  3,
  pages     = "569--576",
  month     =  mar,
  year      =  2022,
  copyright = "http://creativecommons.org/licenses/by-nc/4.0/",
  language  = "en",
  issn      = "2041-210X",
  doi       = "10.1111/2041-210x.13771"
}

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

phenopype-4.1.0.tar.gz (113.2 kB view details)

Uploaded Source

Built Distribution

phenopype-4.1.0-py3-none-any.whl (112.8 kB view details)

Uploaded Python 3

File details

Details for the file phenopype-4.1.0.tar.gz.

File metadata

  • Download URL: phenopype-4.1.0.tar.gz
  • Upload date:
  • Size: 113.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for phenopype-4.1.0.tar.gz
Algorithm Hash digest
SHA256 6e23274afa1d2ff25bd7967b6a00e9d27c66ad703e9acca20c2ec8e86d15b442
MD5 ae5806e96b77ce08aa2d1eb011c29b9b
BLAKE2b-256 f173a595f0a576c8822f552809dc2929ef8e8a3840439d26d0498ed5de87f155

See more details on using hashes here.

File details

Details for the file phenopype-4.1.0-py3-none-any.whl.

File metadata

  • Download URL: phenopype-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 112.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for phenopype-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54ea729fe600f57b60611f254b4f9f0827d0ea4ea05434cda3bd96c439cfa7f3
MD5 d3df82dffb54a3b35ea54173fef971b7
BLAKE2b-256 3cfed0d80baa7dad6068ac509e7237e726d1451781d8e82309df069e3e78d92e

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