trimPWMedge: Trim PWM edge

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
  trimPWMedge(x, threshold=1)

Arguments

x

A matrix representing a PWM.

threshold

A transcription factor name or a list of TF names.

Value

A PWM.

Author(s)

Eloi Mercier <emercier@chibi.ubc.ca>

See Also

makePWM

Examples

1
2
3
4
5
6
7
8
9
#####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)

alyst/MotIV documentation built on May 12, 2019, 2:33 a.m.