Browse code

now accomodates jolma2013

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MotifDb@79947 bc3139a8-67e5-0310-9ffc-ced21a209358

p.shannon authored on 30/08/2013 15:36:54
Showing 1 changed files

... ...
@@ -154,10 +154,10 @@ test.geneIdsAndTypes = function ()
154 154
   geneIds = values (mdb)$geneId
155 155
   geneIdTypes = values (mdb)$geneIdType
156 156
   typeCounts = as.list (table (geneIdTypes))
157
-  checkEquals(typeCounts, list(ENTREZ=1354, FLYBASE=30, SGD=453, comment=683))
157
+  checkEquals(typeCounts, list(ENTREZ=2197, FLYBASE=30, SGD=453, comment=683))
158 158
 
159 159
   na.count = length (which (is.na (geneIds)))
160
-  checkEquals (na.count, 249) 
160
+  checkEquals (na.count, 304) 
161 161
   empty.count = length (which (geneIds == ''))
162 162
   checkEquals (empty.count, 0)
163 163
 
... ...
@@ -532,11 +532,11 @@ test.export_memeFormatToFileDuplication = function ()
532 532
   print ('--- test.export_memeFormatToFileDuplication')
533 533
   mdb = MotifDb # ()
534 534
   mdb.mouse = subset (mdb, organism=='Mmusculus')
535
-  checkEquals (length (mdb.mouse), 329)
535
+  checkEquals (length (mdb.mouse), 462)
536 536
   output.file = 'mouse.txt' # tempfile ()
537 537
   max = 3
538 538
   meme.text = export (mdb.mouse [1:max], output.file, 'meme')
539
-  retrieved = scan (output.file, what=character (0), sep='\n')
539
+  retrieved = scan (output.file, what=character (0), sep='\n', quiet=TRUE)
540 540
   invisible (retrieved)
541 541
 
542 542
 } # test.exportMemeFormatToFileDuplication