jale 0.1.2__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 (48) hide show
  1. jale-0.1.2/JALE.egg-info/PKG-INFO +86 -0
  2. jale-0.1.2/JALE.egg-info/SOURCES.txt +51 -0
  3. jale-0.1.2/JALE.egg-info/dependency_links.txt +1 -0
  4. jale-0.1.2/JALE.egg-info/requires.txt +10 -0
  5. jale-0.1.2/JALE.egg-info/top_level.txt +2 -0
  6. jale-0.1.2/LICENSE +21 -0
  7. jale-0.1.2/PKG-INFO +86 -0
  8. jale-0.1.2/README.md +61 -0
  9. jale-0.1.2/jale/__init__.py +0 -0
  10. jale-0.1.2/jale/__main__.py +15 -0
  11. jale-0.1.2/jale/ale.py +439 -0
  12. jale-0.1.2/jale/ale_gui.py +56 -0
  13. jale-0.1.2/jale/assets/__init__.py +0 -0
  14. jale-0.1.2/jale/assets/ascii_logo.py +15 -0
  15. jale-0.1.2/jale/core/__init__.py +0 -0
  16. jale-0.1.2/jale/core/analyses/__init__.py +0 -0
  17. jale-0.1.2/jale/core/analyses/clustering.py +265 -0
  18. jale-0.1.2/jale/core/analyses/contrast.py +328 -0
  19. jale-0.1.2/jale/core/analyses/main_effect.py +333 -0
  20. jale-0.1.2/jale/core/analyses/roi.py +131 -0
  21. jale-0.1.2/jale/core/utils/__init__.py +0 -0
  22. jale-0.1.2/jale/core/utils/compile_experiments.py +77 -0
  23. jale-0.1.2/jale/core/utils/compute.py +675 -0
  24. jale-0.1.2/jale/core/utils/contribution.py +299 -0
  25. jale-0.1.2/jale/core/utils/cutoff_prediction.py +179 -0
  26. jale-0.1.2/jale/core/utils/folder_setup.py +46 -0
  27. jale-0.1.2/jale/core/utils/input.py +394 -0
  28. jale-0.1.2/jale/core/utils/kernel.py +139 -0
  29. jale-0.1.2/jale/core/utils/plot_and_save.py +29 -0
  30. jale-0.1.2/jale/core/utils/tal2icbm_spm.py +45 -0
  31. jale-0.1.2/jale/core/utils/template.py +31 -0
  32. jale-0.1.2/jale/core/utils/tfce_par.py +51 -0
  33. jale-0.1.2/jale/gui/__init__.py +0 -0
  34. jale-0.1.2/jale/gui/add_analysis_window.py +237 -0
  35. jale-0.1.2/jale/gui/analysis_table_frame.py +145 -0
  36. jale-0.1.2/jale/gui/controller.py +56 -0
  37. jale-0.1.2/jale/gui/dataset_table_frame.py +69 -0
  38. jale-0.1.2/jale/gui/output_frame.py +61 -0
  39. jale-0.1.2/jale/gui/output_log_frame.py +75 -0
  40. jale-0.1.2/jale/gui/parameter_window.py +235 -0
  41. jale-0.1.2/jale/gui/sidebar_frame.py +147 -0
  42. jale-0.1.2/jale/gui/tooltip.py +36 -0
  43. jale-0.1.2/pyproject.toml +3 -0
  44. jale-0.1.2/setup.cfg +4 -0
  45. jale-0.1.2/setup.py +32 -0
  46. jale-0.1.2/tests/__init__.py +2 -0
  47. jale-0.1.2/tests/test_input_utils.py +107 -0
  48. jale-0.1.2/tests/utils.py +10 -0
