Skip to content

Commit ea0a4bc

Browse files
committed
Tests for 4d, 3d cmr and 3d breast imaging.
1 parent f5e5a3c commit ea0a4bc

7 files changed

+196
-94
lines changed

Diff for: tests/config.json

-12
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,6 @@
2525
"allow_multiple": true,
2626
"name": "images"
2727
},
28-
{
29-
"value": "unique_file_id_5e14abe0a37012.29503907",
30-
"required": true,
31-
"allow_multiple": true,
32-
"name": "images"
33-
},
34-
{
35-
"value": "unique_file_id_5e14abe0a37012.29503908",
36-
"required": true,
37-
"allow_multiple": true,
38-
"name": "masks"
39-
},
4028
{
4129
"value": "unique_file_id_5e14abe0a37012.29503909",
4230
"required": true,

Diff for: tests/config_3d_breast.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"output_files": [
3+
{
4+
"name": "radiomics_results",
5+
"required": true,
6+
"allow_multiple": false,
7+
"file": {
8+
"file_type": "CSV",
9+
"data_type": "machine_learning_features",
10+
"file_path": "/home/user/vre_radiomics_tool/tests/run000/radiomics_results.csv",
11+
"sources": ""
12+
}
13+
}
14+
],
15+
"input_files": [
16+
{
17+
"value": "unique_file_id_5e14abe0a37012.29503907",
18+
"required": true,
19+
"allow_multiple": true,
20+
"name": "images"
21+
},
22+
{
23+
"value": "unique_file_id_5e14abe0a37012.29503911",
24+
"required": true,
25+
"allow_multiple": true,
26+
"name": "masks"
27+
}
28+
],
29+
"arguments": [
30+
{
31+
"value": "/home/user/vre_radiomics_tool/tests/run000",
32+
"name": "execution"
33+
},
34+
{
35+
"value": "my_project_id",
36+
"name": "project"
37+
},
38+
{
39+
"value": "30",
40+
"name": "bin_width"
41+
}
42+
]
43+
}

Diff for: tests/config_3d_cmr.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"output_files": [
3+
{
4+
"name": "radiomics_results",
5+
"required": true,
6+
"allow_multiple": false,
7+
"file": {
8+
"file_type": "CSV",
9+
"data_type": "machine_learning_features",
10+
"file_path": "/home/user/vre_radiomics_tool/tests/run000/radiomics_results.csv",
11+
"sources": ""
12+
}
13+
}
14+
],
15+
"input_files": [
16+
{
17+
"value": "unique_file_id_5e14abe0a37012.29503908",
18+
"required": true,
19+
"allow_multiple": true,
20+
"name": "images"
21+
},
22+
{
23+
"value": "unique_file_id_5e14abe0a37012.29503912",
24+
"required": true,
25+
"allow_multiple": true,
26+
"name": "masks"
27+
}
28+
],
29+
"arguments": [
30+
{
31+
"value": "/home/user/vre_radiomics_tool/tests/run000",
32+
"name": "execution"
33+
},
34+
{
35+
"value": "my_project_id",
36+
"name": "project"
37+
},
38+
{
39+
"value": "30",
40+
"name": "bin_width"
41+
}
42+
]
43+
}

Diff for: tests/in_metadata.json

+2-82
Original file line numberDiff line numberDiff line change
@@ -54,34 +54,7 @@
5454
"sources": []
5555
},
5656
{
57-
"_id": "unique_file_id_5e14abe0a37012.29503907",
58-
"file_path": "/home/user/vre_radiomics_tool/data/mic/training2/img/patient003_4d.nii.gz",
59-
"file_type": "NIFTI",
60-
"data_type": "bioimage",
61-
"compressed": "GZ",
62-
"user_id": "user_id",
63-
"creation_time": {
64-
"sec": 1578413024,
65-
"usec": 0
66-
},
67-
"meta_data": {
68-
"type": "file",
69-
"size": 0,
70-
"project": "my_project_id",
71-
"atime": {
72-
"sec": 1578413024,
73-
"usec": 0
74-
},
75-
"parentDir": "unique_file_id_5e14abe0a37742.64003100",
76-
"lastAccess": {
77-
"sec": 1578413024,
78-
"usec": 0
79-
}
80-
},
81-
"sources": []
82-
},
83-
{
84-
"_id": "unique_file_id_5e14abe0a37012.29503908",
57+
"_id": "unique_file_id_5e14abe0a37012.29503909",
8558
"file_path": "/home/user/vre_radiomics_tool/data/mic/training2/msk/patient001_4d_label.nii.gz",
8659
"file_type": "NIFTI",
8760
"data_type": "image_mask",
@@ -108,7 +81,7 @@
10881
"sources": []
10982
},
11083
{
111-
"_id": "unique_file_id_5e14abe0a37012.29503909",
84+
"_id": "unique_file_id_5e14abe0a37012.29503910",
11285
"file_path": "/home/user/vre_radiomics_tool/data/mic/training2/msk/patient002_4d_label.nii.gz",
11386
"file_type": "NIFTI",
11487
"data_type": "image_mask",
@@ -133,58 +106,5 @@
133106
}
134107
},
135108
"sources": []
136-
},
137-
{
138-
"_id": "unique_file_id_5e14abe0a37012.29503910",
139-
"file_path": "/home/user/vre_radiomics_tool/data/mic/training2/msk/patient003_4d_label.nii.gz",
140-
"file_type": "NIFTI",
141-
"data_type": "image_mask",
142-
"compressed": "GZ",
143-
"user_id": "user_id",
144-
"creation_time": {
145-
"sec": 1578413024,
146-
"usec": 0
147-
},
148-
"meta_data": {
149-
"labels": {
150-
"lv": 1,
151-
"myo": 2,
152-
"rv": 3
153-
},
154-
"ED": "",
155-
"ES": "",
156-
"parentDir": "unique_file_id_5e14abe0a37742.64003100",
157-
"lastAccess": {
158-
"sec": 1578413024,
159-
"usec": 0
160-
}
161-
},
162-
"sources": []
163-
},
164-
{
165-
"_id": "unique_file_id_5e14abe0a37012.29503911",
166-
"file_path": "/home/user/vre_radiomics_tool/data/mic/training2/metadata.csv",
167-
"file_type": "CSV",
168-
"data_type": "parameter_file",
169-
"user_id": "user_id",
170-
"creation_time": {
171-
"sec": 1578413024,
172-
"usec": 0
173-
},
174-
"meta_data": {
175-
"type": "file",
176-
"size": 0,
177-
"project": "my_project_id",
178-
"atime": {
179-
"sec": 1578413024,
180-
"usec": 0
181-
},
182-
"parentDir": "unique_file_id_5e14abe0a37742.64003100",
183-
"lastAccess": {
184-
"sec": 1578413024,
185-
"usec": 0
186-
}
187-
},
188-
"sources": []
189109
}
190110
]

