avelde
Phagocytosis Analyzer

Every bacterium eaten, found and timed.

Open a time-lapse microscopy film and the Analyzer finds each bacterium taken up by a cell, follows it, and tells you whether the cell killed it — and how long that took — or failed to. You review; it does the counting.

Apple silicon and Intel Macs · macOS 13 or newer · runs entirely on your Mac

Phagocytosis Analyzer — film.tif
Simulation — illustrative, not real data

Built for the way a lab scores a film

The same events a person would mark by hand, in the same shape — without the hours.

Finds every uptake

Cells are segmented by a deep-learning model running on your Mac's GPU and tracked through the film; bacteria are detected and followed frame by frame.

Kills, timed

A kill is a bacterium that goes inside and is broken down. You get the frame it entered, the frame it was gone, and the time in between.

Failed kills, too

A cell still holding its bacterium when the film ends is a result, not noise. Failed kills are found from the cell, so a crowded field does not hide them.

You stay the judge

Events are ranked by how clear they are. Confirm, reject, correct the frames or add one that was missed; your review is saved beside the film.

How it works

Four steps, all on your Mac. Pick one to see it in the film.

Step 1 — Detect the bacteria
Simulation

A workbook you can use

The same columns as a hand-scored sheet, plus the outcome as a number you can count and average.

Xfilm-events.xlsx — Confirmed events
EventFrame startFrame endDuration (frames)Duration (min)OutcomeOutcome code
11227157.5Killed1
231241210105.0Failed kill0
34859115.5Killed1

Rows here come from the simulation above as it runs. Illustrative only.

Your films stay on your Mac

All analysis runs locally. No film, image, file name or result is ever sent anywhere. The program reports only anonymous usage counts and checks its licence — exactly what, and why.

Download

Apple silicon M1, M2, M3, M4

Download for Apple silicon version 0.7.6 · 218 MB

Intel most Macs from 2019 and earlier

Download for Intel version 0.6.3 · 309 MB

Which one? Apple menu → About This Mac. If it says Chip: Apple M…, take Apple silicon; if it says Processor: … Intel …, take Intel. The wrong one will not open ("not supported on this Mac") but does no harm.

macOS 13 or newer. 8 GB of memory is enough; more is faster. On Intel Macs the analysis runs on the processor and takes longer. A licence is needed to run it — ask us for one.

Installing

  1. Open the downloaded .dmg and drag Phagocytosis Analyzer into Applications.
  2. Open it. The app is signed and notarised by Apple, so it opens without a security warning.
  3. Click Choose licence file… and select the licence.key you were sent.

A renewed licence is installed the same way, from Help → Install new licence…

Reviewing events

The program finds the events; you confirm or reject each one and correct its start and end frames where needed.

Keys at a glance

The keys always work on the events table, whatever you clicked last; the letter keys act on the selected event. The settings on the left change only with the mouse (or by clicking into a number field and typing), so a key press can never change them by accident.

Key or actionWhat it does
Mouse wheel over the filmOne frame forward or back per click
← / →One frame back / forward
Shift + ← / →Ten frames back / forward
↑ / ↓, then EnterMove through the table; Enter shows the highlighted event at its start, zoomed in
Cmd + ↓ / ↑Next / previous event: selects it and shows its start, zoomed in
Option + arrowsMove the view. The more you are zoomed in, the smaller the step.
Cmd + wheel, Cmd + / −Zoom in / out (Cmd 0 resets)
XReject the selected event
CAccept (confirm) the selected event
SThe frame on screen becomes the event’s start
EThe frame on screen becomes the event’s end
HHide / show the event boxes on the film
Double-click Frame Start / EndType a frame number
Double-click OutcomeChoose Killed or Failed kill by hand
Cmd Z / Cmd Shift ZUndo / redo
Right-click an eventSet start / end here, merge, split

Review an event

  1. Click a row in the table. The film jumps to the event: clicking Frame End jumps to its end, any other column to its start. Clicking Cell ID, Frame Start or Frame End also zooms in on the cell.
  2. Scroll through the event with the mouse wheel and check that a bacterium is really taken up.
  3. Press X to reject it or C to accept it (or click ✓ / ✗ in the Decision column). Pressing it again on the same row clears the decision. The next event then opens at its start, zoomed in, so you can go straight on.

Clicking an event’s box on the film selects its row in the table. Rejected events disappear from the film but stay in the table, marked ✗. The sort menu above the table changes the order; event numbers never change.

Correct the start and end

The start is the first frame the bacterium and the cell move together; the end is the first frame the bacterium is gone. The program is often one or two frames off on the start.

  1. Select the event in the table.
  2. Scroll the film to the right frame.
  3. Press S to make it the start, or E to make it the end. The event stays selected, so you can set both in a row.