@@ -0,0 +1,86 @@
1
+ Metadata-Version: 2.1
2
+ Name: jale
3
+ Version: 0.1.2
4
+ Summary: Package allowing users to run Activation Likelihood Estimation Meta-Analysis
5
+ Home-page: https://github.com/LenFrahm/JALE
6
+ Author: Lennart Frahm
7
+ Author-email: l.frahm@mailbox.org
8
+ License: MIT
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: customtkinter>=5.2.2
16
+ Requires-Dist: joblib>=1.3.2
17
+ Requires-Dist: nibabel>=5.3.2
18
+ Requires-Dist: numpy>=2.1.2
19
+ Requires-Dist: pandas>=2.2.3
20
+ Requires-Dist: pytest>=8.0.0
21
+ Requires-Dist: PyYAML>=6.0.2
22
+ Requires-Dist: scipy>=1.14.1
23
+ Requires-Dist: xgboost>=2.1.2
24
+ Requires-Dist: openpyxl>=3.1.5
25
+
26
+ # JALE
27
+
28
+ A Python package for conducting ALE (Activation Likelihood Estimation) meta-analyses, supporting a range of analysis workflows: standard ALE, probabilistic or cross-validated ALE, standard ALE contrast, and balanced ALE contrast.
29
+
30
+ ## Table of Contents
31
+ - [Installation](#installation)
32
+ - [Usage](#usage)
33
+ - [Features](#features)
34
+ - [Examples](#examples)
35
+ - [Background and References](#background-and-references)
36
+ - [Contributing](#contributing)
37
+ - [License](#license)
38
+
39
+ ## Installation
40
+
41
+ To install the ALE Meta-Analysis Package, run:
42
+
43
+ ```bash
44
+ pip install jale
45
+ ```
46
+ ## Usage
47
+
48
+ Here’s how to use the project:
49
+
50
+ JALE requires a project folder that contains 3 files:
51
+ 1. Experiment Data (Author, Subjects, Coordinates, Tags)
52
+ 2. Analysis Data (Type of ALE, Tags to be included)
53
+ 3. Yaml config file (specifying project folder path, filenames and ALE parameters)
54
+
55
+ For example files please check the docs folder.
56
+
57
+ Running an ALE can be done in two ways:
58
+
59
+ 1. via CLI:
60
+
61
+ ```bash
62
+ python -m jale /path/to/yaml/file
63
+ ```
64
+
65
+ 2. in Python:
66
+
67
+ ```python
68
+ from jale import main
69
+
70
+ main(yaml_path='/path/to/yaml/file')
71
+ ```
72
+
73
+ ## Features
74
+
75
+ - Standard ("Main Effect") ALE: Brief description
76
+ - Probabilistic ("Cross-Validated") ALE: Brief description
77
+ - Standard ALE Contrast: Brief description
78
+ - Balanced ALE Contrast: Brief description
79
+
80
+ ## Background and References
81
+
82
+ This project is based on research by
83
+ - [Eickhoff et al., 2012](https://doi.org/10.1016/j.neuroimage.2011.09.017).
84
+ - [Eickhoff et al., 2016](https://doi.org/10.1016/j.neuroimage.2016.04.072).
85
+ - [Frahm et al., 2022](https://doi.org/10.1002/hbm.25898).
86
+ - [Frahm et al., 2023](https://doi.org/10.1016/j.neuroimage.2023.120383).
@@ -0,0 +1,51 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ setup.py
5
+ JALE.egg-info/PKG-INFO
6
+ JALE.egg-info/SOURCES.txt
7
+ JALE.egg-info/dependency_links.txt
8
+ JALE.egg-info/requires.txt
9
+ JALE.egg-info/top_level.txt
10
+ jale/__init__.py
11
+ jale/__main__.py
12
+ jale/ale.py
13
+ jale/ale_gui.py
14
+ jale.egg-info/PKG-INFO
15
+ jale.egg-info/SOURCES.txt
16
+ jale.egg-info/dependency_links.txt
17
+ jale.egg-info/requires.txt
18
+ jale.egg-info/top_level.txt
19
+ jale/assets/__init__.py
20
+ jale/assets/ascii_logo.py
21
+ jale/core/__init__.py
22
+ jale/core/analyses/__init__.py
23
+ jale/core/analyses/clustering.py
24
+ jale/core/analyses/contrast.py
25
+ jale/core/analyses/main_effect.py
26
+ jale/core/analyses/roi.py
27
+ jale/core/utils/__init__.py
28
+ jale/core/utils/compile_experiments.py
29
+ jale/core/utils/compute.py
30
+ jale/core/utils/contribution.py
31
+ jale/core/utils/cutoff_prediction.py
32
+ jale/core/utils/folder_setup.py
33
+ jale/core/utils/input.py
34
+ jale/core/utils/kernel.py
35
+ jale/core/utils/plot_and_save.py
36
+ jale/core/utils/tal2icbm_spm.py
37
+ jale/core/utils/template.py
38
+ jale/core/utils/tfce_par.py
39
+ jale/gui/__init__.py
40
+ jale/gui/add_analysis_window.py
41
+ jale/gui/analysis_table_frame.py
42
+ jale/gui/controller.py
43
+ jale/gui/dataset_table_frame.py
44
+ jale/gui/output_frame.py
45
+ jale/gui/output_log_frame.py
46
+ jale/gui/parameter_window.py
47
+ jale/gui/sidebar_frame.py
48
+ jale/gui/tooltip.py
49
+ tests/__init__.py
50
+ tests/test_input_utils.py
51
+ tests/utils.py
@@ -0,0 +1,10 @@
1
+ customtkinter>=5.2.2
2
+ joblib>=1.3.2
3
+ nibabel>=5.3.2
4
+ numpy>=2.1.2
5
+ pandas>=2.2.3
6
+ pytest>=8.0.0
7
+ PyYAML>=6.0.2
8
+ scipy>=1.14.1
9
+ xgboost>=2.1.2
10
+ openpyxl>=3.1.5
@@ -0,0 +1,2 @@
1
+ jale
2
+ tests
jale-0.1.2/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Lennart Frahm
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
jale-0.1.2/PKG-INFO ADDED
@@ -0,0 +1,86 @@
1
+ Metadata-Version: 2.1
2
+ Name: jale
3
+ Version: 0.1.2
4
+ Summary: Package allowing users to run Activation Likelihood Estimation Meta-Analysis
5
+ Home-page: https://github.com/LenFrahm/JALE
6
+ Author: Lennart Frahm
7
+ Author-email: l.frahm@mailbox.org
8
+ License: MIT
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: customtkinter>=5.2.2
16
+ Requires-Dist: joblib>=1.3.2
17
+ Requires-Dist: nibabel>=5.3.2
18
+ Requires-Dist: numpy>=2.1.2
19
+ Requires-Dist: pandas>=2.2.3
20
+ Requires-Dist: pytest>=8.0.0
21
+ Requires-Dist: PyYAML>=6.0.2
22
+ Requires-Dist: scipy>=1.14.1
23
+ Requires-Dist: xgboost>=2.1.2
24
+ Requires-Dist: openpyxl>=3.1.5
25
+
26
+ # JALE
27
+
28
+ A Python package for conducting ALE (Activation Likelihood Estimation) meta-analyses, supporting a range of analysis workflows: standard ALE, probabilistic or cross-validated ALE, standard ALE contrast, and balanced ALE contrast.
29
+
30
+ ## Table of Contents
31
+ - [Installation](#installation)
32
+ - [Usage](#usage)
33
+ - [Features](#features)
34
+ - [Examples](#examples)
35
+ - [Background and References](#background-and-references)
36
+ - [Contributing](#contributing)
37
+ - [License](#license)
38
+
39
+ ## Installation
40
+
41
+ To install the ALE Meta-Analysis Package, run:
42
+
43
+ ```bash
44
+ pip install jale
45
+ ```
46
+ ## Usage
47
+
48
+ Here’s how to use the project:
49
+
50
+ JALE requires a project folder that contains 3 files:
51
+ 1. Experiment Data (Author, Subjects, Coordinates, Tags)
52
+ 2. Analysis Data (Type of ALE, Tags to be included)
53
+ 3. Yaml config file (specifying project folder path, filenames and ALE parameters)
54
+
55
+ For example files please check the docs folder.
56
+
57
+ Running an ALE can be done in two ways:
58
+
59
+ 1. via CLI:
60
+
61
+ ```bash
62
+ python -m jale /path/to/yaml/file
63
+ ```
64
+
65
+ 2. in Python:
66
+
67
+ ```python
68
+ from jale import main
69
+
70
+ main(yaml_path='/path/to/yaml/file')
71
+ ```
72
+
73
+ ## Features
74
+
75
+ - Standard ("Main Effect") ALE: Brief description
76
+ - Probabilistic ("Cross-Validated") ALE: Brief description
77
+ - Standard ALE Contrast: Brief description
78
+ - Balanced ALE Contrast: Brief description
79
+
80
+ ## Background and References
81
+
82
+ This project is based on research by
83
+ - [Eickhoff et al., 2012](https://doi.org/10.1016/j.neuroimage.2011.09.017).
84
+ - [Eickhoff et al., 2016](https://doi.org/10.1016/j.neuroimage.2016.04.072).
85
+ - [Frahm et al., 2022](https://doi.org/10.1002/hbm.25898).
86
+ - [Frahm et al., 2023](https://doi.org/10.1016/j.neuroimage.2023.120383).
jale-0.1.2/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # JALE
2
+
3
+ A Python package for conducting ALE (Activation Likelihood Estimation) meta-analyses, supporting a range of analysis workflows: standard ALE, probabilistic or cross-validated ALE, standard ALE contrast, and balanced ALE contrast.
4
+
5
+ ## Table of Contents
6
+ - [Installation](#installation)
7
+ - [Usage](#usage)
8
+ - [Features](#features)
9
+ - [Examples](#examples)
10
+ - [Background and References](#background-and-references)
11
+ - [Contributing](#contributing)
12
+ - [License](#license)
13
+
14
+ ## Installation
15
+
16
+ To install the ALE Meta-Analysis Package, run:
17
+
18
+ ```bash
19
+ pip install jale
20
+ ```
21
+ ## Usage
22
+
23
+ Here’s how to use the project:
24
+
25
+ JALE requires a project folder that contains 3 files:
26
+ 1. Experiment Data (Author, Subjects, Coordinates, Tags)
27
+ 2. Analysis Data (Type of ALE, Tags to be included)
28
+ 3. Yaml config file (specifying project folder path, filenames and ALE parameters)
29
+
30
+ For example files please check the docs folder.
31
+
32
+ Running an ALE can be done in two ways:
33
+
34
+ 1. via CLI:
35
+
36
+ ```bash
37
+ python -m jale /path/to/yaml/file
38
+ ```
39
+
40
+ 2. in Python:
41
+
42
+ ```python
43
+ from jale import main
44
+
45
+ main(yaml_path='/path/to/yaml/file')
46
+ ```
47
+
48
+ ## Features
49
+
50
+ - Standard ("Main Effect") ALE: Brief description
51
+ - Probabilistic ("Cross-Validated") ALE: Brief description
52
+ - Standard ALE Contrast: Brief description
53
+ - Balanced ALE Contrast: Brief description
54
+
55
+ ## Background and References
56
+
57
+ This project is based on research by
58
+ - [Eickhoff et al., 2012](https://doi.org/10.1016/j.neuroimage.2011.09.017).
59
+ - [Eickhoff et al., 2016](https://doi.org/10.1016/j.neuroimage.2016.04.072).
60
+ - [Frahm et al., 2022](https://doi.org/10.1002/hbm.25898).
61
+ - [Frahm et al., 2023](https://doi.org/10.1016/j.neuroimage.2023.120383).
File without changes
@@ -0,0 +1,15 @@
1
+ import sys
2
+
3
+ from ale import run_ale
4
+
5
+
6
+ def cli_ale():
7
+ if len(sys.argv) == 2:
8
+ yaml_path = sys.argv[1]
9
+ else:
10
+ raise ValueError("No input file provided. Please specify an input file.")
11
+ run_ale(yaml_path=yaml_path)
12
+
13
+
14
+ if __name__ == "__main__":
15
+ cli_ale()