generate_sequence: Generate a DNA sequence.

Description Usage Arguments Value Examples

Description

Generate a DNA sequence.

Usage

1
2
3
generate_sequence(num = 100, start_codon = TRUE, stop_codon = TRUE,
  probabilities = c(0.25, 0.25, 0.25, 0.25),
  allow_internal_stop_codons = FALSE)

Arguments

num

Number of codons in the sequence.

start_codon

TRUE/FALSE, whether a start codon should be included.

stop_codon

TRUE/FALSE, whether a stop codon should be included.

probabilities

Probabilities for A, T, C, and G, respectively.

allow_internal_stop_codons

TRUE/FALSE, whether stop codons should be generated in the sequence (not including the terminus if stop_codon is TRUE).

Value

A vector of nucleotides

Examples

1
generate_sequence(100, start_codon = TRUE, stop_codon = TRUE)

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