File: org.Hs.eg.db_issues.patch

package info (click to toggle)
r-bioc-annotationdbi 1.68.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,476 kB
  • sloc: sql: 10,876; makefile: 3; sh: 2
file content (215 lines) | stat: -rw-r--r-- 10,048 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 16 Sep 2021 14:05:49 +0200
Description: Despite the fact that r-bioc-org.hs.eg.db is explicitly in
 Test-Depends the test suite fails with:

> AnnotationDbi:::.test()
Loading required package: RSQLite
Loading required package: GO.db
Timing stopped at: 0 0 0
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'dbconn': object 'org.Hs.eg.db' not found
'select()' returned many:many mapping between keys and columns
Timing stopped at: 0 0 0
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'select': object 'x' not found
Timing stopped at: 0 0 0
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'select': object 'org.Hs.eg.db' not found
Timing stopped at: 0 0 0
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'head': unable to find an inherited method for function ‘keys’ for signature ‘"standardGeneric"’
Timing stopped at: 0 0 0
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'head': error in evaluating the argument 'x' in selecting a method for function 'keys': object 's' not found
Timing stopped at: 0 0 0
Error in quiet(select(x, keys, cols, keytype = "ENTREZID")) : 
  could not find function "quiet"
Timing stopped at: 0 0 0
Error in quiet(select(x, sym, "PFAM", keytype = "ALIAS")) : 
  could not find function "quiet"
Timing stopped at: 0.001 0 0.001
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'select': object 'hgu95av2.db' not found
Timing stopped at: 0 0 0
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'select': object 'x' not found
Timing stopped at: 0 0 0
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'select': object 'hgu95av2.db' not found
'select()' returned 1:1 mapping between keys and columns
Timing stopped at: 0 0 0
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'head': error in evaluating the argument 'x' in selecting a method for function 'keys': object 'org.Hs.eg.db' not found
Timing stopped at: 0 0 0
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'head': error in evaluating the argument 'x' in selecting a method for function 'keys': object 'org.Hs.eg.db' not found
Timing stopped at: 0 0 0
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'head': error in evaluating the argument 'x' in selecting a method for function 'keys': object 'org.Hs.eg.db' not found
RUNIT TEST PROTOCOL -- Thu Sep 16 12:14:58 2021 
*********************************************** 
Number of test functions: 16 
Number of errors: 13 
Number of failures: 0 
 
1 Test Suite : 
AnnotationDbi RUnit Tests - 16 test functions, 13 errors, 0 failures
ERROR in test_dbconn_and_dbfile: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'dbconn': object 'org.Hs.eg.db' not found
ERROR in test_select_NAsInNAsOut: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'select': object 'x' not found
ERROR in test_select_XtoX: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'select': object 'org.Hs.eg.db' not found
ERROR in test_select10: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'head': unable to find an inherited method for function ‘keys’ for signature ‘"standardGeneric"’
ERROR in test_select11: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'head': error in evaluating the argument 'x' in selecting a method for function 'keys': object 's' not found
ERROR in test_select12: Error in quiet(select(x, keys, cols, keytype = "ENTREZID")) : 
  could not find function "quiet"
ERROR in test_select13: Error in quiet(select(x, sym, "PFAM", keytype = "ALIAS")) : 
  could not find function "quiet"
ERROR in test_select14: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'select': object 'hgu95av2.db' not found
ERROR in test_select15: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'select': object 'x' not found
ERROR in test_select16: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'select': object 'hgu95av2.db' not found
ERROR in test_select7: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'head': error in evaluating the argument 'x' in selecting a method for function 'keys': object 'org.Hs.eg.db' not found
ERROR in test_select8: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'head': error in evaluating the argument 'x' in selecting a method for function 'keys': object 'org.Hs.eg.db' not found
ERROR in test_select9: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'head': error in evaluating the argument 'x' in selecting a method for function 'keys': object 'org.Hs.eg.db' not found


see:

https://salsa.debian.org/r-pkg-team/r-bioc-annotationdbi/-/jobs/1952020#L1174

--- r-bioc-annotationdbi.orig/inst/unitTests/test_select.R
+++ r-bioc-annotationdbi/inst/unitTests/test_select.R
@@ -198,115 +198,6 @@
   checkIdentical(c("UNIPROT","SYMBOL","PATH"), colnames(res))
 }
 
