Skip to main content

No project description provided

Project description

TrackusRevelio

TrackusRevelio is a Python package designed to unravel and extract tracks from XML files exported by TrackMate in Fiji/ImageJ. This tool helps in converting the XML data into a Python dictionary for further analysis and processing.

Installation

You can install trackus_revelio via pip:

pip install trackus-revelio

Usage

First, import the TrackusRevelio function from the trackus_revelio package. Then, use it to parse an XML file and extract the track data into a dictionary.

Example

from trackus_revelio import TrackusRevelio

# Replace 'path_to_xml_file.xml' with the path to your XML file
# size_of_frame should be the one-dimensional size of the image frame in microns
# frame_time should be the time interval between each frame in minutes
Speeds = TrackusRevelio('path_to_xml_file.xml', size_of_frame=1331.20, frame_interval=3.0)

# The tracks variable is now a dictionary containing the track data
print(Speeds)

Parameters

  • xmlfile (str): Path to the XML file exported by TrackMate.
  • size_of_frame (float): One-dimensional size of the image frame in microns. This value can usually be found at the top of the images when opened in Fiji/ImageJ. This package is only applicable to square images with equal length and width.
  • frame_time (float): Time interval between each frame in minutes. This is the time duration captured between two consecutive frames in your image sequence.

Output Structure

The function TrackusRevelio returns a list of instantaneous speeds for all particles. Each particle's speed is calculated based on the distance traveled between consecutive frames and the given frame time.

Example Output The output tracks list will contain the instantaneous speeds for all particles:

[2.3, 3.1, 4.0, 2.8, ...]

Acknowledgments

Special thanks to Dr. Chenyu Jin, Marie Skłodowska-Curie Postdoctoral Fellow at Uni Luxembourg, who laid the foundation for recognising the XML files exported from TrackMate. Also, thanks to Dr. Daniel O’Hanlon for introducing Poetry.

License

This project is licensed under the MIT License.

Copyright (c) 2024 [Elephes Sung, Imperial College]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contact

For any suggestion, please contact: eu23@ic.ac.uk Many Thanks.

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

trackus_revelio-0.1.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

trackus_revelio-0.1.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file trackus_revelio-0.1.3.tar.gz.

File metadata

  • Download URL: trackus_revelio-0.1.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for trackus_revelio-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c877da7b5c2f77fa5378eaba3df5e9750a9c06edf21978065f5193eced22c812
MD5 2faee01e16cbbb390e772b7c610d7c65
BLAKE2b-256 e3ace23fde33b9a4181de81083c8f4aa9356bf9883ad9406365ec238234bc0e3

See more details on using hashes here.

File details

Details for the file trackus_revelio-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: trackus_revelio-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for trackus_revelio-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 99f14ac2d99c503fc7b771c34467e6cf037a9fd74a494e5772eeb87daf9d5974
MD5 106ead3626fe5d3b89e0f19e8e13fd0d
BLAKE2b-256 9769406a962c1e9727c103a7a62c14853d64df330ddf5b93c5ad9e8497824aff

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