Skip to main content

Easy Tracking of Rhythms in Plants

Project description

eTRiP: Easy Tracking Rhythms in Plants

Optimised pipeline to detect periodicity of upwards/downwards movements in plants

This repository contains code for motion detection and modelling based on PyTRiP from github.com/KTgreenham/TRiP. Additionaly a widget has been added to handle the cropping of images.

Installation

The software requires at least Python version 3.12. Optionally you can create and activate a dedicated conda environment for the installation of this software:

conda create -n etrip python=3.12
conda activate etrip

Install from the Python Package Index repository with

pip install --upgrade etrip

Run the imageSelector widget within a jupyter notebook

import etrip

#crop images
etrip.imageSelector("/my/data/directory/original/", "/my/data/directory/cropped/")

Further analysis

#compute motion
etrip.estimateAllMotion("/my/data/directory/cropped/", "/my/data/directory/analysis/")

#fit model
etrip.fitAllMotion("/my/data/directory/analysis/")

Functions

estimateAllMotion( inputDirectory, outputDirectory, ext="jpg" )

Estimate motion for multiple plants

  • inputDirectory: directory containing subdirectories for each plant, with each subdirectory containing images for different time points
  • outputDirectory: directory where a plant-related subdirectory structure, similar to the inputDirectory, will be created, and where for each plant the detected motion is stored as a CSV file
  • ext: extension of the image files to be considered (optional), with a default value of 'jpg'

estimateSingleMotion( inputDirectory, ext="jpg" )

Estimate motion for a single plant. Returns an array containing the estimated motion in both the x and y directions

  • inputDirectory: directory containing images of different time points for a single plant
  • extension of the image files to be considered (optional), with a default value of 'jpg'

fitAllMotion( analysisDirectory )

Fit model to the motion data

  • analysisDirectory: directory containing subdirectories for each plant, with each subdirectory containing motion data as created by the estimateAllMotion function

imageSelector( inputDirectory, outputDirectory, *args, **kwargs)

Tool to create semi-automatically cropped plant images from a series of images of different time points containing multiple plants

  • inputDirectory: directory containing multiple plant containing images for different time points
  • outputDirectory: directory where a plant-related subdirectory structure is created, where each subdirectory contains the cropped images for the different time points

References

Details of the algorithm, plant imaging set up and examples can be found here: Greenham, K., Lou, P., Remsen, S.E. et al. TRiP: Tracking Rhythms in Plants, an automated leaf movement analysis program for circadian period estimation. Plant Methods 11, 33 (2015). https://doi.org/10.1186/s13007-015-0075-5

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

etrip-0.0.6.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etrip-0.0.6-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file etrip-0.0.6.tar.gz.

File metadata

  • Download URL: etrip-0.0.6.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for etrip-0.0.6.tar.gz
Algorithm Hash digest
SHA256 4715ff85008d0e5fe3ecf390191d48f4532acb1c7a9df7f8706d149857d0bda8
MD5 4ebabb8ff8179f68aaba64efb32ea600
BLAKE2b-256 54ac3ebb1a2bd81701b7d1724c72bfe5650fcba7dffd7a757ba4c94036d01407

See more details on using hashes here.

File details

Details for the file etrip-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: etrip-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for etrip-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 49e6c63293b8d944e637f69c7611c5c548cafe16a2932efc3df483b499978315
MD5 4b8691ecd80d8182491264b2536b52fc
BLAKE2b-256 9fa4b6d60b099d5617b7fbe7f7aadbf9a5e9920e512004df34a72f5a89330c02

See more details on using hashes here.

Supported by

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