Repository with simulator code used in paper "Reducing Read Amplification and Re-synthesis in DNA-based Archival Storage".
Simulator is written in Python and has minimal dependencies on plotting modules.
- Install requirements by running
pip3 install -r requirements.txt
- Generate trace by running
python3 gen.py 1_80_hint.txt 1/80
which will produce file named1_80_hint.txt
- Reproduce Figure 3a-b by running and checking PDFs afterward
python3 sim.py 1_80_hint.txt fig3 1_80_hint.txt fig3
python3 plot3.py
- Reproduce Figure 4a-b by running and checking PDFs afterward
python3 sim.py 1_80_hint.txt fig4 1_80_hint.txt fig4
python3 plot4.py
- Reproduce Figure 6 by running and checking PDF afterward
python3 sim.py 1_80_hint.txt fig6 1_80_hint.txt fig6
python3 plot6.py
Each simulation runs 100 times and completes in around 10 minutes.