1) The MATLAB code is shared by the authors of this published paper: Oram J, Jeuken LJC. 2019. Tactic response of Shewanella oneidensis MR-1 toward insoluble electron acceptors. mBio 10:e02490-18. https://doi.org/10.1128/mBio.02490-18 2) The code is adapted from the code the authors used to generate the data published in the aforementioned paper. Minor improvements to condence the code have been made since the publication. 3) The code is for fitting the time-resolved microscopy data (movies) of bacterial motility with the method detailed in the paper. 4) To run the code, you should run either the MATLAB script 'basicTrackingScript.m' or 'basedShannonEntroScript.m' to peform Tracking Analysis or Shannon Entropy analysis, respectively. 5) Details on how to assign filenames of the movies to be analysis and how to provide additional information, such as times corresponding to relevant video frames, isi indicated with comments in the script 'basicTrackingScript.m' or 'basedShannonEntroScript.m'. 6) Below is a table of the MatLab Code Dependencies. This table can also be found in the Excell spreadsheet: Matlab_code_Dependencies.xlsx' TABLE: MatLab Code Dependencies ----------------------------------------------------------------------------------------------------------------------------- MATLAB File (.m) Type Children (Primary Calls To Custom Functions) Parents (Called By) ----------------------------------------------------------------------------------------------------------------------------- basicTrackingScript Script electrodeMasker getGrayscale getPos parameterChecker ratePurgeV3 trackPosModV6 ----------------------------------------------------------------------------------------------------------------------------- basicShannonEntropyScript Script imgBinStruct shannonEntropy ----------------------------------------------------------------------------------------------------------------------------- circleF Function imgFilterF ----------------------------------------------------------------------------------------------------------------------------- electrodeMasker Function imgFilterF basicTrackingScript masker ----------------------------------------------------------------------------------------------------------------------------- excludeMasked Function basicTrackingScript getLocations parameterChecker ----------------------------------------------------------------------------------------------------------------------------- findObjectsX Function imgFilterF basicTrackingScript pkfnd2 getLocations parameterChecker ----------------------------------------------------------------------------------------------------------------------------- getGrayscale Function getTopImgX basicTrackingScript parameterChecker ----------------------------------------------------------------------------------------------------------------------------- getImgFast Function getLocations ----------------------------------------------------------------------------------------------------------------------------- getLocations Function excludeMasked getPos findObjectsX getImgFast getTopImgX interExcludeCombiner ----------------------------------------------------------------------------------------------------------------------------- getPos Function getLocations basicTrackingScript ----------------------------------------------------------------------------------------------------------------------------- getTopImgX Function getGrayscale getLocations ----------------------------------------------------------------------------------------------------------------------------- imgBinStruct Function basicShannonEntropyScript ----------------------------------------------------------------------------------------------------------------------------- imgFilterF Function circleF electrodeMasker myGausian findObjectsX ----------------------------------------------------------------------------------------------------------------------------- interExcludeCombiner Function basicTrackingScript getLocations ----------------------------------------------------------------------------------------------------------------------------- masker Function electrodeMasker ----------------------------------------------------------------------------------------------------------------------------- myGausian Function imgFilterF ----------------------------------------------------------------------------------------------------------------------------- parameterChecker Function excludeMasked basicTrackingScript findObjectsX getGrayscale showLocationsZ ----------------------------------------------------------------------------------------------------------------------------- pkfnd2 Function findObjectsX ----------------------------------------------------------------------------------------------------------------------------- ratePurgeV3 Function basicTrackingScript trackPosModV6 ----------------------------------------------------------------------------------------------------------------------------- shannonEntropy Function basicShannonEntropyScript ----------------------------------------------------------------------------------------------------------------------------- showLocationsZ Function parameterChecker ----------------------------------------------------------------------------------------------------------------------------- trackPosModV6 Function ratePurgeV3 basicTrackingScript trackingMod ----------------------------------------------------------------------------------------------------------------------------- trackingMod Function trackPosModV6 -----------------------------------------------------------------------------------------------------------------------------