Cell migration analysis for microfluidic ATPS channels. Detects cells, channel walls, and the fluid interface from brightfield + fluorescent microscopy frames; produces per-cell physical-coordinate, distance, and category data ready for downstream analysis in Excel / MATLAB / Python.
pip install cytoscan
cytoscan run my_experiment # scaffold dir + config, then run the full pipeline
cytoscan gui # launch the streamlit GUI (pip install 'cytoscan[gui]')
cytoscan version # version + dependency info
On the first invocation against a fresh directory, run will:
- Create
my_experiment/if it doesn't exist - Drop a default
config.yamlat the root - Create
input/{brightfield,fluorescent,mixed}/and sort any loose.tiffiles at the root into the correct category by filename pattern - Run the full pipeline if the inputs are present, otherwise exit with a message telling you to drop frames in and rerun
All results land in my_experiment/output/:
cells.csv— one row per detected cell: pixel + µm coordinates, distance to interface, side (peg/dex), category (int / int_peg / int_dex / outside)frames.csv— one row per frame: cell counts by category, interface geometry summary, validity flagsinterface.csv— long-format interface samples for downstream curve analysissummary.txt— human-readable run summaryvisuals/*.png— per-frame overlays of cells, channel walls, and interface
Three global flags, usable in any position (before or after the subcommand):
-v,--verbose— DEBUG output: per-frame diagnostics and algorithm internals-q,--quiet— WARNING-and-up only; silences INFO progress messages--log-file PATH— also write a full DEBUG-level, timestamped log toPATH(uncolored)
Every run is driven by <experiment>/config.yaml:
Required:
research—pixel_size_um,channel_width_um, ... (defines the physical experiment)
Optional (defaults set by developer):
cell_detection—threshold(fluorescent cell detection)channel_detection— wall and interface detection parametersflagging— quality-gate thresholds (anchor strength, signal ratio, residual MAD)analysis—interface_band_um,transition_band_um(categorization bands)export_visuals,export_data— output toggles
If cytoscan helps your research, please cite the archived release:
McKee, M. (2026). cytoscan: Cell migration analysis for microfluidic ATPS channels. Zenodo. https://doi.org/10.5281/zenodo.20034555
A CITATION.cff is included for tools like Zotero and Mendeley.
Built for the Sun Lab at UTSA by Mateo McKee.