insertion_mutator: Iterate through the nucleotides and randomly insert...

Description Usage Arguments Value Examples

Description

Pass in a vector of nucleotides, the probability of any given nucleotide being inserted, and get back a vector with insertion mutations.

Usage

1
2
3
insertion_mutator(nt_sequence, insertion_rate_A = 0.05,
  insertion_rate_T = 0.05, insertion_rate_C = 0.05,
  insertion_rate_G = 0.05)

Arguments

nt_sequence

A vector of nucleotides, i.e. c("C","A","T","G","A").

insertion_rate_A

The probability of an "A" insertion occurring.

insertion_rate_T

The probability of an "T" insertion occurring.

insertion_rate_C

The probability of an "C" insertion occurring.

insertion_rate_G

The probability of an "G" insertion occurring.

Value

A vector of nucleotides, i.e. c("C","A","T","G","A"), with any insertions made included.

Examples

1
2
3
4
5
6
7
8
set.seed(1)
insertion_mutator(
c("C","A","T","G","A"),
insertion_rate_A = 0.05,
insertion_rate_T = 0.05,
insertion_rate_C = 0.05,
insertion_rate_G = 0.05
)

zcolburn/evolution documentation built on May 19, 2019, 1:48 a.m.