Browse code

Fix the issue of parsed data from rtracklayer for UcscTrack, addressing #71

Robert Ivánek authored on 17/02/2023 15:44:37
Showing 1 changed files

... ...
@@ -315,7 +315,7 @@ UcscTrack <- function(track, table = NULL,
315 315
     }
316 316
     args <- lapply(list(...), function(x) {
317 317
         if (is.character(x) && length(x) == 1) {
318
-            if (!x %in% colnames(tableDat)) x else tableDat[, x]
318
+            if (!x %in% colnames(tableDat)) x else unlist(tableDat[, x])
319 319
         } else {
320 320
             x
321 321
         }