This might not be the most appropriate site to be asking such a question, but perhaps someone has a solution.
My question is: is there an R package or function for simulation of DNA sequences of a given basepair length generated according to a prespecified value of the population mutation rate $\theta = 4N_{e}\mu$, where $N_{e}$ is the effective population size and $\mu$ is the per-generation mutation rate
I have real sequence data from GenBank, but I would also like to simulate some random DNA sequences according to a coalescent process.
Essentially the function would output the generated aligned DNA sequences as a FASTA file.
I have been rather unsuccessful in tracking down a suitable package, as most only output generated phylogenies.