Analysis code for the manuscript 'Patterns of within-host genetic diversity in SARS-CoV-2'