generateDNAString {motifcounter}R Documentation

Generate DNAString

Description

This function generates a random DNAString of a given length by sampling from the background model.

Usage

generateDNAString(len, bg)

Arguments

len

Integer length of the sequence

bg

A Background object

Value

A DNAString object

See Also

generateDNAStringSet

Examples


# Load sequences
seqfile = system.file("extdata", "seq.fasta", package = "motifcounter")
seqs = Biostrings::readDNAStringSet(seqfile)

# Load background
bg = readBackground(seqs, 1)

# Generate a 1 kb random sequence
motifcounter:::generateDNAString(1000, bg)


[Package motifcounter version 1.10.0 Index]