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

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
4
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

1
2
3
4
5
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)

SynMut documentation built on Nov. 8, 2020, 8:01 p.m.