Open Haddox opened 2 years ago
I think there is a bug in the way that we initialize the simulation. Specifically, when we initialize a virus object at the start of the simulation:
https://github.com/matsengrp/antigen/blob/9add8384258d5078e44b60c58a6e72b63097d420/Parameters.java#L121
... we create a new GeometricSeqPhenotype object without providing an input sequence:
https://github.com/matsengrp/antigen/blob/9add8384258d5078e44b60c58a6e72b63097d420/PhenotypeFactory.java#L19
The result is that the code generates a random sequence that is the same length as the input sequence:
https://github.com/matsengrp/antigen/blob/9add8384258d5078e44b60c58a6e72b63097d420/GeometricSeqPhenotype.java#L72
I think that we need to make the following two changes:
GeometricSeqPhenotype.java
this.nucleotideSequence
Paramters.startingSequence
startingSequenceGenerator
I think there is a bug in the way that we initialize the simulation. Specifically, when we initialize a virus object at the start of the simulation:
https://github.com/matsengrp/antigen/blob/9add8384258d5078e44b60c58a6e72b63097d420/Parameters.java#L121
... we create a new GeometricSeqPhenotype object without providing an input sequence:
https://github.com/matsengrp/antigen/blob/9add8384258d5078e44b60c58a6e72b63097d420/PhenotypeFactory.java#L19
The result is that the code generates a random sequence that is the same length as the input sequence:
https://github.com/matsengrp/antigen/blob/9add8384258d5078e44b60c58a6e72b63097d420/GeometricSeqPhenotype.java#L72
I think that we need to make the following two changes:
GeometricSeqPhenotype.java
setsthis.nucleotideSequence
to be equal toParamters.startingSequence
.startingSequenceGenerator
, which generates a random sequence that is the same length as the input sequence.