Browse code

actually check in the gmap-mode fix

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@80186 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 10/09/2013 03:42:15
Showing 1 changed files

... ...
@@ -27,7 +27,7 @@ setClass("GsnapParam",
27 27
                         nofails = "logical", 
28 28
                         split_output = "logical",
29 29
                         terminal_threshold = "integer",
30
-                        gmap_mode = "characterORNULL",
30
+                        gmap_mode = "character",
31 31
                         extra = "list"))
32 32
 
33 33
 ### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
... ...
@@ -157,7 +157,9 @@ GsnapParam <- function(genome, unique_only = FALSE, molecule = c("RNA", "DNA"),
157 157
                        novelsplicing = FALSE, splicing = NULL, 
158 158
                        nthreads = 1L, part = NULL, batch = "2",
159 159
                        terminal_threshold = if (molecule == "DNA") 1000L else 2L,
160
-                       gmap_mode = if (molecule == "DNA") "none", ...) {
160
+                       gmap_mode = if (molecule == "DNA") "none" else
161
+                       "pairsearch,terminal,improve", ...)
162
+{
161 163
   if (missing(genome))
162 164
     stop("The 'genome' must be specified (should be coercible to GmapGenome)")
163 165
   molecule <- match.arg(molecule)