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 list containing the instaneous speeds of the particles/cells/tracks 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 instaneous speeds into a list.

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)

# Output is a list containing the speeds 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 speeds 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]

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.5.tar.gz (3.4 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.5-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trackus_revelio-0.1.5.tar.gz
  • Upload date:
  • Size: 3.4 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.5.tar.gz
Algorithm Hash digest
SHA256 8d615991286b624f7147bd2fc95668089f54e402dd03657ca1fd7cc9916584fd
MD5 ba0cb37a6cf75ffb92e09b9facfc69b0
BLAKE2b-256 7ef4c00f3a3ce10f76ba7873be3c351b68bc97f017248f27e4a6d12c74ea3434

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trackus_revelio-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e2382f4975a9a912c8fb9720147a4802506e8ec9b47a5e2748ee714e8f394218
MD5 67ef77543f1788b41708cd4dc50e5c89
BLAKE2b-256 0323beddef356640224631896e3ac820b5b181d7bcd1633ce55f8a6f5632895d

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