readBackground: Estimates a background model from a set of DNA sequences

Description Usage Arguments Value Examples

View source: R/background_wrapper.R

Description

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.

Usage

1
readBackground(seqs, order = 1)

Arguments

seqs

A DNAStringSet object

order

Order of the Markov models that shall be used as the background model. Default: order = 1.

Value

A Background object

Examples

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)

motifcounter documentation built on Nov. 8, 2020, 5:44 p.m.