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
The defacing pipeline for datasets curated by the [Data Science and Sharing Team (DSST)](https://cmn.nimh.nih.gov/dsst) are completed in four steps. Each of these steps is explained in more detail with an example in the next section. The pipeline requires a BIDS dataset as input.
5
+
The DSST Defacing Pipeline has been developed to make the process of defacing anatomical scans of large datasets,
6
+
visually inspecting for accuracy and fixing scans that fail visual inspection more efficient and straightforward. The
7
+
pipeline _requires_ the input dataset to be in BIDS format. A conceptual description of the pipeline can
8
+
found [here](#conceptual-design).
6
9
7
-
1. Generate and finalize ["primary" scans](#glossary) to [other scans'](#glossary) mapping file.
8
-
2. Deface primary scans
9
-
with [@afni_refacer_run](https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/tutorials/refacer/refacer_run.html) program
10
-
developed by the AFNI Team. To deface remaining scans in the session, register them to the primary scan and use
11
-
it's defacemask to generate a defaced image.
12
-
**NOTE**: If a session doesn't have a T1w scan, then `@afni_refacer_run` is run on all every scan individually.
13
-
3. Visually inspect defaced scans with your preferred QC tool.
14
-
4. Fix defacings that failed visual inspection.
15
-
16
-

10
+
This pipeline is designed and tested to work on the NIH HPC systems. While it's possible to get the pipeline running on
11
+
other platforms, please note that it can be error-prone and is not recommended.
17
12
18
-
## Example
13
+
## Usage Instructions
19
14
20
-
### **Step 0:** Get data and code
21
-
Clone this repository to a preferred location on your machine.
We'll be running the scripts on the [MyConnectome](https://openneuro.org/datasets/ds000031/versions/1.0.0) dataset. The dataset is available for download on OpenNeuro as [ds000031](https://openneuro.org/datasets/ds000031/versions/1.0.0/download).
If you have dataset with over 10 subjects, then it might be more practical to run it in parallel. Here's the command one would use to run it on NIH HPC:
90
+
#### Option 2: In parallel at subject level
91
+
92
+
If you have dataset with over 10 subjects, then it might be more practical to run the pipeline in parallel for every
93
+
subject in the dataset using the `-p/--participant-id` option as follows:
BN, Milev R, Müller DJ, Kennedy SH, Scott CJM, Strother SC, and Arnott SR (2021)
123
188
[Multisite Comparison of MRI Defacing Software Across Multiple Cohorts](10.3389/fpsyt.2021.617997). Front. Psychiatry
124
189
12:617997. doi:10.3389/fpsyt.2021.617997
125
-
2.`@afni_refacer_run` is the defacing tool used under the hood. [AFNI Refacer program](https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/tutorials/refacer/refacer_run.html).
190
+
2.`@afni_refacer_run` is the defacing tool used under the
0 commit comments