This repository contains the data and code (in Matlab) used to analyze the electrical and optical properties of Neuropixels Opto probes, as published inLakunina, Socha, Ladd, et al, “Neuropixels Opto: Combining high-resolution electrophysiology and optogenetics”, Nature Methods 2026The names of the files indicate the relevant figure in the paper:AnalyzeLightPropagation.m (recreates Figure 2b-d)AnalyzeLightInPhantom.m (recreates Extended Data Fig 2b-e)AnalyzeProbeLoss.m (recreates Figure 2a)AnalyzeRMSNoise.m (recreates Extended Data Fig 3a-b)