git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@69547 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -125,7 +125,7 @@ setMethod("consolidate", "GsnapOutput", function(x) { |
125 | 125 |
|
126 | 126 |
##converts all gsnap SAM files to BAM files and creates the .bai index files |
127 | 127 |
setMethod("asBam", "GsnapOutput", |
128 |
- function(file, indexDestination=TRUE) { |
|
128 |
+ function(file) { |
|
129 | 129 |
## the input is not a file. It is a GsnapOutput, |
130 | 130 |
## but param name is enforced |
131 | 131 |
gsp <- file |
... | ... |
@@ -134,7 +134,7 @@ setMethod("asBam", "GsnapOutput", |
134 | 134 |
##output directory. Only take those produced by gsnap. |
135 | 135 |
samFiles <- samPaths(gsp) |
136 | 136 |
mapply(asBam, file = samFiles, dest = samFiles, |
137 |
- overwrite = TRUE, indexDestination=indexDestination) |
|
137 |
+ overwrite = TRUE) |
|
138 | 138 |
|
139 | 139 |
unlink(samFiles) |
140 | 140 |
}) |
... | ... |
@@ -12,7 +12,7 @@ setGeneric("gsnap", function(input_a, input_b = NULL, params, ...) |
12 | 12 |
setMethod("gsnap", c("character", "characterORNULL", "GsnapParam"), |
13 | 13 |
function(input_a, input_b, params, |
14 | 14 |
output = file_path_sans_ext(input_a, TRUE), |
15 |
- consolidate = TRUE, indexDestination=TRUE, ...) |
|
15 |
+ consolidate = TRUE, ...) |
|
16 | 16 |
{ |
17 | 17 |
output_dir <- dirname(output) |
18 | 18 |
if (!file.exists(output_dir)) |
... | ... |
@@ -41,7 +41,7 @@ setMethod("gsnap", c("character", "characterORNULL", "GsnapParam"), |
41 | 41 |
gsnap_output <- GsnapOutput(path = output_path, |
42 | 42 |
version = gsnapVersion(), |
43 | 43 |
param = params) |
44 |
- asBam(gsnap_output, indexDestination=indexDestination) |
|
44 |
+ asBam(gsnap_output) |
|
45 | 45 |
if (consolidate) |
46 | 46 |
consolidate(gsnap_output) |
47 | 47 |
return(gsnap_output) |