Spot navigator
Project description
Tracy (Beta)
Note: Tracy is currently in beta — features and workflows may change regularly.
Table of Contents
Installation
Install Tracy with your terminal:
# Create and activate a dedicated environment
conda create -n tracy python=3.10 -y
conda activate tracy
# Install Tracy
pip install tracyspot
Tip: On Windows, you can download Anaconda and use the Anaconda Prompt as your terminal.
Getting Started
1. Launching Tracy
conda activate tracy # if not already active
pip install tracyspot --upgrade # update during beta
tracy & # run in the background
Note: The first launch may take a few seconds.
2. Loading Your Movie
- Click Load Movie (or use Load » Movie).
- Select a single- or multi-channel TIFF movie.
- If necessary, enter pixel size and frame interval when prompted.
- Pan with the middle‑button drag (or Ctrl/Cmd + drag), zoom with the mouse wheel.
- Switch channels by clicking the channel label (shortcut:
1,2, …). - Toggle the maximum projection with the button below the movie (shortcut:
m). - Adjust the contrast using the slider.
3. Browsing Spots
-
Click on the movie to detect a spot at the click location.
- Blue square: search region.
- Magenta circle: fitted spot (radius = 2σ).
-
Hover over the inset to view a 3D fit (scroll to zoom, drag to rotate).
-
Hold
r+ scroll (or use Spot » Search Radius) to adjust the search radius. -
Navigate frames with the slider under the movie.
The spot histogram shows intensities in the search area and highlights values in the spot.
4. Generating Kymographs
- Switch to Line mode (slider under movie or
n). - (Optional) Toggle max‑projection (
m) to guide line placement or load a reference image. - Draw a segmented line by clicking anchors (press
Escto cancel). - Double‑click to finish and generate the kymograph.
- For multi‑channel movies, a kymograph is generated for each channel (toggle with
1,2, …). - Cycle through kymographs with
,(previous) and.(next).
Tip: Apply a LoG filter via Kymograph » Apply LoG filter for clearer tracks (applies to subsequent kymographs).
5. Generating Trajectories
A. From a Kymograph
- On the kymograph, draw a segmented line (blue anchors) to follow the track.
- Double‑click to finish and compute a trajectory using your search radius and tracking mode (see tracking options).
- Click any kymograph or plot point to jump to that spot; use
→/←to step forward and backward. - Press spacebar to animate the trajectory.
- If you want to recalculate the trajectory with new tracking options, press
Enter(or Trajectory » Recalculate). - (Optional) Fill gaps via Kymograph » Connect Spot Gaps.
Trajectories are displayed on kymographs dynamically, so overlapping kymographs may share trajectories.
B. Direct Movie Tracking
- Click an initial spot on the movie.
- Skip a few frames and click the next spot. Repeat until the track is covered.
- End a click sequence with
Enteror cancel withEsc. - Browse/select tracks as above.
- If you want to recalculate the trajectory with new tracking options, press
Enter(or Trajectory » Recalculate).
You can use “video‑game” controls:
w/a/s/dto move the cursor,l/jto change frames,kto select the spot.
Tracking Options
-
Search Radius: adjust with
r+ scroll -
Tracking Mode (
t):- Independent (default): fits each frame independently.
- Tracked: uses previous frame’s spot as center.
- Smooth: independent + post‑filter outliers.
-
Tracking options are set for any subsequent analysis. An existing trajectory can be recalculated using the currently set options by pressing
Enter(or Trajectory » Recalculate). -
If a spot looks wrong, you can invalidate it with
xwhen it's highlighted. -
Avoid using spots in existing tracks via Spot » Avoid previous spots.
Plots
- Intensity Plot: integrated spot intensity at each frame.
- Speed Histogram: frame‑to‑frame speeds with the net speed overlayed (i.e. only considering start and end position).
Browsing Trajectories
- New trajectories append to the Trajectory Table.
- Click trajectories in the table or use the arrow keys (
↑,↓) or click; right‑click for options (e.g., Go to kymograph). - Delete a trajectory with
Backspace.
Additional Features
Drift Correction
- Identify a stationary reference spot.
- Ensure it’s detected by clicking it (magenta circle).
- Use Movie » Correct Drift to track it from start‑to‑end and apply the frame shifts.
- Review and save if satisfactory.
Colocalization
- Determines colocalization if a spot exists within 4 pixels in the other channel.
- Toggle under Spot » Colocalization for multi‑channel movies.
- Existing trajectories prompt analysis
- Results appear as new table columns.
Step Finding
- Calculates steps in the intensity profile.
- Enable Trajectory » Calculate Steps.
- Adjust rolling‑average window and minimum step size.
- Existing trajectories prompt analysis.
- Results appear as steps in the Intensity Plot.
- Detected steps and sizes are saved in Per‑Trajectory sheet; each point’s step ID in Data Points.
Reference Image
- Useful for overlaying filaments or guides during kymograph creation.
- Load via Load » Reference Image
- Toggle with the icon under the movie.
Custom Columns
-
Right‑click any column header or use Trajectories » Add Column.
- Binary: Yes/No flags.
- Value: any numeric/text value.
-
Assign via right‑click on table row or kymograph label.
Color by Value
- If custom column or colocalization data exists, under Trajectories » Color By choose binary, value, or colocalization.
Saving & Loading
Save Trajectories
-
Save » Trajectories exports an Excel file with three sheets:
- Data Points: all spot measurements.
- Per‑Trajectory: summary statistics per trajectory.
- Per‑Kymograph: stats grouped by kymograph.
⚠️ If a trajectory can be found within two kymographs, the per‑kymograph stats will be wrong.
Load Trajectories
- Load
.xlsxfiles with the above sheets or similar formats (requires columns: Trajectory, Channel, Frame, Search Center X, Search Center Y). - Use Kymograph » Draw from Trajectories to redraw embedded lines.
Import TrackMate Data
- Load
.csvfrom TrackMate via Load Trajectories; usesTRACK_ID,FRAME,POSITION_X,POSITION_Yto perform a search.
License
This project is released under the MIT License — see LICENSE.txt.
Project details
Release history Release notifications | RSS feed
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 tracyspot-1.0.39.tar.gz.
File metadata
- Download URL: tracyspot-1.0.39.tar.gz
- Upload date:
- Size: 311.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c006e189de0be962d2bc8a164b29d1603828c4d2fea7c8c6fd77f5907057c0a4
|
|
| MD5 |
dba5339c336fef516bd1585d7384f43f
|
|
| BLAKE2b-256 |
3f6604f2277672071320b0458a9f9be84818a7f5f940df8d0345617e26c4d8c5
|
File details
Details for the file tracyspot-1.0.39-py3-none-any.whl.
File metadata
- Download URL: tracyspot-1.0.39-py3-none-any.whl
- Upload date:
- Size: 311.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24aa82df6284f76d31ab5d1c1609bb5f2a773c33ea9061fb2746d370a7435153
|
|
| MD5 |
88feaafc16fb2f206f7328b2551d658b
|
|
| BLAKE2b-256 |
3804799b694bb24b967c0f009a5003d8cbbaedb0cbb6657afe07e6ca982649d2
|