auditapp 0.0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. auditapp-0.0.7/LICENSE.md +201 -0
  2. auditapp-0.0.7/PKG-INFO +347 -0
  3. auditapp-0.0.7/README.md +297 -0
  4. auditapp-0.0.7/pyproject.toml +74 -0
  5. auditapp-0.0.7/src/audit/__init__.py +0 -0
  6. auditapp-0.0.7/src/audit/app/.streamlit/config.toml +7 -0
  7. auditapp-0.0.7/src/audit/app/APP.py +74 -0
  8. auditapp-0.0.7/src/audit/app/__init__.py +0 -0
  9. auditapp-0.0.7/src/audit/app/launcher.py +38 -0
  10. auditapp-0.0.7/src/audit/app/util/__init__.py +0 -0
  11. auditapp-0.0.7/src/audit/app/util/commons/__init__.py +0 -0
  12. auditapp-0.0.7/src/audit/app/util/commons/checks.py +24 -0
  13. auditapp-0.0.7/src/audit/app/util/commons/data_preprocessing.py +98 -0
  14. auditapp-0.0.7/src/audit/app/util/commons/sidebars.py +330 -0
  15. auditapp-0.0.7/src/audit/app/util/commons/utils.py +11 -0
  16. auditapp-0.0.7/src/audit/app/util/constants/__init__.py +0 -0
  17. auditapp-0.0.7/src/audit/app/util/constants/descriptions.py +371 -0
  18. auditapp-0.0.7/src/audit/app/util/constants/features.py +168 -0
  19. auditapp-0.0.7/src/audit/app/util/constants/metrics.py +19 -0
  20. auditapp-0.0.7/src/audit/app/util/images/AUDIT.png +0 -0
  21. auditapp-0.0.7/src/audit/app/util/images/AUDIT_big.jpeg +0 -0
  22. auditapp-0.0.7/src/audit/app/util/images/AUDIT_medium.jpeg +0 -0
  23. auditapp-0.0.7/src/audit/app/util/images/AUDIT_transparent.png +0 -0
  24. auditapp-0.0.7/src/audit/app/util/images/artorg_logo.gif +0 -0
  25. auditapp-0.0.7/src/audit/app/util/images/audit_schema.png +0 -0
  26. auditapp-0.0.7/src/audit/app/util/images/uniovi_logo.png +0 -0
  27. auditapp-0.0.7/src/audit/app/util/pages/Home_Page.py +134 -0
  28. auditapp-0.0.7/src/audit/app/util/pages/Longitudinal_Measurements.py +98 -0
  29. auditapp-0.0.7/src/audit/app/util/pages/Model_Performance_Analysis.py +146 -0
  30. auditapp-0.0.7/src/audit/app/util/pages/Multi_Model_Performance_Comparison.py +93 -0
  31. auditapp-0.0.7/src/audit/app/util/pages/Multivariate_Feature_Analysis.py +96 -0
  32. auditapp-0.0.7/src/audit/app/util/pages/Pairwise_Model_Performance_Comparison.py +221 -0
  33. auditapp-0.0.7/src/audit/app/util/pages/Segmentation_Error_Matrix.py +198 -0
  34. auditapp-0.0.7/src/audit/app/util/pages/Subjects_Exploration.py +119 -0
  35. auditapp-0.0.7/src/audit/app/util/pages/Univariate_Feature_Analysis.py +149 -0
  36. auditapp-0.0.7/src/audit/app/util/pages/__init__.py +0 -0
  37. auditapp-0.0.7/src/audit/cli.py +46 -0
  38. auditapp-0.0.7/src/audit/configs/app.yml +42 -0
  39. auditapp-0.0.7/src/audit/configs/feature_extractor.yml +31 -0
  40. auditapp-0.0.7/src/audit/configs/itk_labels.txt +6 -0
  41. auditapp-0.0.7/src/audit/configs/metric_extractor.yml +34 -0
  42. auditapp-0.0.7/src/audit/feature_extractor.py +69 -0
  43. auditapp-0.0.7/src/audit/features/__init__.py +0 -0
  44. auditapp-0.0.7/src/audit/features/main.py +177 -0
  45. auditapp-0.0.7/src/audit/features/spatial.py +107 -0
  46. auditapp-0.0.7/src/audit/features/statistical.py +122 -0
  47. auditapp-0.0.7/src/audit/features/texture.py +111 -0
  48. auditapp-0.0.7/src/audit/features/tumor.py +257 -0
  49. auditapp-0.0.7/src/audit/metric_extractor.py +68 -0
  50. auditapp-0.0.7/src/audit/metrics/__init__.py +0 -0
  51. auditapp-0.0.7/src/audit/metrics/commons.py +64 -0
  52. auditapp-0.0.7/src/audit/metrics/error_matrix.py +43 -0
  53. auditapp-0.0.7/src/audit/metrics/main.py +230 -0
  54. auditapp-0.0.7/src/audit/metrics/segmentation_metrics.py +251 -0
  55. auditapp-0.0.7/src/audit/metrics/statistical_tests.py +224 -0
  56. auditapp-0.0.7/src/audit/utils/__init__.py +0 -0
  57. auditapp-0.0.7/src/audit/utils/commons/__init__.py +0 -0
  58. auditapp-0.0.7/src/audit/utils/commons/file_manager.py +516 -0
  59. auditapp-0.0.7/src/audit/utils/commons/strings.py +115 -0
  60. auditapp-0.0.7/src/audit/utils/external_tools/__init__.py +0 -0
  61. auditapp-0.0.7/src/audit/utils/external_tools/itk_snap.py +103 -0
  62. auditapp-0.0.7/src/audit/utils/sequences/__init__.py +0 -0
  63. auditapp-0.0.7/src/audit/utils/sequences/sequences.py +290 -0
  64. auditapp-0.0.7/src/audit/visualization/__init__.py +0 -0
  65. auditapp-0.0.7/src/audit/visualization/barplots.py +79 -0
  66. auditapp-0.0.7/src/audit/visualization/boxplot.py +227 -0
  67. auditapp-0.0.7/src/audit/visualization/confusion_matrices.py +207 -0
  68. auditapp-0.0.7/src/audit/visualization/constants.py +11 -0
  69. auditapp-0.0.7/src/audit/visualization/histograms.py +182 -0
  70. auditapp-0.0.7/src/audit/visualization/scatter_plots.py +238 -0
  71. auditapp-0.0.7/src/audit/visualization/sequences.py +9 -0
  72. auditapp-0.0.7/src/audit/visualization/time_series.py +123 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2024 Carlos Aumente Maestro
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,347 @@
1
+ Metadata-Version: 2.1
2
+ Name: auditapp
3
+ Version: 0.0.7
4
+ Summary: AUDIT, Analysis & evalUation Dashboard of artIficial inTelligence
5
+ Home-page: https://github.com/caumente/AUDIT
6
+ License: Apache-2.0
7
+ Keywords: medical image analysis,deep learning,mri,model evaluation,dashboard
8
+ Author: Carlos Aumente
9
+ Author-email: carlosaumente@gmail.com
10
+ Requires-Python: >=3.10,<4.0
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Natural Language :: English
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.6
23
+ Classifier: Topic :: Scientific/Engineering
24
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
25
+ Classifier: Topic :: Scientific/Engineering :: Image Processing
26
+ Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
27
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
+ Requires-Dist: click (>=8.0,<9.0)
29
+ Requires-Dist: colorama (==0.4.6)
30
+ Requires-Dist: loguru (==0.7.2)
31
+ Requires-Dist: matplotlib (==3.5.3)
32
+ Requires-Dist: numpy (==1.26.4)
33
+ Requires-Dist: pandas (==1.3.5)
34
+ Requires-Dist: pillow (==10.4.0)
35
+ Requires-Dist: plotly (==5.22.0)
36
+ Requires-Dist: pymia (==0.3.2)
37
+ Requires-Dist: pyyaml (==6.0.2)
38
+ Requires-Dist: scikit-image (==0.25.0)
39
+ Requires-Dist: scipy (==1.13.1)
40
+ Requires-Dist: simpleitk (==2.3.1)
41
+ Requires-Dist: statsmodels (==0.14.0)
42
+ Requires-Dist: stqdm (==0.0.5)
43
+ Requires-Dist: streamlit (==1.32.0)
44
+ Requires-Dist: streamlit-plotly-events (==0.0.6)
45
+ Requires-Dist: tqdm (==4.64.0)
46
+ Project-URL: Documentation, https://caumente.github.io/AUDIT/
47
+ Project-URL: Repository, https://github.com/caumente/AUDIT
48
+ Description-Content-Type: text/markdown
49
+
50
+
51
+ [//]: # (![alt text]&#40;https://github.com/caumente/AUDIT/blob/main/src/app/util/images/AUDIT_big.jpeg&#41;)
52
+ ![alt text](https://github.com/caumente/AUDIT/blob/main/src/app/util/images/AUDIT_medium.jpeg)
53
+
54
+
55
+ <a href="https://github.com/caumente/AUDIT" title="Go to GitHub repo"><img src="https://img.shields.io/static/v1?label=caumente&message=AUDIT&color=e78ac3&logo=github" alt="caumente - AUDIT"></a>
56
+ <a href="https://github.com/caumente/AUDIT"><img src="https://img.shields.io/github/stars/caumente/AUDIT?style=social" alt="stars - AUDIT"></a>
57
+ <a href="https://github.com/caumente/AUDIT"><img src="https://img.shields.io/github/forks/caumente/AUDIT?style=social" alt="forks - AUDIT"></a>
58
+
59
+
60
+ <a href="https://github.com/caumente/audit/releases/"><img src="https://img.shields.io/github/release/caumente/audit?include_prereleases=&sort=semver&color=e78ac3" alt="GitHub release"></a>
61
+ <a href="#license"><img src="https://img.shields.io/badge/License-Apache_2.0-e78ac3" alt="License"></a>
62
+ <a href="https://github.com/caumente/audit/issues"><img src="https://img.shields.io/github/issues/caumente/audit" alt="issues - AUDIT"></a>
63
+
64
+
65
+ ## Summary
66
+
67
+ AUDIT, Analysis & evalUation Dashboard of artIficial inTelligence, is a tool designed to analyze,
68
+ visualize, and detect biases in brain MRI data and models. It provides tools for loading and processing MRI data,
69
+ extracting relevant features, and visualizing model performance and biases in predictions. AUDIT presents the
70
+ following features:
71
+
72
+
73
+ - **Data management**: Easily work with MRI data from various sources.
74
+ - **Feature extraction**: Extract relevant features from MRI images and their segmentations for analysis.
75
+ - **Visualization**: Visualize model performance, including false positives and negatives, using interactive plots.
76
+ - **Model robustness**: Assess the robustness of the model by evaluating its performance across different datasets and conditions.
77
+ - **Bias detection**: Identify potential biases in model predictions and performance.
78
+ - **Longitudinal analysis**: Track your model performance over different time points.
79
+
80
+ Details of our work are provided in [*our paper*](...........), **AUDIT**. We hope that
81
+ users will use *AUDIT* to gain novel insights into brain tumor segmentation field.
82
+
83
+
84
+ ## Usage
85
+ - **Home Page**: The main landing page of the tool.
86
+ - **Univariate Analysis**: Analysis of individual variables to understand their distributions and characteristics.
87
+ - **Multivariate Analysis**: Examination of multiple variables simultaneously to explore relationships and patterns.
88
+ - **Segmentation Error Matrix**: A table displaying the errors associated with different segmentation tasks.
89
+ - **Model Performance Analysis**: Evaluation of the effectiveness and accuracy of a single model.
90
+ - **Pairwise Model Performance Comparison**: Comparison of performance metrics between two different models.
91
+ - **Multi-model Performance Comparison**: Comparative analysis of performance metrics across multiple models.
92
+ - **Longitudinal Measurements**: Analysis of data collected over time to observe trends and changes.
93
+ - **Subjects Exploration**: Detailed examination of individual subjects within the dataset.
94
+
95
+
96
+ ## Web AUDIT
97
+
98
+ Last released version of **AUDIT** is hosted at https://audit.streamlitapp.com for an online overview of its functionalities.
99
+
100
+
101
+ ## Getting Started
102
+
103
+ ### 1.1 Installation via PIP installer (Not available yet)
104
+
105
+ ```bash
106
+ pip install audit
107
+ ```
108
+
109
+ ### 1.2. Installation via AUDIT repository
110
+
111
+ ### 1.2.1. Using Anaconda
112
+ (Recommended) Create an isolated Anaconda environment:
113
+
114
+ ```bash
115
+ conda create -n audit_env python=3.10
116
+ conda activate audit_env
117
+ ```
118
+
119
+ Clone the repository:
120
+ ```bash
121
+ git clone https://github.com/caumente/AUDIT.git
122
+ cd AUDIT
123
+ ```
124
+
125
+ Install the required packages:
126
+ ```bash
127
+ pip install -r requirements.txt
128
+ ```
129
+
130
+ ### 1.2.2 Using Poetry
131
+
132
+ The library _poetry_ must be installed in your environment to follow this via of installation.
133
+
134
+ Clone the repository:
135
+ ```bash
136
+ git clone git@github.com:caumente/AUDIT.git
137
+ cd AUDIT
138
+ ```
139
+
140
+ Install the dependencies:
141
+ ```bash
142
+ poetry install
143
+ ```
144
+
145
+ Activate virtual environment:
146
+ ```bash
147
+ poetry shell
148
+ ```
149
+
150
+
151
+ ### 2. Configuration
152
+
153
+ Edit the config files in `./src/configs/` directory to set up the paths for data loading and other configurations:
154
+
155
+
156
+ <details>
157
+ <summary><strong>2.1. Feature extractor config</strong></summary>
158
+
159
+ ```yaml
160
+ # Paths to all the datasets
161
+ data_paths:
162
+ dataset_1: '/home/user/AUDIT/datasets/dataset_1/dataset_1_images'
163
+ dataset_N: '/home/user/AUDIT/datasets/dataset_N/dataset_N_images'
164
+
165
+ # Mapping of labels to their numeric values
166
+ labels:
167
+ BKG: 0
168
+ EDE: 3
169
+ ENH: 1
170
+ NEC: 2
171
+
172
+ # List of features to extract
173
+ features:
174
+ statistical: true
175
+ texture: false
176
+ spatial: false
177
+ tumor: false
178
+
179
+ # Longitudinal study settings
180
+ #longitudinal:
181
+ # dataset_N:
182
+ # pattern: "_" # Pattern used for splitting filename
183
+ # longitudinal_id: 1 # Index position for the subject ID after splitting the filename
184
+ # time_point: 2 # Index position for the time point after splitting the filename
185
+
186
+
187
+ # Path where extracted features will be saved
188
+ output_path: '/home/user/AUDIT/outputs/features'
189
+ ```
190
+ </details>
191
+
192
+
193
+ <details>
194
+ <summary><strong>2.2. Metric extractor config</strong></summary>
195
+
196
+ ```yaml
197
+ # Path to the raw dataset
198
+ data_path: '/home/carlos/AUDIT/datasets/dataset_1/dataset_1_images'
199
+
200
+ # Paths to model predictions
201
+ model_predictions_paths:
202
+ model_1: '/home/user/AUDIT/datasets/dataset_1/dataset_1_seg/model_1'
203
+ model_M: '/home/user/AUDIT/datasets/dataset_1/dataset_1_seg/model_M'
204
+
205
+ # Mapping of labels to their numeric values
206
+ labels:
207
+ BKG: 0
208
+ EDE: 3
209
+ ENH: 1
210
+ NEC: 2
211
+
212
+ # List of metrics to compute
213
+ metrics:
214
+ dice: true
215
+ jacc: false
216
+ accu: false
217
+ prec: false
218
+ sens: false
219
+ spec: false
220
+ haus: false
221
+
222
+ # Library used for computing all the metrics
223
+ package: custom
224
+ calculate_stats: false
225
+
226
+ # Path where output metrics will be saved
227
+ output_path: '/home/user/AUDIT/outputs/metrics'
228
+
229
+ # Filename for the extracted information
230
+ filename: 'dataset_1'
231
+ ```
232
+ </details>
233
+
234
+
235
+ <details>
236
+ <summary><strong>2.3. APP config</strong></summary>
237
+
238
+ ```yaml
239
+ # Mapping of labels to their numeric values
240
+ labels:
241
+ BKG: 0
242
+ EDE: 3
243
+ ENH: 1
244
+ NEC: 2
245
+
246
+ # Root path for datasets, features extracted, and metrics extracted
247
+ datasets_path: '/home/user/AUDIT/datasets'
248
+ features_path: '/home/user/AUDIT/outputs/features'
249
+ metrics_path: '/home/user/AUDIT/outputs/metrics'
250
+
251
+ # Paths for raw datasets
252
+ raw_datasets:
253
+ dataset_1: "${datasets_path}/dataset_1/dataset_1_images"
254
+ dataset_N: "${datasets_path}/dataset_N/dataset_N_images"
255
+
256
+ # Paths for feature extraction CSV files
257
+ features:
258
+ dataset_1: "${features_path}/extracted_information_dataset_1.csv"
259
+ dataset_N: "${features_path}/extracted_information_dataset_N.csv"
260
+
261
+ # Paths for metric extraction CSV files
262
+ metrics:
263
+ dataset_1: "${metrics_path}/extracted_information_dataset_1.csv"
264
+ dataset_N: "${metrics_path}/extracted_information_dataset_N.csv"
265
+
266
+ # Paths for models predictions
267
+ predictions:
268
+ dataset_1:
269
+ model_1: "${datasets_path}/dataset_1/dataset_1_seg/model_1"
270
+ model_M: "${datasets_path}/dataset_1/dataset_1_seg/model_M"
271
+ dataset_N:
272
+ model_1: "${datasets_path}/dataset_N/dataset_N_seg/model_1"
273
+ model_M: "${datasets_path}/dataset_N/dataset_N_seg/model_M"
274
+ ```
275
+ </details>
276
+
277
+
278
+ ### 3. Run AUDIT backend
279
+
280
+ Use the following commands to run the *Feature extractor* and *Metric extractor* scripts:
281
+
282
+ ```bash
283
+ python src/feature_extractor.py
284
+ ```
285
+
286
+ ```bash
287
+ python src/metric_extractor.py
288
+ ```
289
+
290
+ A _logs_ folder will be created after running each of the scripts to keep track of the execution. All the output files
291
+ will be stored in the folder defined in the corresponding config file (by default in the _output_ folder).
292
+
293
+ ### 4. Run AUDIT app
294
+
295
+ Use the following streamlit command to run the APP and start the data exploration:
296
+
297
+ ```bash
298
+ streamlit run src/app/APP.py
299
+ ```
300
+
301
+ ### 5. Additional configurations
302
+
303
+ #### 5.1. ITK-Snap
304
+
305
+ AUDIT is prepared for opening cases with ITK-Snap while exploring the data in the different dashboards. However, the
306
+ ITK-Snap tool must have been installed and preconfigured before. Here we provide a simple necessary configuration to
307
+ use it in each operative system:
308
+
309
+ <details>
310
+ <summary><strong>5.1.1. On Mac OS</strong></summary>
311
+
312
+ ```bash
313
+ ```
314
+ </details>
315
+
316
+
317
+ <details>
318
+ <summary><strong>5.1.2. On Linux OS</strong></summary>
319
+
320
+ ```bash
321
+ ```
322
+ </details>
323
+
324
+
325
+
326
+ ## Authors
327
+
328
+ Please feel free to contact us with any issues, comments, or questions.
329
+
330
+ #### Carlos Aumente
331
+
332
+ - Email: <UO297103@uniovi.es>
333
+ - GitHub: https://github.com/caumente
334
+
335
+ #### Mauricio Reyes
336
+ #### Michael Muller
337
+ #### Jorge Díez
338
+ #### Beatriz Remeseiro
339
+
340
+ ## License
341
+ Apache License 2.0
342
+
343
+
344
+
345
+
346
+
347
+