Scripts for signal recovery analysis in the spinal cord
NOTE -- The bash scripts can only be run on Unix-based operating systems.
Before using these scripts, you need to:
- Install dependencies
git clone -b 1.1 https://github.com/shimming-toolbox/shimming-toolbox/ ~/shimming-toolbox/
cd ~/shimming-toolbox/
make install
git clone -b 6.3 https://github.com/spinalcordtoolbox/spinalcordtoolbox/ ~/spinalcordtoolbox/
cd ~/spinalcordtoolbox/
./install_sct
- FSL (follow instructions on their website)
- Clone the GitHub repository
cd <path_to_where_you_want_the_repository>
git clone https://github.com/shimming-toolbox/spinalcord-signal-recovery.git
- Move to the repository
cd spinalcord-signal-recovery
- Create a conda environment using the env.yml file
conda env create -n <name_of_your_env> -f env.yml
- Activate the new environment
conda activate <name_of_your_env>
- Download the data available on OSF
- Place the unzipped data folder in this folder (spinalcord-signal-recovery)
- Note that the outputs are already provided in this folder.
Navigate to the different script folders for specific instructions on how to run the different scripts.
- Experiment scripts are scripts used at the scanner during the acquisition to obtain the shimming coefficients
- Post-processing scripts are the scripts used to process the data into tSNR measurements
- Figure scripts are the different scripts used to create the paper's figures.