Simulate a population given ranges of chromosome sequence to mutate.
simulatePopulation(
chrom_seq,
starts,
ends,
strand,
snv_df,
pop_size,
top_kmers,
central_pattern,
k
)
A count matrix with 4 rows for total top k-mers and susceptible k-mers in sense and antisense. Columns correspond to population individuals.
A chromosome sequence.
Start positions.
End positions.
Strand type: "+" or "-".
A table of SNV frequency. Columns: position, base, count.
Size of population.
Extreme k-mers i.e. highly susceptible k-mers.
K-mer central pattern.
K-mer size.