@@ -8,6 +8,24 @@ You should put the code in this `findoutlie` directory on your Python PATH.
8
8
9
9
This README file has instructions on how to get, validate and process the data.
10
10
11
+ ## clone the repository
12
+
13
+ ```
14
+ git clone [email protected] :nipraxis-fall-2022/diagnostics-NME.git
15
+ ```
16
+
17
+ ## open the repository
18
+
19
+ ```
20
+ cd diagnostics-NME
21
+ ```
22
+
23
+ ## Install the dependencies
24
+
25
+ Make sure to install everything listed in 'requirements.txt' using 'pip':
26
+ ```
27
+ pip3 install --user scipy matplotlib pandas scikit-image sympy nibabel jupyter ipython jupytext nipraxis okpy
28
+
11
29
## Get the data
12
30
13
31
```
@@ -16,7 +34,13 @@ curl -L https://figshare.com/ndownloader/files/34951650 -o group_data.tar
16
34
tar xvf group_data.tar
17
35
```
18
36
19
- Add the hash_list file to Git:
37
+ First check if the hash_list.txt is added or not
38
+ ```
39
+ git status
40
+ ```
41
+
42
+ if there is no modification, it means the hash_list.txt is already added to git
43
+ Else, add the hash_list file to Git:
20
44
21
45
```
22
46
git add data/group-* /hash_list.txt
35
59
python3 scripts/validate_data.py data
36
60
```
37
61
62
+ ## Install the new directory module 'findoutlie'
63
+
64
+ To do this, first install the Flit Python package manager:
65
+ Flit is a system for configuring and installing modules.
66
+ You may be able to moit the --user below
67
+ ```
68
+ python3 -m pip install --user flit
69
+ ```
70
+
71
+ Next install the module using Flit. Here the command differs on Windows compared to Linux or macOS.
72
+
73
+ For macOS and Linux:
74
+
75
+ (See below for Windows command)
76
+ Use Flit to install the module.
77
+
78
+ ```
79
+ python3 -m flit install --user -s
80
+ ```
81
+
82
+ For Windows:
83
+ (See above for macOS and Linux)
84
+ Use Flit to install the module.
85
+
86
+ ```
87
+ python3 -m flit install --user --pth-file
88
+ ```
89
+
90
+ Now test that you can import the 'findoutlie' module by running the command. The -c flag tells Python to run the code that follows the -c flag.
91
+
92
+ ```
93
+ python3 -c 'import findoutlie'
94
+ ```
95
+
96
+ This should give no error, because the previous step installed the 'findoutlie' directory module to somewhere on Python's search path.
97
+
38
98
## Find outliers
39
99
40
100
```
@@ -54,9 +114,24 @@ identified as an outlier. 0 refers to the first volume. For example (these
54
114
outlier IDs are completely random, for illustration):
55
115
56
116
```
57
- data/sub-01/func/sub-01_task-taskzero_run-01_bold.nii.gz, 3, 21, 22, 104
58
- data/sub-01/func/sub-01_task-taskzero_run-02_bold.nii.gz, 11, 33, 91
59
- data/sub-03/func/sub-03_task-taskzero_run-02_bold.nii.gz, 101, 102, 132
60
- data/sub-08/func/sub-08_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 166, 167
61
- data/sub-09/func/sub-08_task-taskzero_run-01_bold.nii.gz, 3
117
+ data/group-01/sub-08/func/sub-08_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 18, 19, 133, 134, 135, 136, 154, 155, 157
118
+ data/group-01/sub-08/func/sub-08_task-taskzero_run-02_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 9, 17, 53, 54, 63, 78, 79, 151, 152, 153
119
+ data/group-01/sub-01/func/sub-01_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 20, 21, 157, 158
120
+ data/group-01/sub-01/func/sub-01_task-taskzero_run-02_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 17, 19, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160
121
+ data/group-01/sub-06/func/sub-06_task-taskzero_run-02_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 153, 154, 155, 156, 157, 158, 159, 160, 161
122
+ data/group-01/sub-06/func/sub-06_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 19, 24, 25, 26, 27, 28, 29, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159
123
+ data/group-01/sub-07/func/sub-07_task-taskzero_run-02_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
124
+ data/group-01/sub-07/func/sub-07_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 132, 136, 137, 138, 139, 140, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161
125
+ data/group-01/sub-09/func/sub-09_task-taskzero_run-01_bold.nii.gz, 0, 134, 135, 136, 143, 144, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160
126
+ data/group-01/sub-09/func/sub-09_task-taskzero_run-02_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 36, 79, 80, 150, 151, 152, 153, 154, 155, 156, 157
127
+ data/group-01/sub-10/func/sub-10_task-taskzero_run-02_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 26, 104
128
+ data/group-01/sub-10/func/sub-10_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159
129
+ data/group-01/sub-05/func/sub-05_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 25, 26, 27, 48, 49, 52, 76, 77, 150
130
+ data/group-01/sub-05/func/sub-05_task-taskzero_run-02_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 50, 51, 52, 54, 157, 158, 159, 160, 161
131
+ data/group-01/sub-02/func/sub-02_task-taskzero_run-02_bold.nii.gz, 34, 65, 105, 106, 107, 135, 140, 148
132
+ data/group-01/sub-02/func/sub-02_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21
133
+ data/group-01/sub-03/func/sub-03_task-taskzero_run-02_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 101, 102, 103, 160, 161
134
+ data/group-01/sub-03/func/sub-03_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 136, 137, 138, 139, 140, 142, 156, 157, 158, 159
135
+ data/group-01/sub-04/func/sub-04_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 59, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161
136
+ data/group-01/sub-04/func/sub-04_task-taskzero_run-02_bold.nii.gz, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 32, 33, 34, 35, 36, 49, 50, 52, 53, 54, 55, 57, 58, 148, 149, 157
62
137
```
0 commit comments