Tuberous Sclerosis Complex — Advanced Learning Guide¶
For engineers extending or operating this subject.
Source: core/disease-programs/tuberous-sclerosis · 115 Python files · 7,598 LOC · 24 test files
Registered capabilities¶
No capability is registered for this subject in lib/hcls_common/capabilities.json.
No service port — this subject exposes no single registered endpoint.
Principal modules¶
src/viz/usd_ascii.py¶
write_usda, write_mosaic_usda, write_atlas_usda, write_population_usda
write_mosaic_usda— Author the mosaic 'powers-of-ten' cell field as a USD PointInstancer: exactly the
api/main.py¶
lifespan, create_app
src/eval/harness.py¶
evaluate
evaluate— Run the full scorecard.featureddefaults to the engine's featured map if present.
src/agents/trajectory_modeler/runner.py¶
TrajectoryModeler
src/orchestrator/graph.py¶
Orchestrator
Dependencies¶
anthropic>=0.40, fastapi>=0.109, langgraph>=0.2, minio>=7.2, numpy>=1.26, psycopg2-binary>=2.9, pydantic-settings>=2.0, pydantic>=2.0, pymilvus>=2.4, pytest>=8.0, pyyaml>=6.0, redis>=5.0, sentence-transformers>=2.2, statsmodels>=0.14
Running the tests¶
.venv/bin/python scripts/run_all_tests.py tuberous-sclerosis
Two traps the shared harness handles, which a hand-rolled pytest invocation will not:
- Several subjects ship
src/vector_collections.py, which shadows the Python standard library. Putting theirsrc/onPYTHONPATHkills the interpreter before collection. structural-biology/vendor_rfdiffusion/is vendored third-party code needing gated GPU packages and is excluded.
Operational notes¶
Gene-therapy correction of TSC1/TSC2 is preclinical — an open design bench, not a cure today. Pediatric caution at full force. Decision support, never prescribing.
Before changing a port, read ../../build/PORT_MAP.md. The convention is
enforced by scripts/validate_registry.py, which also cross-checks health-monitor.sh — a port
change in one place and not the other fails the build.
Extending it¶
- Add or change code under
core/disease-programs/tuberous-sclerosis. - Keep the capability entry in
lib/hcls_common/capabilities.jsontruthful — alivestatus must answer a health probe. Two capabilities were found registeredlivewith nothing bound to their ports; do not add a third. - Run the gate:
ruff,pytest lib/hcls_common,validate_registry.py,run_all_tests.py.