Description Usage Arguments Value See Also Examples
View source: R/simulate_wrapper.R
This function generates a DNAStringSet-object of the given individual sequence lengths by sampling from the background model.
1 | generateDNAStringSet(seqlen, bg)
|
seqlen |
Integer-valued vector that defines the lengths of the
individual sequences. For a given DNAStringSet,
this information can be retrieved using |
bg |
A Background object |
A DNAStringSet object
1 2 3 4 5 6 7 8 9 | # Load sequences
seqfile = system.file("extdata", "seq.fasta", package = "motifcounter")
seqs = Biostrings::readDNAStringSet(seqfile)
# Load background
bg = readBackground(seqs, 1)
# Generate random sequences of various lengths
motifcounter:::generateDNAStringSet(10:50, bg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.