Diff for: tests/in_metadata_3d_breast.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[
2+
{
3+
"_id": "unique_file_id_5e14abe0a37012.29503907",
4+
"file_path": "/home/user/vre_radiomics_tool/data/mic/breast/breast_image.nii",
5+
"file_type": "NIFTI",
6+
"data_type": "bioimage",
7+
"compressed": "GZ",
8+
"user_id": "user_id",
9+
"creation_time": {
10+
"sec": 1578413024,
11+
"usec": 0
12+
},
13+
"meta_data": {
14+
"type": "file",
15+
"size": 0,
16+
"project": "my_project_id",
17+
"atime": {
18+
"sec": 1578413024,
19+
"usec": 0
20+
},
21+
"parentDir": "unique_file_id_5e14abe0a37742.64003100",
22+
"lastAccess": {
23+
"sec": 1578413024,
24+
"usec": 0
25+
}
26+
},
27+
"sources": []
28+
},
29+
{
30+
"_id": "unique_file_id_5e14abe0a37012.29503911",
31+
"file_path": "/home/user/vre_radiomics_tool/data/mic/breast/breast_image_s.nii.gz",
32+
"file_type": "NIFTI",
33+
"data_type": "image_mask",
34+
"compressed": "GZ",
35+
"user_id": "user_id",
36+
"creation_time": {
37+
"sec": 1578413024,
38+
"usec": 0
39+
},
40+
"meta_data": {
41+
"labels": {
42+
"lesion": 1
43+
},
44+
"parentDir": "unique_file_id_5e14abe0a37742.64003100",
45+
"lastAccess": {
46+
"sec": 1578413024,
47+
"usec": 0
48+
}
49+
},
50+
"sources": []
51+
}
52+
]

Diff for: tests/in_metadata_3d_cmr.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[
2+
{
3+
"_id": "unique_file_id_5e14abe0a37012.29503908",
4+
"file_path": "/home/user/vre_radiomics_tool/data/mic/training/img/patient001/patient001_frame01.nii.gz",
5+
"file_type": "NIFTI",
6+
"data_type": "bioimage",
7+
"compressed": "GZ",
8+
"user_id": "user_id",
9+
"creation_time": {
10+
"sec": 1578413024,
11+
"usec": 0
12+
},
13+
"meta_data": {
14+
"type": "file",
15+
"size": 0,
16+
"project": "my_project_id",
17+
"atime": {
18+
"sec": 1578413024,
19+
"usec": 0
20+
},
21+
"parentDir": "unique_file_id_5e14abe0a37742.64003100",
22+
"lastAccess": {
23+
"sec": 1578413024,
24+
"usec": 0
25+
}
26+
},
27+
"sources": []
28+
},
29+
{
30+
"_id": "unique_file_id_5e14abe0a37012.29503912",
31+
"file_path": "/home/user/vre_radiomics_tool/data/mic/training/msk/patient001/patient001_frame01_label.nii.gz",
32+
"file_type": "NIFTI",
33+
"data_type": "image_mask",
34+
"compressed": "GZ",
35+
"user_id": "user_id",
36+
"creation_time": {
37+
"sec": 1578413024,
38+
"usec": 0
39+
},
40+
"meta_data": {
41+
"labels": {
42+
"lv": 1, "myo": 2, "rv": 3
43+
},
44+
"parentDir": "unique_file_id_5e14abe0a37742.64003100",
45+
"lastAccess": {
46+
"sec": 1578413024,
47+
"usec": 0
48+
}
49+
},
50+
"sources": []
51+
}
52+
]

Diff for: tests/vre_execution.sh

+4
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ echo "--- Test execution: $WORKING_DIR"
2525
echo "--- Start time: `date`"
2626

2727
time $TOOL_EXECUTABLE --config $TEST_DATA_DIR/config.json --in_metadata $TEST_DATA_DIR/in_metadata.json --out_metadata $WORKING_DIR/out_metadata.json # > $WORKING_DIR/tool.log
28+
29+
time $TOOL_EXECUTABLE --config $TEST_DATA_DIR/config_3d_cmr.json --in_metadata $TEST_DATA_DIR/in_metadata_3d_cmr.json --out_metadata $WORKING_DIR/out_metadata_3d_cmr.json # > $WORKING_DIR/tool.log
30+
31+
time $TOOL_EXECUTABLE --config $TEST_DATA_DIR/config_3d_breast.json --in_metadata $TEST_DATA_DIR/in_metadata_3d_breast.json --out_metadata $WORKING_DIR/out_metadata_3d_breast.json # > $WORKING_DIR/tool.log

0 commit comments

Comments
 (0)