You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-14Lines changed: 36 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,33 @@
2
2
3
3
# DSST Defacing Pipeline
4
4
5
-
The DSST Defacing Pipeline has been developed to make the process of defacing anatomical scans of large datasets, visually inspecting for accuracy and fixing scans that fail visual inspection more efficient and straightforward. The pipeline _requires_ the input dataset to be in BIDS format. A conceptual description of the pipeline can found [here](#conceptual-design).
5
+
The DSST Defacing Pipeline has been developed to make the process of defacing anatomical scans of large datasets, visually inspecting for accuracy and fixing scans that fail visual inspection more efficient and straightforward. The pipeline _requires_ the input dataset to be in BIDS format. A conceptual description of the pipeline can found [here](#conceptual-design).
6
+
7
+
This pipeline is designed and tested to work on the NIH HPC systems. While it's possible to get the pipeline running on other platforms, please note that it can be error-prone and is not recommended.
Apart from AFNI and FSL packages, available as HPC modules, users will need the following packages in their working environment
17
+
- VisualQC
18
+
- FSLeyes
19
+
- Python 3.x
20
+
21
+
There are many ways to create a virtual environment with the required packages, however, we currently only provide instructions to create a conda environment. If you don't already have conda installed, please find instructions [here](https://docs.conda.io/en/latest/miniconda.html). Run the following command to create a conda environment called `dsstdeface` using the `environment.yml` file from this repo.
22
+
23
+
```bash
24
+
conda env create -f environment.yml
25
+
```
26
+
Once conda finishes creating the virtual environment, activate `dsstdeface`.
27
+
28
+
```bash
29
+
conda activate dsstdeface
30
+
```
31
+
12
32
### Run `dsst_defacing_wf.py`
13
33
To deface anatomical scans in the dataset, run `dsst_defacing_wf.py` script.
14
34
```
@@ -33,7 +53,7 @@ optional arguments:
33
53
34
54
The script can be run serially on a BIDS dataset or in parallel at subject/session level. The three methods of running the script have been described below with example commands:
35
55
36
-
**NOTE:** In the example commands below, <path/to/BIDS/input/dataset> and <path/to/desired/output/directory> are placeholders for paths to input and output directories respectively.
56
+
**NOTE:** In the example commands below, `<path/to/BIDS/input/dataset>` and `<path/to/desired/output/directory>` are placeholders for paths to input and output directories, respectively.
37
57
38
58
#### Option 1: Serially
39
59
If you have a small dataset with less than 10 subjects, then it might be easiest to run the defacing algorithm serially.
Pre-requisite: Install VisualQC from https://raamana.github.io/visualqc/installation.html#stable-release[](https://raamana.github.io/visualqc/installation.html#stable-release)
86
-
87
-
Once VisualQC is installed, please run the following command to open VisualQC deface GUI to start visually inspecting defaced scans:
88
-
```bash
89
-
sh <path/to/defacing/output/directory>/visualqc_prep/defacing_qc_cmd
0 commit comments