Description Usage Arguments Value Author(s) References See Also Examples
For a set of input sequences, calculate the overall sequence background for
any k-let size. For very large sequences DNA and RNA sequences (in the billions of bases),
please be aware of the much faster and more efficient
Biostrings::oligonucleotideFrequency()
.
get_bkg()
can still be used in these cases, though it may take several seconds or
minutes to calculate the results (depending on requested k-let sizes).
1 2 3 4 |
sequences |
|
k |
|
as.prob |
Deprecated. |
pseudocount |
|
alphabet |
|
to.meme |
If not |
RC |
|
list.out |
Deprecated. |
nthreads |
|
merge.res |
|
window |
|
window.size |
|
window.overlap |
|
If to.meme = NULL
, a DataFrame
with columns klet
, count
,
and probability
. If merge.res = FALSE
, there will be an additional
sequence
column. If window = TRUE
, there will be an additional start
and stop
columns.
If to.meme
is not NULL
, then NULL
is returned, invisibly.
Benjamin Jean-Marie Tremblay, b2tremblay@uwaterloo.ca
meme3universalmotif
create_sequences()
, scan_sequences()
, shuffle_sequences()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Compare to Biostrings version
library(Biostrings)
seqs.DNA <- create_sequences()
bkg.DNA <- get_bkg(seqs.DNA, k = 3)
bkg.DNA2 <- oligonucleotideFrequency(seqs.DNA, 3, 1, as.prob = FALSE)
bkg.DNA2 <- colSums(bkg.DNA2)
all(bkg.DNA$count == bkg.DNA2)
## Create a MEME background file
get_bkg(seqs.DNA, k = 1:3, to.meme = stdout(), pseudocount = 1)
## Non-DNA/RNA/AA alphabets
seqs.QWERTY <- create_sequences("QWERTY")
bkg.QWERTY <- get_bkg(seqs.QWERTY, k = 1:2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.