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
tracks = TrackusRevelio('path_to_xml_file.xml')
# The tracks variable is now a dictionary containing the track data
print(tracks)
Output Structure
{
'0': {
'nSpots': 20,
'trackData': numpy.array([[t1, x1, y1, z1], [t2, x2, y2, z2], ...])
},
'1': {
'nSpots': 15,
'trackData': numpy.array([[t1, x1, y1, z1], [t2, x2, y2, z2], ...])
},
...
}
Each key in the dictionary represents a track ID. The value is another dictionary with two keys:
nSpots: The number of spots (detections) in the track. trackData: A NumPy array where each row represents a detection with four columns: time (t), x-coordinate (x), y-coordinate (y), and z-coordinate (z).
Acknowledgments
Special thanks to Chenyu JIN, Marie Skłodowska-Curie Postdoctoral Fellow at Uni Luxembourg, who laid the foundation of this code and helped overcome the challenges with the XML files exported from TrackMate.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trackus_revelio-0.1.1.tar.gz.
File metadata
- Download URL: trackus_revelio-0.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6f8ab69bd6233e72e5751ed9003b28001dd6d82125ed01b6113e3f95a03c765
|
|
| MD5 |
3534906d822c3c83eedf6311c128447c
|
|
| BLAKE2b-256 |
53401cff664cbc8751791f853b84666e9820b8fb78741c2f6bab0f492c1e012e
|
File details
Details for the file trackus_revelio-0.1.1-py3-none-any.whl.
File metadata
- Download URL: trackus_revelio-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64df9dfa3b8bba941dde85135b3f509f5eb30f2b0bc0502ddd848508d8ff8110
|
|
| MD5 |
66d43d4e53d2fd6943f82c019b1b81bc
|
|
| BLAKE2b-256 |
12aafdba9b53a00609e278cbaf99ef7621f31b3b16382b5f33651220cf06d3f8
|