Skip to content

Commit

Permalink
Merge branch 'main' of github.com:billbrod/spatial-frequency-preferen…
Browse files Browse the repository at this point in the history
…ces into main
  • Loading branch information
Billy Broderick committed Oct 26, 2021
2 parents 9f897c4 + b64d665 commit 9857538
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 30 deletions.
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@ instead:
preprocessing.
- You can also run `./run_singularity.py path/to/sfp_latest.sif` without a
`CMD` to open an interactive session in the container.
- `DATA_DIR` has been remapped to `/home/sfp_user/sfp_data` within the
container, so interpret any paths within that directory as lying there.

See [cluster usage](#cluster-usage) section for more details about using this
image on the cluster.
Expand Down Expand Up @@ -406,28 +404,27 @@ analysis, only the first of which must be set:
/home/billbrod or /Users/billbrod) and that the name of your directory cannot
have capital letters in it (i.e., it should be sfp_data, not SFP_data; this
causes an issue on Macs)
- Preprocessing-related: these two only need to be set if you're re-running the
pre-processing steps **and** doing so without using the
[container](#singularity-image).
- `MRI_TOOLS`: path to the Winawer lab MRI tools repo, commit
[8508652bd9e6b5d843d70be0910da413bbee432e](https://github.com/WinawerLab/MRI_tools/tree/8508652bd9e6b5d843d70be0910da413bbee432e).
- `WORKING_DIR`: working directory for preprocessing, stores some temporary
outputs.
- `MRI_TOOLS`: path to the Winawer lab MRI tools repo, commit
[8508652bd9e6b5d843d70be0910da413bbee432e](https://github.com/WinawerLab/MRI_tools/tree/8508652bd9e6b5d843d70be0910da413bbee432e).
this only needs to be set if you're re-running the pre-processing steps
**and** doing so without using the [container](#singularity-image).
- `WORKING_DIR`: working directory for preprocessing, stores some temporary
outputs. Needs to be set if you're re-running pre-processing, regardless of
whether you're using the container or not.
- GLMdenoise-related: these two only need to be set if you're re-running the
GLMdenoise steps **and** doing so without using the
[container](#singularity-image).
- `GLMDENOISE_PATH`: Path to the GLMdenoise MATLAB toolbox.
- `VISTASOFT_PATH`: Path to the Vistasoft MATLAB toolbox.
- Container-related: these only need to be set if you're using the
[container](#singularity-image) **and** running preprocessing and/or
GLMdenoise (you don't need to edit the `MRI_TOOLS`, etc paths as well). Note
the current paths should be correct if you're on NYU Greene. They're the paths
to the install locations for the additional dependencies required for
preprocessing and GLMdenoise. To find their path on the cluster, make sure
they're on your path (probably by using `module load`) and then run e.g.,
`which matlab` (or `which mri_convert`, etc.) to find where they're installed.
Note that we want the root directory of the install (not the `bin/` folder
containing the binary executables so that if `which matlab` returns
GLMdenoise. Note the current paths should be correct if you're on NYU Greene.
They're the paths to the install locations for the additional dependencies
required for preprocessing and GLMdenoise. To find their path on the cluster,
make sure they're on your path (probably by using `module load`) and then run
e.g., `which matlab` (or `which mri_convert`, etc.) to find where they're
installed. Note that we want the root directory of the install (not the `bin/`
folder containing the binary executables so that if `which matlab` returns
`/share/apps/matlab/2020b/bin/matlab`, we just want
`/share/apps/matlab/2020b`).
- `MATLAB_PATH`: directory containing the matlab install.
Expand Down
9 changes: 0 additions & 9 deletions docker-compose.yml

This file was deleted.

4 changes: 0 additions & 4 deletions singularity_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ export PATH=$FSLDIR/bin:$PATH

if [ -f /home/sfp_user/spatial-frequency-preferences/config.json ]; then
cp /home/sfp_user/spatial-frequency-preferences/config.json /home/sfp_user/sfp_config.json
sed -i 's|"DATA_DIR":.*|"DATA_DIR": "/home/sfp_user/sfp_data",|g' /home/sfp_user/sfp_config.json
sed -i 's|"MRI_TOOLS":.*|"MRI_TOOLS": "/home/sfp_user/MRI_tools",|g' /home/sfp_user/sfp_config.json
sed -i 's|"GLMDENOISE_PATH":.*|"GLMDENOISE_PATH": "/home/sfp_user/GLMdenoise",|g' /home/sfp_user/sfp_config.json
sed -i 's|"VISTASOFT_PATH":.*|"VISTASOFT_PATH": "/home/sfp_user/vistasoft",|g' /home/sfp_user/sfp_config.json
sed -i 's|"WORKING_DIR":.*|"WORKING_DIR": "/home/sfp_user/sfp_data/preproc_tmp_dir",|g' /home/sfp_user/sfp_config.json
mkdir -p /home/sfp_user/sfp_data/preproc_tmp_dir
echo "this is a temporary directory created for preprocessing, and can be deleted" > /home/sfp_user/sfp_data/preproc_tmp_dir/delete_me.txt
fi

0 comments on commit 9857538

Please sign in to comment.