Description Usage Arguments Value Examples
View source: R/background_wrapper.R
Given a set of DNA sequences and an order, this function estimates an order-d Markov model which is used to characterize random DNA sequences.
1 | readBackground(seqs, order = 1)
|
seqs |
A DNAStringSet object |
order |
Order of the Markov models that shall be used as the background model. Default: order = 1. |
A Background object
1 2 3 4 5 6 | # Load sequences
file = system.file("extdata", "seq.fasta", package = "motifcounter")
seqs = Biostrings::readDNAStringSet(file)
# Estimate an order-1 Markov model
bg = readBackground(seqs, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.