Sovereign 8s.is mirror of standardgalactic/drn_paper
  • MATLAB 91%
  • HTML 4.5%
  • C 2.2%
  • C++ 1.6%
  • TeX 0.2%
  • Other 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
aytackadirmutlu ed53c371d0 update
2026-04-07 11:01:40 +02:00
support_code update readme and comments 2026-04-07 09:15:22 +02:00
.gitattributes Initial commit 2024-09-16 15:07:40 +02:00
Collected_data_all_fish_fig_1_2_S1_S3_S4.mat update 2026-03-30 17:42:52 +02:00
con_esp.mat update 2026-02-18 13:51:47 +01:00
drn_demo.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig1_2_S1_S3_S4.asv update readme and comments 2026-04-07 09:15:22 +02:00
Fig1_2_S1_S3_S4.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig1_example_animal.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig2_example_animal.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig3_example_animal.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig3_S5.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig4_example_animal.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig4_S6.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig5_example_animal.asv update readme and comments 2026-04-07 09:15:22 +02:00
Fig5_example_animal.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig5_S7.asv update readme and comments 2026-04-07 09:15:22 +02:00
Fig5_S7.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig6_S8.asv update readme and comments 2026-04-07 09:15:22 +02:00
Fig6_S8.m update readme and comments 2026-04-07 09:15:22 +02:00
Fig7_S9.m update readme and comments 2026-04-07 09:15:22 +02:00
FigS2.asv update readme and comments 2026-04-07 09:15:22 +02:00
FigS2.m update readme and comments 2026-04-07 09:15:22 +02:00
README.md update 2026-04-07 11:01:40 +02:00
sav_con.m update readme and comments 2026-04-07 09:15:22 +02:00
startup.m update readme and comments 2026-04-07 09:15:22 +02:00

Code and Data for "Topographically organized dorsal raphe activity modulates forebrain sensory-motor representations and contributes to defensive behaviors"

This repository contains the MATLAB code and information about the processed data used to generate the figures and results in:

Mutlu et al., Topographically organized dorsal raphe activity modulates forebrain sensory-motor representations and contributes to defensive behaviors, in revision, 2026.

1. Repository structure

The repository is organized by figure. Each figure in the paper has a corresponding MATLAB script that can be utilized to reproduce the panels.

  • startup.m
    Initializes paths and environment variables. Run this once per MATLAB session before any figure script.

  • sav_con.m
    Saves the variables set to a constant value to con_esp.mat file.

  • Fig*.m
    Script with sequence of commands applying methods to the object to process the data and produce the panels in the respective figures.

  • support_code/
    Contains shared classes and functions used across multiple figure scripts.

  • drn_demo.m
    Plots Figure 2H of the manuscript for demonstration.


2. System requirements

2.1. Hardware requirements

  • This code requires only a standard computer.

2.2. Software requirements

2.2.1. OS requirements

This code is supported for Microsoft Windows. The code has been tested on the following system:

  • Microsoft Windows: Windows Server 2022 Standard (21H2)

2.2.2. Primary software

  • MATLAB R2024b (64-bit)

2.2.3. Additional dependencies

  • None.

3. Installation guide

  • This code does not require installation to run.

4. Demo

4.1. Instructions to run on data

  • Open MATLAB and run the demo script drn_demo.m.

4.2. Expected output

  • The script drn_demo.m reproduces Figure 2H from the manuscript.

4.3. Expected run time

  • On a normal desktop computer, the demo completes in approximately 10–20 seconds.

5. Processed data

5.1. Download location

The processed data generated in this study will be deposited in the sigma2 database after publication.


6. Instructions for use

The software is organized using MATLAB’s object-oriented programming. A typical analysis on the data follows these steps:

  • Prepare the data in the required format.
  • Create an object that represents the dataset.
  • Run the analysis methods on the data object.
  • Generate and save figures / results.