plotSigMotif: Plotting function for motifHalliiV2

Description Usage Arguments Value Author(s) Examples

View source: R/plotSigMotif.R

Description

Writes a plot of significant motifs data (including logo) to file

Usage

1
plotSigMotif(calcMotifEnrichmentOutput, pdf.file = "motifs.pdf", threshold = 0.05)

Arguments

calcMotifEnrichmentOutput

output from calcMotifEnrichment

pdf.file

the name (possibly including the directory) of the output file)

threshold

the threshold to plot - uses mutliple testing corrected pvalue from calcMotifEnrichmentOutput

Value

A .pdf file is writen. Nothing is returned

Author(s)

J.T. Lovell

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(motifHalliiV2)
library(devtools)

v2geneID<-c("Pahal.J02145", "Pahal.J01516","Pahal.H01249","Pahal.D01315","Pahal.J00094","Pahal.D00330","Pahal.D02670",
"Pahal.D01649", "Pahal.D02828", "Pahal.J00146", "Pahal.C04014", "Pahal.H01253", "Pahal.D00532","Pahal.J00293",
"Pahal.F02021", "Pahal.F02121", "Pahal.F01847", "Pahal.F01958", "Pahal.F00534", "Pahal.B02910")

#bonferroni multiple correction
test<-calcMotifEnrichment(v2geneID[1:10], FDR.method="p.adjust", method="bonferroni")

plotSigMotif(test, pdf.file="~/Desktop/test.pdf", threshold=0.5)


{ ~Motif }
{ ~Enrichment }

jtlovell/motifHalliiV2 documentation built on May 20, 2019, 3:14 a.m.