Full data, code, and details for each script can be found at https://doi.org/10.5061/dryad.3xsj3txcf. Attached are modified versions of the pre-processing scripts that will more easily allow someone to pre-process their data using the least mean squares regression method.
To pre-process a raw doric FP file, open the script Basic_FP_Processing.m and change the directory to match the folder where your raw doric files are. Running the script will call calculateDF_F0.m and subtractReferenceAndSave.m, resulting in a .csv with the prefix "PROCESSED_" for each file processed. Inside this output file, there will be 4 columns: Time, Reference (DF/F0), Signal (DF/F0), and Corrected. Corrected is the difference between column 2 and 3. We analyzed the reference and signal channels separately instead of using the reference subtracted column.
If not using a Doric system, the required format of the data is a .csv with 3 columns: timestamps, reference channel, and signal channel. The z-scoring mentioned in the methods was done in the next step of the pipeline, and the function nanzscore was used (uploaded here).
Do you have any questions about this protocol?
Post your question to gather feedback from the community. We will also invite the authors of this
article to respond.