Learn R Programming

kmeRtone (version 1.0)

simulatePopulation: Simulate a population given ranges of chromosome sequence to mutate.

Description

Simulate a population given ranges of chromosome sequence to mutate.

Usage

simulatePopulation(
  chrom_seq,
  starts,
  ends,
  strand,
  snv_df,
  pop_size,
  top_kmers,
  central_pattern,
  k
)

Value

A count matrix with 4 rows for total top k-mers and susceptible k-mers in sense and antisense. Columns correspond to population individuals.

Arguments

chrom_seq

A chromosome sequence.

starts

Start positions.

ends

End positions.

strand

Strand type: "+" or "-".

snv_df

A table of SNV frequency. Columns: position, base, count.

pop_size

Size of population.

top_kmers

Extreme k-mers i.e. highly susceptible k-mers.

central_pattern

K-mer central pattern.

k

K-mer size.