Skip to main content

a phenotyping pipeline for python

Project description

phenopype is a phenotyping pipeline for python. It is designed to extract phenotypic data from digital images or video material with minimal user input. Like other scientific python packages it is designed to be run from a python integrated development environment (IDE), like spyder. Some python knowledge is necessary, but most of the heavy lifting is done in the background. If you are interested in using phenopype, install install it from the Python Package Index using pip install phenopype and check the tutorials to get started.


DISCLAIMER: ONGOING DEVELOPMENT

The program is still in alpha stage and development progresses slow - this is me trying to write a program, while learning python and finishing a PhD. A few core features like blob-counting, object detection or videotracking work (see below), more detailed documentation is in the making. Please feel free contact me if you need bugfixing, or have requests for features, and I will get back to you as soon as I can.


features

Automatic object detection via multistep thresholding in a predefined area. Useful if your images have borders or irregular features. Accurracy can be increased with custom modules, e.g. for colour or shape
Automatic object tracking that uses foreground-background subtractor. High performance possible (shown example is close to real time with HD stream). Can be set to distinguish colour or shapes.
Automatic scale detection and pixel-size ratios adjustments. Performance depends on image size
Basic landmarking functionality - high throughput.
Extract local features like stickleback body armour or organelles

tutorials

Download and unpack this repository, open a command line /bash terminal, and cd to the example folder inside the repo. Assuming you have phenopype, it's dependencies and jupyter notebook installed (comes with scientific python distributions like Anaconda, see above), type jupyter notebook and open one of the tutorials:

  • 0_python_intro.ipynb This tutorial is meant to provide a very short overview of the python code needed for basic phenopype workflow. This is useful if you have never used python before, but would like to be able to explore phenopype functionality on your own.

  • 1_basic_functions.ipynb This tutorial demonstrates basic workflow with phenopype: the creation of a project, directories and how to use the functions alone and within a programmed loop.

  • 2_object_detection.ipynb This tutorial demonstrates how single or multiple objects can be detected and phenotyped in images.

  • 3_landmarks_and_local_features.ipynb

development

Planned featues include

  • hdf5-implementation (original image > processed image (+ data) > image for ML-training-dataset >> hdf5)
  • build your own training data for deep learning algorithms using hdf5 framework
  • add Mask R-CNN deep learning algorithm using the opencv implementation (https://github.com/opencv/opencv/tree/master/samples/dnn)

If you have ideas for other functionality, let me know!

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-0.5.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

phenopype-0.5.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phenopype-0.5.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

File hashes

Hashes for phenopype-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f2574e6a6a885855516f7337f1e7b9bd1f4326988789b0b7bc416041e26ec49c
MD5 ba50c10827e77944055e4f49b1fb7af5
BLAKE2b-256 e92749b62278ab4a2aba8f083651834122fea1b6cf2e2289b09b1cabe8b0091d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phenopype-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

File hashes

Hashes for phenopype-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c7abdb10573dbef0abfabda783804f7091a2eb8d38f2c1b754dd47227482bc7
MD5 5916bd1944fdf57a762d2bcd1db6ccfd
BLAKE2b-256 fd9fe1f5a1fb60f774bc6f2cf76fa9ac564fcc42bd3449e8544ae3d1dc567b3c

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