Browse code

Added back export methods for plot, summary and show fixing #1

Robert Ivánek authored on 04/06/2020 05:57:22
Showing 3 changed files

... ...
@@ -1,6 +1,6 @@
1 1
 Package: seqLogo
2 2
 Title: Sequence logos for DNA sequence alignments
3
-Version: 1.55.4
3
+Version: 1.55.5
4 4
 Authors@R: 
5 5
     c(person(given="Oliver", family="Bembom", 
6 6
              role = c("aut"), email = "[email protected]"),
... ...
@@ -5,7 +5,10 @@ export(seqLogo)
5 5
 exportClasses(pwm)
6 6
 exportMethods(consensus)
7 7
 exportMethods(ic)
8
+exportMethods(plot)
8 9
 exportMethods(pwm)
10
+exportMethods(show)
11
+exportMethods(summary)
9 12
 import(grid)
10 13
 import(methods)
11 14
 import(stats4)
... ...
@@ -69,6 +69,8 @@ makePWM <- function(pwm, alphabet = "DNA") {
69 69
 #'
70 70
 #' @describeIn pwm-class Shows the position weight matrix.
71 71
 #'
72
+#' @export
73
+#'
72 74
 setMethod("show", signature(object = "pwm"), function(object) {
73 75
     print(round(object@pwm, 4))
74 76
 })
... ...
@@ -77,6 +79,8 @@ setMethod("show", signature(object = "pwm"), function(object) {
77 79
 #'
78 80
 #' @describeIn pwm-class Prints the summary information about position weight
79 81
 #'   matrix.
82
+#'  
83
+#' @export
80 84
 #'
81 85
 setMethod("summary", signature(object = "pwm"), function(object, ...) {
82 86
     cat("Position weight matrix:\n")
... ...
@@ -92,6 +96,8 @@ setMethod("summary", signature(object = "pwm"), function(object, ...) {
92 96
 #' @param ... additional parameters for `plot` function
93 97
 #'
94 98
 #' @describeIn pwm-class Plots the sequence logo of the position weight matrix.
99
+#' 
100
+#' @export
95 101
 #'
96 102
 setMethod("plot", signature(x = "pwm"), function(x, y = "missing", ...) {
97 103
     seqLogo(x)