ex_search
tit.reporting.generators.ex_search ¶
Ex-search report: one self-contained HTML record per exhaustive montage search.
Built on :mod:tit.reporting.html.components (ARCHITECTURE.md §14). Everything is read from the
run folder: run_config.json (buckets, current sweep, ROI name and radius, leadfield),
final_output.csv (one row per montage and current split), the ROI confirmation
(roi.tetravox.json) and the leadfield's SimNIBS log (electrode geometry, conductivity).
The goal definition and dose record come from tit.reporting.qc_rules.RULES["opt"]; the page
has no checks.
The default view is the winner (ranked by composite = ROI mean × focality) with its electrodes and dose, one chart of every montage's ROI mean against focality, the top 25 as a sortable table, and the ROI and ranking in words; methods and the run record are collapsed.
tit.opt.ex writes one when a search finishes. Rebuild one (nothing is re-searched)::
simnibs_python -m tit.reporting.generators.ex_search <project> <subject> <run name> [--out DIR]
read_results ¶
final_output.csv rows with numbers as floats, ranked by composite (best first).
Source code in tit/reporting/generators/ex_search.py
leadfield_facts ¶
Electrode geometry and conductivity the leadfield was computed with (its SimNIBS log).
Source code in tit/reporting/generators/ex_search.py
collect ¶
Everything the report shows, from one ex-search run folder.
Source code in tit/reporting/generators/ex_search.py
density_chart ¶
Every montage as ROI mean against focality: a log-shaded density grid, the top top as rings, the winner filled, and three curves of equal composite (ROI mean × focality).
Source code in tit/reporting/generators/ex_search.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | |
create_ex_search_report ¶
create_ex_search_report(project_dir: str | Path, subject_id: str, run_dir: str | Path, out_dir: str | Path | None = None) -> Path
Write the report for one ex-search run folder; into the project's reports unless out_dir.