Skip to main content

Spot navigator

Project description

Tracy (Beta)

Note: Tracy is currently in beta — features and workflows may change regularly.


Table of Contents

  1. Installation

  2. Getting Started

    1. Launching Tracy
    2. Loading Your Movie
    3. Browsing Spots
    4. Generating Kymographs
    5. Generating Trajectories
    6. Browsing Trajectories
  3. Additional Features

  4. Saving & Loading

  5. License


Installation

Install Tracy via Conda and pip:

# 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 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

  1. Click Load Movie (or use Load » Movie).
  2. Select a single- or multi-channel TIFF movie.
  3. If necessary, enter pixel size and frame interval when prompted.
  4. Pan with the middle‑button drag (or Ctrl/Cmd + drag), zoom with the mouse wheel.
  5. Switch channels by clicking the channel label (shortcut: 1, 2, …).
  6. Toggle the maximum projection with the button below the movie (shortcut: m).
  7. Adjust the contrast using the slider.

3. Browsing Spots

  1. Click on the movie to detect a spot at the click location.

    • Blue square: search region.
    • Magenta circle: fitted spot (radius = 2σ).
  2. Hover over the inset to view a 3D fit (scroll to zoom, drag to rotate).

  3. Hold r + scroll (or use Spot » Search Radius) to adjust the search radius.

  4. 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

  1. Switch to Line mode (slider under movie or n).
  2. (Optional) Toggle max‑projection (m) to guide line placement or load a reference image.
  3. Draw a segmented line by clicking anchors (press Esc to cancel).
  4. Double‑click to finish and generate the kymograph.
  5. For multi‑channel movies, a kymograph is generated for each channel (toggle with 1, 2, …).
  6. 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

  1. On the kymograph, draw a segmented line (blue anchors) to follow the track.
  2. Double‑click to finish and compute a trajectory using your search radius and tracking mode (see tracking options).
  3. Click any kymograph or plot point to jump to that spot; use / to step forward and backward.
  4. Press spacebar to animate the trajectory.
  5. (Optional) Fill gaps via Kymograph » Connect Spot Gaps.

Trajectories are displayed on kymographs dynamically, so overlapping kymographs may share trajectories.

B. Direct Movie Tracking

  1. Click an initial spot on the movie.
  2. Use “video‑game” controls: l/j to change frames, w/a/s/d to move, k to select the next location.
  3. End with Enter or cancel with Esc.
  4. Browse/select tracks as above.

Tracking Options

  • Search Radius: adjust with r + scroll, then press Enter or Trajectory » Recalculate.

  • Tracking Mode (t):

    • Independent: fits each frame independently.
    • Tracked: uses previous frame’s spot as center.
    • Smooth: independent + post‑filter outliers.
  • If a spot looks wrong, you can invalidate it with X when 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

  1. Identify a stationary reference spot.
  2. Ensure it’s detected by clicking it (magenta circle).
  3. Use Movie » Correct Drift to track it from start‑to‑end and apply the frame shifts.
  4. 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:

    1. Data Points: all spot measurements.
    2. Per‑Trajectory: summary statistics per trajectory.
    3. 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 .xlsx files 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 .csv from TrackMate via Load Trajectories; uses TRACK_ID, FRAME, POSITION_X, POSITION_Y to perform a search.

License

This project is released under the MIT License — see LICENSE.txt.

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

tracyspot-1.0.38.tar.gz (311.6 kB view details)

Uploaded Source

Built Distribution

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

tracyspot-1.0.38-py3-none-any.whl (311.4 kB view details)

Uploaded Python 3

File details

Details for the file tracyspot-1.0.38.tar.gz.

File metadata

  • Download URL: tracyspot-1.0.38.tar.gz
  • Upload date:
  • Size: 311.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.17

File hashes

Hashes for tracyspot-1.0.38.tar.gz
Algorithm Hash digest
SHA256 e367b70a70bd7df5d00185c16363959cffcc2c01db5f965e87d014fa10fe52fa
MD5 98523c4796dbc8f121dc16206123ddd4
BLAKE2b-256 6ab44d9e8ec5162510f4605c5571e0f19b7db80067c4e6fa1e3f0d935ae86b02

See more details on using hashes here.

File details

Details for the file tracyspot-1.0.38-py3-none-any.whl.

File metadata

  • Download URL: tracyspot-1.0.38-py3-none-any.whl
  • Upload date:
  • Size: 311.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.17

File hashes

Hashes for tracyspot-1.0.38-py3-none-any.whl
Algorithm Hash digest
SHA256 836f3dd18ba28e298aaf8ec2a99315a530aa20f20e90905d67d4492e9b076bf6
MD5 be3d42cd325ae2a69eab0c49bfe9b204
BLAKE2b-256 37277cc7fb35c4a1b0845aacb036b664bd46665363119feea170d643d9c09f07

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