For reasons related to a previous problem that I had with overlapping
conversion tracts for my model parameters, I am simulating model
chromosomes of length 15,000 and only sampling the middle interval of
5000 in the middle (i.e. 4999-9999).
My simulations introduce beneficial
mutations - in order to sample a genomic window containing the beneficial mutation, I need to introduce them in the [4999,9999] interval. Mu current code introduces the mutation at some random position in [0,14999]:
x = rdunif(1,0,14999);
target = sample(p3.genomes, 1, replace=F);
target.addNewDrawnMutation(m2, x);
How can I change this so that the mutation is introduced at a sige in [4999,9999] while modeling a genome as specified in X from [0,14999]?