View source: R/motif_enrichment_kmers.R
getKmerFreq | R Documentation |
Given a set of sequences, calculate observed and expected k-mer
frequencies. Expected frequencies are based on a Markov model of order
MMorder
.
getKmerFreq(
seqs,
kmerLen = 5,
MMorder = 1,
pseudocount = 1,
zoops = TRUE,
strata = rep(1L, length(seqs)),
p.adjust.method = "BH",
includeRevComp = TRUE
)
seqs |
Set of sequences, either a |
kmerLen |
A |
MMorder |
A |
pseudocount |
A |
zoops |
A |
strata |
A |
p.adjust.method |
A character scalar selecting the p value adjustment
method (used in |
includeRevComp |
A |
A list
with observed and expected k-mer frequencies
(freq.obs
and freq.exp
, respectively), and enrichment
statistics for each k-mer.
res <- getKmerFreq(seqs = c("AAAAATT", "AAATTTT"), kmerLen = 3)
names(res)
head(res$freq.obs)
head(res$freq.exp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.