nimare 0.4.2rc4__py3-none-any.whl

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 (119) hide show
  1. benchmarks/__init__.py +0 -0
  2. benchmarks/bench_cbma.py +57 -0
  3. nimare/__init__.py +45 -0
  4. nimare/_version.py +21 -0
  5. nimare/annotate/__init__.py +21 -0
  6. nimare/annotate/cogat.py +213 -0
  7. nimare/annotate/gclda.py +924 -0
  8. nimare/annotate/lda.py +147 -0
  9. nimare/annotate/text.py +75 -0
  10. nimare/annotate/utils.py +87 -0
  11. nimare/base.py +217 -0
  12. nimare/cli.py +124 -0
  13. nimare/correct.py +462 -0
  14. nimare/dataset.py +685 -0
  15. nimare/decode/__init__.py +33 -0
  16. nimare/decode/base.py +115 -0
  17. nimare/decode/continuous.py +462 -0
  18. nimare/decode/discrete.py +753 -0
  19. nimare/decode/encode.py +110 -0
  20. nimare/decode/utils.py +44 -0
  21. nimare/diagnostics.py +510 -0
  22. nimare/estimator.py +139 -0
  23. nimare/extract/__init__.py +19 -0
  24. nimare/extract/extract.py +466 -0
  25. nimare/extract/utils.py +295 -0
  26. nimare/generate.py +331 -0
  27. nimare/io.py +635 -0
  28. nimare/meta/__init__.py +39 -0
  29. nimare/meta/cbma/__init__.py +6 -0
  30. nimare/meta/cbma/ale.py +951 -0
  31. nimare/meta/cbma/base.py +947 -0
  32. nimare/meta/cbma/mkda.py +1361 -0
  33. nimare/meta/cbmr.py +970 -0
  34. nimare/meta/ibma.py +1683 -0
  35. nimare/meta/kernel.py +501 -0
  36. nimare/meta/models.py +1199 -0
  37. nimare/meta/utils.py +494 -0
  38. nimare/nimads.py +492 -0
  39. nimare/reports/__init__.py +24 -0
  40. nimare/reports/base.py +664 -0
  41. nimare/reports/default.yml +123 -0
  42. nimare/reports/figures.py +651 -0
  43. nimare/reports/report.tpl +160 -0
  44. nimare/resources/__init__.py +1 -0
  45. nimare/resources/atlases/Harvard-Oxford-LICENSE +93 -0
  46. nimare/resources/atlases/HarvardOxford-cort-maxprob-thr25-2mm.nii.gz +0 -0
  47. nimare/resources/database_file_manifest.json +142 -0
  48. nimare/resources/english_spellings.csv +1738 -0
  49. nimare/resources/filenames.json +32 -0
  50. nimare/resources/neurosynth_laird_studies.json +58773 -0
  51. nimare/resources/neurosynth_stoplist.txt +396 -0
  52. nimare/resources/nidm_pain_dset.json +1349 -0
  53. nimare/resources/references.bib +541 -0
  54. nimare/resources/semantic_knowledge_children.txt +325 -0
  55. nimare/resources/semantic_relatedness_children.txt +249 -0
  56. nimare/resources/templates/MNI152_2x2x2_brainmask.nii.gz +0 -0
  57. nimare/resources/templates/tpl-MNI152NLin6Asym_res-01_T1w.nii.gz +0 -0
  58. nimare/resources/templates/tpl-MNI152NLin6Asym_res-01_desc-brain_mask.nii.gz +0 -0
  59. nimare/resources/templates/tpl-MNI152NLin6Asym_res-02_T1w.nii.gz +0 -0
  60. nimare/resources/templates/tpl-MNI152NLin6Asym_res-02_desc-brain_mask.nii.gz +0 -0
  61. nimare/results.py +225 -0
  62. nimare/stats.py +276 -0
  63. nimare/tests/__init__.py +1 -0
  64. nimare/tests/conftest.py +229 -0
  65. nimare/tests/data/amygdala_roi.nii.gz +0 -0
  66. nimare/tests/data/data-neurosynth_version-7_coordinates.tsv.gz +0 -0
  67. nimare/tests/data/data-neurosynth_version-7_metadata.tsv.gz +0 -0
  68. nimare/tests/data/data-neurosynth_version-7_vocab-terms_source-abstract_type-tfidf_features.npz +0 -0
  69. nimare/tests/data/data-neurosynth_version-7_vocab-terms_vocabulary.txt +100 -0
  70. nimare/tests/data/neurosynth_dset.json +2868 -0
  71. nimare/tests/data/neurosynth_laird_studies.json +58773 -0
  72. nimare/tests/data/nidm_pain_dset.json +1349 -0
  73. nimare/tests/data/nimads_annotation.json +1 -0
  74. nimare/tests/data/nimads_studyset.json +1 -0
  75. nimare/tests/data/test_baseline.txt +2 -0
  76. nimare/tests/data/test_pain_dataset.json +1278 -0
  77. nimare/tests/data/test_pain_dataset_multiple_contrasts.json +1242 -0
  78. nimare/tests/data/test_sleuth_file.txt +18 -0
  79. nimare/tests/data/test_sleuth_file2.txt +10 -0
  80. nimare/tests/data/test_sleuth_file3.txt +5 -0
  81. nimare/tests/data/test_sleuth_file4.txt +5 -0
  82. nimare/tests/data/test_sleuth_file5.txt +5 -0
  83. nimare/tests/test_annotate_cogat.py +32 -0
  84. nimare/tests/test_annotate_gclda.py +86 -0
  85. nimare/tests/test_annotate_lda.py +27 -0
  86. nimare/tests/test_dataset.py +99 -0
  87. nimare/tests/test_decode_continuous.py +132 -0
  88. nimare/tests/test_decode_discrete.py +92 -0
  89. nimare/tests/test_diagnostics.py +168 -0
  90. nimare/tests/test_estimator_performance.py +385 -0
  91. nimare/tests/test_extract.py +46 -0
  92. nimare/tests/test_generate.py +247 -0
  93. nimare/tests/test_io.py +240 -0
  94. nimare/tests/test_meta_ale.py +298 -0
  95. nimare/tests/test_meta_cbmr.py +295 -0
  96. nimare/tests/test_meta_ibma.py +240 -0
  97. nimare/tests/test_meta_kernel.py +209 -0
  98. nimare/tests/test_meta_mkda.py +234 -0
  99. nimare/tests/test_nimads.py +21 -0
  100. nimare/tests/test_reports.py +110 -0
  101. nimare/tests/test_stats.py +101 -0
  102. nimare/tests/test_transforms.py +272 -0
  103. nimare/tests/test_utils.py +200 -0
  104. nimare/tests/test_workflows.py +221 -0
  105. nimare/tests/utils.py +126 -0
  106. nimare/transforms.py +907 -0
  107. nimare/utils.py +1367 -0
  108. nimare/workflows/__init__.py +14 -0
  109. nimare/workflows/base.py +189 -0
  110. nimare/workflows/cbma.py +165 -0
  111. nimare/workflows/ibma.py +108 -0
  112. nimare/workflows/macm.py +77 -0
  113. nimare/workflows/misc.py +65 -0
  114. nimare-0.4.2rc4.dist-info/LICENSE +21 -0
  115. nimare-0.4.2rc4.dist-info/METADATA +124 -0
  116. nimare-0.4.2rc4.dist-info/RECORD +119 -0
  117. nimare-0.4.2rc4.dist-info/WHEEL +5 -0
  118. nimare-0.4.2rc4.dist-info/entry_points.txt +2 -0
  119. nimare-0.4.2rc4.dist-info/top_level.txt +2 -0
