MotifSetup-class: MotifSetup Reference Class

Description Details Fields Methods See Also Examples

Description

This class is used to initialize motif plots and mix them with track plots.

Details

Usage note - the addMotif and addBigWig methods can be chained in following way: MotifSetup()$addMotif("GAGA", window=200L)$addBigWig("path/to/file.bw")

Fields

data

a nested list holding the data

annotations

list of annotations

Methods

addBigWig(file_path)

Adds new BigWig file.

addMotif(pattern, window = 200L, heatmap = TRUE, revcomp = TRUE, genome = NULL, name = pattern)

Adds new motif.

nmotifs()

Prints number of motifs in class

See Also

Other classes: PlotSetArray, PlotSetArray-class; PlotSetList, PlotSetList-class; PlotSetPair, PlotSetPair-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#Motifs only
motif1 <- MotifSetup()
motif1$addMotif("GAGA", window=200L)
motif1$addMotif("TATA", window=100L, name="TATA box")

#Motifs and BigWigs
motif2 <- MotifSetup()
motif2$addMotif("GAGA", window=200L)
motif2$addBigWig("path/to/file.bw")

#Chaining commands
motif3 <- MotifSetup()$addMotif("GAGA")$addBigWig("path/to/file.bw")

Przemol/seqplots-release documentation built on May 8, 2019, 3:47 a.m.