[Bioc-devel] bug in plotMotifLogo [package: motifStack]

Diego Diez diego10ruiz at gmail.com
Thu Oct 11 08:17:50 CEST 2012


Hi all,

there seems to be a small bug in the plotMotifLogo() function that
plots repeatedly (once per position) the x-axis. Below there is a diff
with the small change that prevents this from happening:

*** Downloads/motifStack/R/motifStack.R	Tue Oct  2 08:40:36 2012
--- Desktop/motifStack_fixed.R	Thu Oct 11 15:08:44 2012
***************
*** 70,77 ****
                  y.pos<-y.pos+h
              }
              x.pos<-x.pos+dw
-             if(xaxis) plotXaxis(pfm, p)
          }
          if(yaxis) plotYaxis(pfm)
          if(!is.na(xlab)) mtext(xlab,1,line=2,cex=xlcex)
          if(!is.na(ylab)) mtext(ylab,2,line=2,cex=ylcex)
--- 70,77 ----
                  y.pos<-y.pos+h
              }
              x.pos<-x.pos+dw
          }
+        if(xaxis) plotXaxis(pfm, p)
          if(yaxis) plotYaxis(pfm)
          if(!is.na(xlab)) mtext(xlab,1,line=2,cex=xlcex)
          if(!is.na(ylab)) mtext(ylab,2,line=2,cex=ylcex)

######################## end of patch ####################

All the best,

-- 
Diego Diez, PhD
Assistant Professor
Bioinformatics and Genomics Laboratory,
WPI Immunology Frontier Research Center (IFReC)
8F Integrated Life Science Building, Osaka University,
3-1 Yamada-oka, Suita, Osaka 565-0871, Japan
Phone: +81-6-6879-4266
Fax: +81-6-6879-4272
diez at ifrec.osaka-u.ac.jp



More information about the Bioc-devel mailing list