seq_random-methods: Generate 'n' random DNA sequnces of length 'm'

seq_randomR Documentation

Generate n random DNA sequnces of length m

Description

Generate n random DNA sequnces of length m, optional exclude stop codons.

Usage

seq_random(n = 1, m, no.stop.codon = FALSE, ...)

## S4 method for signature 'numeric,numeric'
seq_random(n, m, no.stop.codon)

Arguments

n

the number of the output sequence(s).

m

the length of the ouput sequence(s). Eighter a fixed number or a vector of different numbers.

no.stop.codon

Default FALSE. If TRUE, the stop codons in the frame 1 would be substituted to another random codon.

...

...

Value

a DNAStringSet object

Examples

seq_random(n = 1, m = 99)
seq_random(n = 10, m = 30)
seq_random(n = 10, m = 1:10)
seq.nsc <- seq_random(n = 10, m = 100, no.stop.codon = TRUE)
get_cu(seq.nsc)

Koohoko/SynMut documentation built on Jan. 9, 2023, 12:11 p.m.