Repository navigation
Commit b008099
Drop median_neighbor_distance from collection aggregation
The scalar was mapped to bed_stats.tssdist, a leftover TSS column that
nothing writes: BedStatsModel has never declared the field, so the value
bedboss computed was discarded by extra="ignore" before insert. count()
returned 0, `if not n: continue` fired, and the key was silently absent
from every scalar_summaries payload since the aggregation was written.
Rather than adding a column, a model field and a migration to wire it up,
drop it. Remove the aggregation entry, the matching key in the
_old_stats_to_scalar_summaries fallback, and the BedSetDistributions
docstring line that pointed readers at it as the replacement for the
neighbor_distances KDE. That line now states the real reason the KDE is not
aggregated: each file's curve is fit over its own log10 range, so bin i means
a different bp value per file.
bed_stats.tssdist is left in place; removing it needs its own migration.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PRGhWjGiUXFoygd35QsKQ71 parent 2fd21d3 commit b008099
3 files changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | | - | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
734 | | - | |
735 | 734 | | |
736 | 735 | | |
737 | 736 | | |
| |||
0 commit comments