Skip to main content

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

Metadata

Release files for etrip 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etrip 0.0.6
File Size Uploaded Provenance Actions
etrip-0.0.6.tar.gz 32.9 kB Without provenance Details for etrip-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for etrip 0.0.6
File Interpreter ABI Platform Actions
etrip-0.0.6-py3-none-any.whl Python 3 none any Details for etrip-0.0.6-py3-none-any.whl

Total release size: 66.6 kB

Release files / etrip-0.0.6.tar.gz

Download URL etrip-0.0.6.tar.gz
Size 32.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4715ff85008d0e5fe3ecf390191d48f4532acb1c7a9df7f8706d149857d0bda8
BLAKE2b-256 checksum
How to use checksums
54ac3ebb1a2bd81701b7d1724c72bfe5650fcba7dffd7a757ba4c94036d01407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / etrip-0.0.6-py3-none-any.whl

Download URL etrip-0.0.6-py3-none-any.whl
Size 33.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49e6c63293b8d944e637f69c7611c5c548cafe16a2932efc3df483b499978315
BLAKE2b-256 checksum
How to use checksums
9fa4b6d60b099d5617b7fbe7f7aadbf9a5e9920e512004df34a72f5a89330c02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Security for etrip 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page