Skip to content

Commit

Permalink
EHN edit docs to fit the new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
htwangtw committed May 19, 2023
1 parent 9bfbaa9 commit 02f2fa2
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ data:
book:
jb build content --all

figures: inputs/fmriprep-denoise-benchmark/denoise-metrics
figures: data/fmriprep-denoise-benchmark/denoise-metrics
$(PYTHON) scripts/make_manuscript_figures.py
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ virtualenv env
source env/bin/activate
pip install -r binder/requirements.txt
pip install .
make data
make book
```

Expand All @@ -25,7 +26,7 @@ make book

- `content/` is the source of the JupyterBook.

- `inputs/` is reserved to store data for building the JupyterBook.
- `data/` is reserved to store data for building the JupyterBook.
To build the book, one will need all the metrics from the study.
The metrics are here:
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7764979.svg)](https://doi.org/10.5281/zenodo.7764979)
Expand Down
6 changes: 4 additions & 2 deletions content/docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ After cloning and setting up the project, we will need to get all the atlases fo

### Option 1: Download the atlas

You can download a customised tempalteflow directory, untar into `inputs/`.
You can download the customised tempalteflow directory, untar into `data/`.
For the purpose of separating processing and book building, we will copy the templates to `inputs/custome_templateflow`

```bash
make atlas
make data
cp -r data/fmriprep-denoise-benchmark/custome_templateflow inputs/custome_templateflow
```

### Option 2: Generate the atlas
Expand Down
8 changes: 5 additions & 3 deletions content/docs/tldr.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ or help me edit the manuscript, the instruction is as followed:
```{code-block} bash
git clone --recurse-submodules https://github.com/SIMEXP/fmriprep-denoise-benchmark.git
cd fmriprep-denoise-benchmark
virtualenv env
sourse env/bin/activate
virtualenv env
source env/bin/activate
pip install -r binder/requirements.txt
make all
pip install .
make data
make book
```
:::

2 changes: 1 addition & 1 deletion fmriprep_denoise/features/derivatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

MOTION_QC_FILE = "motion_qc.json"
project_root = Path(__file__).parents[2]
inputs = project_root / "inputs"
inputs = project_root / "data"
group_info_column = {"ds000228": "Child_Adult", "ds000030": "diagnosis"}


Expand Down
2 changes: 1 addition & 1 deletion fmriprep_denoise/visualization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def repo2data_path():
def get_data_root():
"""Get motion metric data path root."""
default_path = Path(__file__).parents[2] / \
"inputs" / "fmriprep-denoise-benchmark"
"data" / "fmriprep-denoise-benchmark"
if not (default_path / "data_requirement.json").exists():
default_path = repo2data_path()
return default_path
Expand Down
Empty file removed inputs/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion scripts/fetch_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def download_difumo():


def main():
tf_dir = Path(__file__).parents[1] / "inputs" / \
tf_dir = Path(__file__).parents[1] / "data" / \
"fmriprep-denoise-benchmark" / "custome_templateflow"
os.environ["TEMPLATEFLOW_HOME"] = str(tf_dir.resolve())

Expand Down
2 changes: 1 addition & 1 deletion scripts/setup_templateflow.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# set up the project after cloneing
# Move templates to locations you need them to be
# This is saved for record keeping. To download the files please use command `make atlas``
# This is saved for record keeping. To download the files please use command `make data``
#!/bin/bash

# mist
Expand Down

0 comments on commit 02f2fa2

Please sign in to comment.