sim_hyper: Simulates hypermutation in sequence datasets

Description Usage Arguments

View source: R/sim_data.R

Description

Simulates hypermutation in sequence datasets

Usage

1
sim_hyper(dat, n1, n2, n3, seed = NULL, verbose = FALSE)

Arguments

dat

An alignment as produced by seqinr::read.fasta

n1

If less than one, the proportion of sequences to mutate, else the number of sequences to mutate.

n2

If less than one, the proportion of potential hypermutation positions to mutate, else the number of potential hypermutation positions to mutate. The value 'all' is allowed.

n3

If less than one, the proportion of potential control positions to mutate, else the number of potential control positions to mutate. The value 'all' is allowed.

seed

A seed value to use for the simulations.


philliplab/hypermutR documentation built on Sept. 2, 2020, 2:51 p.m.