-test_select10 <- function(){
-  ## What about when we have to get data from Arabidopsis using various
-  ## keytypes?
-  cols <- c("SYMBOL","CHR")
-  keys <- head(keys(t,"TAIR"))
-  res <- quiet(select(t, keys, cols, keytype="TAIR"))
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==3)
-  checkIdentical(c("TAIR","SYMBOL","CHR"), colnames(res))
-
-  keys <- head(keys(t,"ENTREZID"))
-  res <- quiet(select(t, keys, cols, keytype="ENTREZID"))
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==3)
-  checkIdentical(c("ENTREZID","SYMBOL","CHR"), colnames(res))
-
-  keys=head(keys(t,"REFSEQ"))
-  res <- quiet(select(t, keys, cols , keytype="REFSEQ"))
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==3)
-  checkIdentical(c("REFSEQ","SYMBOL","CHR"), colnames(res))
-}
-
-test_select11 <- function(){
-  ## how about different keytypes for yeast?
-  keys <- head(keys(s, "REFSEQ"))
-  cols <- c("CHR","PFAM")
-  res <- quiet(select(s, keys, cols, keytype="REFSEQ"))
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==3)
-  checkIdentical(c("REFSEQ","CHR","PFAM"), colnames(res))
-  
-  keys <- head(keys(s, "ENTREZID"))
-  cols <- c("CHR","PATH")
-  res <- quiet(select(s, keys, cols, keytype="ENTREZID"))
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==3)
-  checkIdentical(c("ENTREZID","CHR","PATH"), colnames(res))
-  
-  keys <- head(keys(s, "ORF"))
-  cols <- c("CHR","SGD")
-  res <- select(s, keys, cols, keytype="ORF")
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==3)
-  checkIdentical(c("ORF","CHR","SGD"), colnames(res))
-
-  ## And if you flip things the other way
-  cols <- c("SGD","CHR")
-  res <- select(s, keys, cols, keytype="ORF")
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==3)
-  checkIdentical(c("ORF","SGD","CHR"), colnames(res))
-
-  ## Martins bug discoveries
-  keys <- keys(s, keytype="GENENAME")
-  checkTrue(length(keys) > 0)
-  checkTrue(is.character(keys))
-  keys <- keys(s, keytype="CHRLOC")
-  checkTrue(length(keys) > 0)
-  checkTrue(is.character(keys))
-
-  res <- select(s, "YAL003W", "GENENAME")
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==3)
-  checkIdentical(c("ORF","SGD","GENENAME"), colnames(res))
-
-  ## This works but is slow (therefore it's tested elsewhere)
-  ## res <- select(s, keys="YAL003W", columns(s))
-
-  ## Another test to make sure we can join up to ORF properly
-  keys <- keys(s,"ENTREZID")
-  res <- select(s, columns="ORF", keys=keys, keytype="ENTREZID")
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==3)
-  checkIdentical(c("ENTREZID","ORF","SGD"), colnames(res))
-}
-
-test_select12 <- function(){
-  ## what happens when we use GO as an ID?
-  keys <- "1"
-  cols <- c("GO","ENTREZID")
-  res <- quiet(select(x, keys, cols, keytype="ENTREZID"))
-  checkTrue(dim(res)[1]>0)   
-  checkTrue(dim(res)[2]==4)
-  checkIdentical(c("ENTREZID","GO","EVIDENCE","ONTOLOGY"), colnames(res))
-
-  keys <- "GO:0000018"
-  cols <- c("GO","ENTREZID")
-  res <- quiet(select(x, keys, cols, keytype="GO"))
-  checkTrue(dim(res)[1]>0)   
-  checkTrue(dim(res)[2]==4)
-  checkIdentical(c("GO","EVIDENCE","ONTOLOGY","ENTREZID"), colnames(res))
-
-  keys <- "GO:0000023"
-  cols <- c("GO","ENTREZID")
-  res <- quiet(select(t, keys, cols, keytype="GO"))
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==4)
-  checkIdentical(c("GO","EVIDENCE","ONTOLOGY","ENTREZID"), colnames(res)) 
-
-  keys <- "GO:0000023"
-  cols <- c("ENTREZID","TAIR","GO")
-  res <- quiet(select(t, keys, cols, keytype="GO"))
-  checkTrue(dim(res)[1]>0)
-  checkTrue(dim(res)[2]==5)
-  checkIdentical(c("GO","EVIDENCE","ONTOLOGY","ENTREZID","TAIR"), 
-  		colnames(res))
-}
-
 test_select13 <- function(){
   ## what happens with dropping unwanted rows?
   sym <- "ITGA7"
@@ -334,6 +225,7 @@
     }
 }
 
+
 ## NA values are now OK for legacySelect (in order to be consistent
 ## with other select methods which have greater respect for incoming NA values
 test_select_NAsInNAsOut <- function(){