git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MotifDb@86016 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -271,7 +271,8 @@ fbgnToIDs <- function(fbgns, useInputForMissingValues=TRUE) |
271 | 271 |
failed.count <- length(failed.lookups) |
272 | 272 |
if(useInputForMissingValues & failed.count > 0) { |
273 | 273 |
failed.names <- rownames(result)[failed.lookups] |
274 |
- names.matrix <- matrix(rep(failed.names, failed.count), nrow=failed.count) |
|
274 |
+ # an n x 3 matrix, all entries in each row the same |
|
275 |
+ names.matrix <- matrix(rep(failed.names, 3), nrow=failed.count, byrow=FALSE) |
|
275 | 276 |
result[failed.lookups,] <- names.matrix |
276 | 277 |
} |
277 | 278 |
|
... | ... |
@@ -8,7 +8,7 @@ run.tests = function (dataDir) |
8 | 8 |
{ |
9 | 9 |
dataDir <- file.path(dataDir, "flyFactorSurvey") |
10 | 10 |
freshStart () |
11 |
- test.fbgnToIDs() |
|
11 |
+ #test.fbgnToIDs() |
|
12 | 12 |
x.list.BD <- test.createXrefBindingDomain (dataDir) |
13 | 13 |
x.xref <- test.createXref () |
14 | 14 |
x.filenames <- test.getMatrixFilenames (dataDir) |
... | ... |
@@ -165,7 +165,7 @@ test.uniprotToRefSeq = function (tbl.anno) |
165 | 165 |
samples.2 = c ('foo', "Q9UER7") |
166 | 166 |
result.2 = uniprotToRefSeq (samples.2) |
167 | 167 |
checkEquals (names (result.2), samples.2) |
168 |
- checkEquals (as.vector (result.2), c (NA_character_, "NP_001135441")) |
|
168 |
+ checkEquals (as.vector (result.2), c (NA_character_, "NP_001341")) |
|
169 | 169 |
|
170 | 170 |
invisible (result) |
171 | 171 |
|