Browse code

All methods use 'SummarizedExperiment' as an input/output object

Neobernad authored on 16/02/2019 17:28:11
Showing 5 changed files

... ...
@@ -2,7 +2,7 @@ Package: evaluomeR
2 2
 Type: Package
3 3
 Title: Evaluation of Bioinformatics Metrics
4 4
 URL: http://sele.inf.um.es/evaluome/index.html
5
-Version: 0.99.3
5
+Version: 0.99.4
6 6
 Author: José Antonio Bernabé-Díaz [aut, cre], Manuel Franco [aut], Juana-María Vivo [aut], Manuel Quesada-Martínez [aut], Astrid Duque-Ramos [aut], Jesualdo Tomás Fernández-Breis [aut].
7 7
 Maintainer: José Antonio Bernabé Díaz <[email protected]>
8 8
 Description: Evaluating the reliability of your own metrics 
... ...
@@ -1,5 +1,9 @@
1
+Changes in version 0.99.4 (2019-04-16)
2
+  + The `correlations` method also uses `SummarizedExperiment` as output object.
3
+
4
+
1 5
 Changes in version 0.99.3 (2019-04-16)
2
-+ All methods depend on `SummarizedExperiment` as input/output object.
6
+  + All methods depend on `SummarizedExperiment` as input/output object.
3 7
 
4 8
 Changes in version 0.99.2 (2019-04-15)
5 9
 + SummarizedExperiment can be now processed via `seToDataFrame` method. Adding SummarizedExperiment and airway dependencies.
... ...
@@ -10,7 +10,8 @@
10 10
 #' @inheritParams stability
11 11
 #' @param margins See \code{\link{par}}.
12 12
 #'
13
-#' @return The Pearson correlation matrix.
13
+#' @return The Pearson correlation matrix as an assay
14
+#' in a \code{\link{SummarizedExperiment}} object.
14 15
 #'
15 16
 #' @examples
16 17
 #' # Using example data from our package
... ...
@@ -36,8 +37,8 @@ correlations <- function(data, margins=c(0,10,9,11), getImages=TRUE,
36 37
     }
37 38
     runMetricsCorrelationIMG(data, MatCorr, margins, label, path)
38 39
   }
39
-
40
-  return(MatCorr)
40
+  se <- createSE(MatCorr)
41
+  return(se)
41 42
 }
42 43
 
43 44
 runMetricsCorrelationIMG <- function(data, correlations, margins, label, path) {
... ...
@@ -25,7 +25,8 @@ The rows contains the measurements of the metrics for each instance in the datas
25 25
 \item{path}{String. Path to a valid directory where plots are saved.}
26 26
 }
27 27
 \value{
28
-The Pearson correlation matrix.
28
+The Pearson correlation matrix as an assay
29
+in a \code{\link{SummarizedExperiment}} object.
29 30
 }
30 31
 \description{
31 32
 Calculation of Pearson correlation coefficient between every pair of
... ...
@@ -110,7 +110,9 @@ We provide the `correlations` function to evaluate the correlations among the me
110 110
 ```{r correlations-1, echo=TRUE}
111 111
 library(evaluomeR)
112 112
 rnaMetrics <- loadSample("rna-metrics")
113
-correlationMatrix <- correlations(rnaMetrics, margins =  c(4,4,12,10))
113
+correlationSE <- correlations(rnaMetrics, margins =  c(4,4,12,10))
114
+# Access the correlation matrix via its first assay:
115
+# assay(correlationSE,1)
114 116
 ```
115 117
 
116 118
 ## Stability analysis ##