matsengrp / antigen

Simulating virus evolution and epidemiology
http://bedford.io/projects/antigen/
1 stars 0 forks source link

Update mutate() to perform substitutions #1

Closed thienktran closed 2 years ago

thienktran commented 2 years ago

Description

Currently, mutate() is adding to the end of the sequence. We want to make mutate() perform substitutions instead.

Example output looks like:

ATGCCTG ATGCATG

Possible Solution

Choose a random index and nucleotide, then use substring() or StringBuilder.