Learn R Programming

MotIV (version 1.28.0)

trimPWMedge: Trim PWM edge

Description

This function is use to cut edges with low information content.

Usage

trimPWMedge(x, threshold=1)

Arguments

x
A matrix representing a PWM.
threshold
A transcription factor name or a list of TF names.

Value

PWM.

See Also

makePWM

Examples

Run this code
#####Database and Scores#####
path <- system.file(package="MotIV")
jaspar <- readPWMfile(paste(path,"/extdata/jaspar2010.txt",sep=""))
jaspar.scores <- readDBScores(paste(path,"/extdata/jaspar2010_PCC_SWU.scores",sep=""))

#####Input#####
data(FOXA1_rGADEM)
motifs <- getPWM(gadem)
motifs.trimed <- lapply(motifs,trimPWMedge, threshold=1)

Run the code above in your browser using DataLab