restrict_to_PWM: Constrains weights to be valid position weight measures.

Description Usage Arguments Value Author(s)

Description

Constrains filter weights to be valid PWMs by rescaling the weights.

Usage

1
2
restrict_to_PWM(wts, bg = c(0.25, 0.25, 0.25, 0.25),
  pseudoprob = 0.001)

Arguments

wts

Convolutional filter weights.

bg

Vector of background nucleotide probabilities (A, C, G, T)

pseudoprob

Value to add to zero-valued position probability matrix entries prior to converting to PWM.

Value

Rescaled weights.

Author(s)

Matthew Ploenzke, ploenzke@g.harvard.edu


mPloenzke/learnMotifs documentation built on May 27, 2019, 11:55 a.m.