Learn R Programming

PWMEnrich (version 4.8.2)

makePriors: Make priors from background sequences

Description

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

Usage

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

Arguments

bg.seq
a set of background sequences
bg.pseudo.count
the total pseudocount shared between nucleotides

Examples

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

Run the code above in your browser using DataLab