Description Details Fields Methods See Also Examples
This class is used to initialize motif plots and mix them with track plots.
Usage note - the addMotif
and addBigWig
methods can be chained
in following way: MotifSetup()$addMotif("GAGA",
window=200L)$addBigWig("path/to/file.bw")
data
a nested list holding the data
annotations
list of annotations
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
Other classes: PlotSetArray-class
,
PlotSetList-class
,
PlotSetPair-class
1 2 3 4 5 6 7 8 9 10 11 12 13 | #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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.