git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@95333 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -50,7 +50,7 @@ setGeneric("genomeName", function(x) standardGeneric("genomeName")) |
50 | 50 |
|
51 | 51 |
setMethod("genomeName", "character", function(x) x) |
52 | 52 |
setMethod("genomeName", "BSgenome", function(x) providerVersion(x)) |
53 |
-setMethod("genomeName", "FastaFile", |
|
53 |
+setMethod("genomeName", "RTLFile", |
|
54 | 54 |
function(x) file_path_sans_ext(basename(path(x)), TRUE)) |
55 | 55 |
|
56 | 56 |
file_path_is_absolute <- function(x) { |
... | ... |
@@ -26,6 +26,10 @@ setMethod("gmap_build", c("FastaFile", "GmapGenome"), function(x, genome, ...) { |
26 | 26 |
gmap_build(path(x), genome, ...) |
27 | 27 |
}) |
28 | 28 |
|
29 |
+setMethod("gmap_build", c("RTLFile", "GmapGenome"), function(x, genome, ...) { |
|
30 |
+ gmap_build(import(x), genome, ...) |
|
31 |
+}) |
|
32 |
+ |
|
29 | 33 |
setMethod("gmap_build", c("DNAStringSet", "GmapGenome"), |
30 | 34 |
function(x, genome, ...) { |
31 | 35 |
tmpfile <- tempfile() |