Repository navigation
Description
🤖 AI text below 🤖
Context
The imaging path no longer uses MATLAB. TiffSplit ingestion moved to Python in 6f1c52b ("AcquiredTiff population translation to python", 2026-05-21), and suite2p runs from Python (suite2p_slurm_job.py, conda or uv, #204); neither imaging slurm script loads matlab. Code and comments from the MATLAB version are still there. None of it runs, but it suggests a dependency on U19-pipeline-matlab and on module load matlab that no longer exists.
Found while checking what on the imaging path still uses conda or MATLAB (#204).
Dead code
AcquiredTiff.old_make(u19_pipeline/imaging_pipeline.py:184-198): it raningest_scaninfo_shell.shwith theU19-pipeline-matlab/scriptsdirectory. Nothing calls it, and the Pythonmakereplaced it.u19_pipeline/automatic_job/ingest_scaninfo_shell.sh: onlyold_makeuses it. It runsmodule load matlab/R2024aandmatlab ... populate_Imaging_AcquiredTiff(...).u19_pipeline/automatic_job/params_config.py:269-276:datajoint_proj_dir,u19_matlab_dir,startup_pipeline_matlab_dirandingest_scaninfo_script. Onlyold_makereads them, butparams_configcomputes them on every import (get_root_directory()). Check thatdatajoint_proj_dirisn't used elsewhere before removing it.u19_pipeline/automatic_job/slurm_creator.py:22-23:default_preprocessing_tool = "kilosort2"anddefault_matlab_ver = "R2020b"are not used anywhere.
Stale comments
u19_pipeline/automatic_job/recording_handler.py:485says "call matlab script that handles TiffSplits", and line 489 says "fovs records ingested in matlab Script". Both now happen inAcquiredTiff.makein Python.- The second line of the
TiffSplitdefinition (u19_pipeline/imaging_pipeline.py:206) says "makefunction is declared in theU19-pipeline-matlabrepository". It is an ordinary comment, not the table comment (that is the first#line), so editing it doesn't touch the table.
Worth a look, but leave it if unsure
u19_pipeline/automatic_job/SlurmFiles/slurm_real.slurmandslurm_real_spock.slurmare tracked copies of old generated scripts (module load matlab/R2020a, anacondapy).generate_slurm_fileoverwritesslurm_real.slurmon every run, which is likely why the handler's cron wrapper pulls with--autostash.- Untracking them (
git rm --cachedplus.gitignore) would make the deployed checkout stop showing local changes. - The pull that removes them from the index also deletes the file on u19proc. The handler writes it again before each use, so check that first.
- Untracking them (
Not dead (keep)
module load matlab/R2024ain the ephys slurm scripts (slurm_creator.py, conda and uv): native MATLAB Kilosort 2 / 3 paramsets need it on the node (seespock_uv_env.md).- The MATLAB references in
u19_pipeline/utility.py: they are about matching MATLAB's psychometric fit and MATLAB DataJoint blobs.
Size
Small: delete one method, one shell script, a few constants and two comments. Tests: the existing imaging and handler tests should still pass, and a grep for old_make, ingest_scaninfo and startup_pipeline_matlab_dir should find nothing.
Pull request coverage
Open
- U19-pipeline-python PR #209 (open draft to master; direct)
Activity