Troubleshooting¶
ImportError: No module named scipy or similar¶
Install runtime dependencies first:
Plots are not being written¶
Check that the script can create the diagnostic_plots/ directory in the current working directory.
Also verify that your environment has a working Matplotlib backend for non-interactive figure saving.
Optimization returns unexpected values¶
Review the inputs first:
- very high
toxicity_weightwill strongly suppress abundance, essentiality_weight = 0removes the robustness benefit,- very low
clone_fractioncan collapse baseline abundance, - high
burstinessmay push abundance optima upward.
A gene raises ValueError¶
GeneConfig.validate() rejects invalid parameter ranges. Check:
- positive transcription rate,
- positive translation efficiency,
- positive copy number,
- clone fraction within
[0, 1], - non-negative weights,
- positive burstiness.