A corrected frame turns blue; hover over it to see what the program had found. Setting it back to the program’s frame removes the blue. Moving the end to the last frame of the film makes the event a Failed kill, and moving it earlier makes it Killed.

The program asks before one likely slip: a start or end that would make the event one frame long (for example S pressed on the end frame). Cancel is the default, so Enter backs out. There is no key to save: every change is saved straight away.

Other corrections

SituationWhat to do
Wrong outcomeDouble-click the Outcome cell and choose Killed or Failed kill. Automatic gives the decision back to the program.
A missed eventClick the bacterium on the film, then + Mark missed event. It starts and ends on the frame on screen and is accepted straight away; set its end with E.
Two rows, one eventSelect both (Cmd-click), then Merge selected (or Cmd M).
One row, two eventsSelect it, go to the frame where the second event starts, and press Split.
Box on the wrong bacteriumHold Cmd and drag the box onto the right bacterium: from that frame on, the box follows it. Dropped on a spot with no bacterium found, the box stays at that spot in the cell and moves with the cell until the bacterium is found again. Or double-click the right bacterium and pick the event. This only changes what is drawn, not the frames; Cmd Z undoes it.

Your work is saved

Every decision and correction is saved the moment you make it, in a file next to the film named <film name>-review.json. There is no save button. Keep that file with the film; opening the film again brings everything back. If it cannot be written (a film on a shared or read-only drive), a red “Review NOT saved” stays at the bottom of the window and the program asks before you close it or open another film: export to Excel first, or move the film to your Mac.

Changing settings is safe. After Run Analysis, Recalculate Bacteria or Re-detect Events, accepted and rejected events are kept as you left them, and a new detection over the frames of an event you already judged is not shown again. Events marked ↺ were judged earlier but are not found with the new settings; they are kept.

Export: Save Events Excel... writes your accepted events, all events not rejected, and the settings used. Outcome code is 1 for killed and 0 for a failed kill.

Something looks wrong? Note what you were doing, choose Help → Show log files and send app.log to us.

Settings

Event Joining

The Event Joining menu: Normal, Aggressive, Super aggressive, Testing

Sometimes the program loses a bacterium inside a cell for a while and reports one event as two. Event Joining puts them back together.

OptionWhat it does
NormalLeaves the events as they are found.
AggressiveJoins two events in the same cell when they are at most 50 frames apart and a bacterium is seen in that cell in at least 70% of the frames between them.
Super aggressive defaultSame as Aggressive, and also joins events that Shared Cells would remove. Shared Cells then checks the joined event as a whole.
TestingJoins nothing. Colours the event list to show what Aggressive and Super aggressive would do.

After changing it, press Re-detect Events. Two events joined that should not be? Select it, go to the frame where the second one starts and press Split.

Shared Cells

The Shared Cells settings: Max in a row, Max in total, Other counts if

An event is removed when another bacterium is in the same cell for too long, because then you cannot tell which one was killed. Going over either limit removes it.

SettingDefaultWhat it does
Max in a row3 framesHow many frames in a row another bacterium may be in the cell. Raise it if good events are removed because a bacterium only passed through.
Max in total10% of eventHow much of the event another bacterium may be in the cell, in total. 100% turns this limit off.
Other counts ifInside, 20% deepHow far inside the cell the other bacterium has to be before it counts. From Touching the cell (strictest) to Inside, 40% deep.

After changing them, press Re-detect Events.

Bacteria Detection

The Bacteria Detection settings: Bright core only, Core must reach White
SettingWhat it does
Bright core only defaultFinds a bacterium by its bright core and the red, orange and yellow around it. The blue glow is ignored.
Whole glowThe older method, which includes the glow. For films without a blue glow, where bacteria are harder to see.
Core must reachHow bright the centre of a bacterium must be: White (default), Yellow, Orange or Red. Lower it if bacteria you can see are not found.

After changing Core must reach, press Recalculate Bacteria. After switching between Bright core only and Whole glow, press Run Analysis.

Run Analysis, Recalculate Bacteria, Re-detect Events

The buttons Run Analysis, Recalculate Bacteria and Re-detect Events
ButtonRecalculatesUse after changing
Run AnalysisCells, bacteria and events. The slowest. A new film, Cell Accuracy, Bright core only / Whole glow
Recalculate BacteriaBacteria and events. Keeps the cells. Bacteria Detection, Bacteria Tracking
Re-detect EventsOnly the events. Takes seconds. Event Joining, Shared Cells

Your accepted and rejected events are kept when you change settings and recalculate: see Reviewing events.

Contact

For a licence, a question, or a film that does not analyse the way you expect.

vandeveldearthur@gmail.com If the program reports a problem, Help → Show log files opens the folder with the report to attach.