Functional Pearl: Signature Memoization for Drug Repurposing
summary
Claims that signature memoization caches subexpressions to cut edit/run/check cycles; implements a tiny embedded DSL Dagopoly in Scheme (233 lines) and Python (≈300 lines) that writes cached artifacts (pickled streams, human-readable manifests). Applies to Alzheimer’s drug repurposing by joining a 76-gene AD list to the RTX-KG2 graph, using reservoir/random sampling (2%) to get interactive results in ~45+30s for ranking and explanations versus ~12 minutes cold, reading a 4.5 GB tgz.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:50Drug repurposing concepts
- 5:03FDA approval and Alzheimer's
- 7:34Memory efficiency design
- 9:01Generators streams block objects
- 11:32Caching behavior API
- 12:57Comparison with SnakeMake
- 14:25Multilingual Python Scheme
- 15:07Drug target metrics
- 15:50Live demo
- 21:15Q&A
- 25:26Implementation summary
