Skip to content

Latest commit

 

History

History
61 lines (53 loc) · 2.51 KB

README.md

File metadata and controls

61 lines (53 loc) · 2.51 KB

spinalcord-signal-recovery

This repository includes a collection of scripts that were used to analyze the MRI data and generate figures for the article "Breheret et al. Impact of through-slice gradient optimization for dynamic slice-wise shimming in the cervico-thoracic spinal cord (in revision)".

Note

The bash scripts can only be run on Unix-based operating systems.

Citation: Coming soon

Before starting

Before using these scripts, you need to:

  1. Install dependencies
git clone -b v1.2 https://github.com/shimming-toolbox/shimming-toolbox/ ~/shimming-toolbox/
cd ~/shimming-toolbox/
make install

Note

If you already have Shimming Toolbox installed, please remove it from your directory before cloning the repository.

rm -rf ~/shimming-toolbox/
git clone -b 6.3 https://github.com/spinalcordtoolbox/spinalcordtoolbox/ ~/spinalcordtoolbox/
cd ~/spinalcordtoolbox/
./install_sct
  • FSL (follow instructions on their website)
  1. Clone the GitHub repository
cd <path_to_where_you_want_the_repository>
git clone https://github.com/shimming-toolbox/spinalcord-signal-recovery.git
  1. Move to the repository
cd spinalcord-signal-recovery
  1. Create a conda environment using the env.yml file
conda env create -n <name_of_your_env> -f env.yml
  1. Activate the new environment
conda activate <name_of_your_env>
  1. Download the data available on OSF
  2. Place the unzipped data folder in this folder (spinalcord-signal-recovery)
  • Note that the outputs are already provided in this folder.

How to use

Navigate to the different script folders for specific instructions on how to run the different scripts.