Commit c5eef9d
Causal IGV: apply shared floor-rescale so all reports have scaled tracks
The causal report's IGV renderer was writing signal tracks directly from
raw oracle predictions with per-track autoscale, while the variant-report
IGV was already running a PerTrackNormalizer floor-subtract + rescale to
[0, 3.0] (1.0 = genome-wide p99 peak). That inconsistency meant two
reports from the same run had incomparable y-axes.
Extract the rescale step into ``_igv_report.apply_floor_rescale`` and
call it from both ``build_igv_html`` and ``_build_causal_igv`` so every
IGV panel in every report uses the same scaling by default. Users who
want raw dynamics can opt out via ``CausalResult._igv_raw`` (mirrors the
existing ``VariantReport._igv_raw`` knob).
Regenerated the SORT1 causal example; 36 signal-track panels now use
scaled (min=0, max=3) instead of raw autoscale.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f15d926 commit c5eef9d
7 files changed
Lines changed: 464 additions & 370 deletions
File tree
- chorus/analysis
- examples/applications/causal_prioritization/SORT1_locus
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 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 | + | |
133 | 181 | | |
134 | 182 | | |
135 | 183 | | |
| |||
231 | 279 | | |
232 | 280 | | |
233 | 281 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
253 | 285 | | |
254 | 286 | | |
255 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
973 | 978 | | |
974 | 979 | | |
975 | 980 | | |
976 | | - | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
977 | 987 | | |
978 | 988 | | |
979 | 989 | | |
| |||
983 | 993 | | |
984 | 994 | | |
985 | 995 | | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
986 | 1010 | | |
987 | 1011 | | |
988 | 1012 | | |
989 | 1013 | | |
990 | 1014 | | |
991 | 1015 | | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
992 | 1022 | | |
993 | | - | |
| 1023 | + | |
| 1024 | + | |
994 | 1025 | | |
995 | 1026 | | |
996 | | - | |
| 1027 | + | |
| 1028 | + | |
997 | 1029 | | |
998 | 1030 | | |
999 | 1031 | | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
1000 | 1037 | | |
1001 | 1038 | | |
1002 | 1039 | | |
| |||
1007 | 1044 | | |
1008 | 1045 | | |
1009 | 1046 | | |
1010 | | - | |
1011 | | - | |
| 1047 | + | |
1012 | 1048 | | |
1013 | 1049 | | |
1014 | 1050 | | |
1015 | 1051 | | |
1016 | 1052 | | |
1017 | 1053 | | |
1018 | | - | |
1019 | | - | |
| 1054 | + | |
1020 | 1055 | | |
1021 | 1056 | | |
1022 | 1057 | | |
| |||
0 commit comments