makePriors: Make priors from background sequences

Description Usage Arguments Examples

View source: R/background.R

Description

These priors serve both as background nucleotide frequencies and pseudo-counts for PWMs.

Usage

1
makePriors(bg.seq, bg.pseudo.count)

Arguments

bg.seq

a set of background sequences

bg.pseudo.count

the total pseudocount shared between nucleotides

Examples

1
2
3
4
# some example sequences
sequences = list(DNAString("AAAGAGAGTGACCGATGAC"), DNAString("ACGATGAGGATGAC"))
# make priors with pseudo-count of 1 shared between them
makePriors(sequences, 1)

PWMEnrich documentation built on Nov. 8, 2020, 7:45 p.m.