@@ -0,0 +1,123 @@
1
+ # STATEMENT OF CHANGES: This file is derived from sources licensed under the Apache-2.0 terms,
2
+ # and this file has been changed.
3
+ # The original file this work derives from is found at:
4
+ # https://github.com/nipreps/niworkflows/blob/9905f90110879ed4123ea291f512b0a60d7ba207/niworkflows/reports/default.yml
5
+ #
6
+ # [May 2023] CHANGES:
7
+ # * Replace BIDSlayout with code that uses the nimare Dataset and MetaResult class.
8
+ #
9
+ # ORIGINAL WORK'S ATTRIBUTION NOTICE:
10
+ #
11
+ # Copyright 2021 The NiPreps Developers <nipreps@gmail.com>
12
+ #
13
+ # Licensed under the Apache License, Version 2.0 (the "License");
14
+ # you may not use this file except in compliance with the License.
15
+ # You may obtain a copy of the License at
16
+ #
17
+ # http://www.apache.org/licenses/LICENSE-2.0
18
+ #
19
+ # Unless required by applicable law or agreed to in writing, software
20
+ # distributed under the License is distributed on an "AS IS" BASIS,
21
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ # See the License for the specific language governing permissions and
23
+ # limitations under the License.
24
+ define: &heatmap_text "The heatmap presents the relative contributions of each experiment to
25
+ each cluster in the thresholded map. There is one row for each experiment, and
26
+ one column for each cluster, with column names being
27
+ <em>PostiveTail</em>/<em>NegativeTail</em> indicating the sign (+/-) of the cluster's
28
+ statistical values. The rows and columns were re-ordered to form clusters in the heatmap."
29
+ define: &focuscounter_text "The FocusCounter analysis characterizes the relative contribution
30
+ of each experiment in a meta-analysis to the resulting clusters by counting the number
31
+ of peaks from each experiment that fall within each significant cluster."
32
+ define: &jackknife_text "The Jackknife analysis characterizes the relative contribution of each
33
+ experiment in a meta-analysis to the resulting clusters by looping through
34
+ experiments, calculating the Estimator's summary statistic for all experiments
35
+ <b>except</b> the target experiment, dividing the resulting test summary statistics
36
+ by the summary statistics from the original meta-analysis, and finally averaging
37
+ the resulting proportion values across all voxels in each cluster."
38
+ define: &explorer_text "The following figure provides an interactive window to explore
39
+ the meta-analytic map in detail."
40
+ package: nimare
41
+ sections:
42
+ - name: Summary
43
+ reportlets:
44
+ - bids: {value: preliminary, dset: 1, suffix: summary}
45
+ title: Dataset 1
46
+ - bids: {value: preliminary, dset: 1, suffix: figure-mask}
47
+ title: Mask
48
+ - bids: {value: preliminary, dset: 1, suffix: figure-static}
49
+ title: Peak coordinates
50
+ - bids: {value: preliminary, dset: 1, suffix: figure-legend}
51
+ - bids: {value: preliminary, dset: 1, suffix: figure-interactive}
52
+ title: Explorer
53
+ iframe: True
54
+ - bids: {value: preliminary, dset: 1, suffix: figure-relcov}
55
+ title: Relative Coverage Map
56
+ - bids: {value: preliminary, dset: 1, suffix: figure-dof}
57
+ title: DoF Map
58
+ - bids: {value: preliminary, dset: 1, suffix: figure-truevoxels}
59
+ title: Percentage of Valid Voxels
60
+ dropdown: True
61
+ - bids: {value: preliminary, dset: 1, suffix: figure-ridgeplot}
62
+ title: Ridge Plot
63
+ - bids: {value: preliminary, dset: 1, suffix: figure-summarystats}
64
+ title: Summary Statistics
65
+ dropdown: True
66
+ - bids: {value: preliminary, dset: 1, suffix: figure-similarity}
67
+ title: Similarity of Input Maps
68
+ - bids: {value: preliminary, dset: 2, suffix: summary}
69
+ title: Dataset 2
70
+ - bids: {value: preliminary, dset: 2, suffix: figure-mask}
71
+ title: Mask
72
+ - bids: {value: preliminary, dset: 2, suffix: figure-static}
73
+ title: Peak coordinates
74
+ - bids: {value: preliminary, dset: 2, suffix: figure-legend}
75
+ - bids: {value: preliminary, dset: 2, suffix: figure-interactive}
76
+ title: Explorer
77
+ iframe: True
78
+ - name: Meta-Analysis
79
+ reportlets:
80
+ - bids: {value: estimator, suffix: summary}
81
+ title: Estimator
82
+ description: Parameters use to fit the meta-analytic estimator.
83
+ - bids: {value: corrector, suffix: summary}
84
+ title: Corrector
85
+ description: Parameters use to fit the corrector.
86
+ - bids: {value: corrector, suffix: figure-summary}
87
+ - bids: {value: corrector, suffix: figure-non}
88
+ - bids: {value: corrector, suffix: figure-interactive}
89
+ subtitle: Explorer
90
+ description: *explorer_text
91
+ - bids: {value: corrector, suffix: figure-static}
92
+ description: This panel shows the the corrrected meta-analytic map.
93
+ - name: Diagnostics
94
+ reportlets:
95
+ - bids: {value: diagnostics, suffix: summary}
96
+ - bids: {value: diagnostics, tab: clust, suffix: table}
97
+ subtitle: Significant clusters
98
+ - bids: {value: diagnostics, tail: positive, suffix: figure}
99
+ subtitle: "Label map: positive tail"
100
+ - bids: {value: diagnostics, tail: negative, suffix: figure}
101
+ subtitle: "Label map: negative tail"
102
+ - bids: {value: diagnostics, diag: FocusCounter, tab: counts, suffix: figure}
103
+ subtitle: FocusCounter
104
+ caption: *heatmap_text
105
+ description: *focuscounter_text
106
+ - bids: {value: diagnostics, diag: Jackknife, tab: counts, suffix: figure}
107
+ subtitle: Jackknife
108
+ caption: *heatmap_text
109
+ description: *jackknife_text
110
+ - bids: {value: diagnostics, diag: FocusCounter, tab: counts, tail: positive, suffix: figure}
111
+ subtitle: FocusCounter
112
+ subsubtitle: "Heatmap: positive tail"
113
+ caption: *heatmap_text
114
+ description: *focuscounter_text
115
+ - bids: {value: diagnostics, diag: FocusCounter, tab: counts, tail: negative, suffix: figure}
116
+ subsubtitle: "Heatmap: negative tail"
117
+ - bids: {value: diagnostics, diag: Jackknife, tab: counts, tail: positive, suffix: figure}
118
+ subtitle: Jackknife
119
+ subsubtitle: "Heatmap: positive tail"
120
+ caption: *heatmap_text
121
+ description: *jackknife_text
122
+ - bids: {value: diagnostics, diag: Jackknife, tab: counts, tail: negative, suffix: figure}
123
+ subsubtitle: "Heatmap: negative tail"