readBackground {motifcounter} | R Documentation |
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.
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
# Load sequences file = system.file("extdata", "seq.fasta", package = "motifcounter") seqs = Biostrings::readDNAStringSet(file) # Estimate an order-1 Markov model bg = readBackground(seqs, 1)