Browse code

Fixing bugs in relesease, in boxplot-like plot and #42, bumping version

Robert Ivánek authored on 14/03/2021 22:05:41
Showing 3 changed files

... ...
@@ -1,6 +1,6 @@
1 1
 Package: Gviz
2 2
 Title: Plotting data and annotation information along genomic coordinates
3
-Version: 1.34.0
3
+Version: 1.34.1
4 4
 Authors@R: c(person("Florian", "Hahne", role="aut"),
5 5
 	 person("Steffen", "Durinck", role="aut"),
6 6
 	 person("Robert", "Ivanek", role=c("aut", "cre"), email="robert.ivanek@unibas.ch", comment=c(ORCID="0000-0002-8403-056X")),
... ...
@@ -1100,7 +1100,10 @@ setMethod("collapseTrack", signature(GdObject = "DataTrack"), function(GdObject,
1100 1100
                     newDat,
1101 1101
                     do.call(rbind, lapply(2:nrow(sc), function(x) {
1102 1102
                         rm[ind] <- rep(sc[x, ], width(GdObject))
1103
-                        suppressWarnings(runValue(runmean(Rle(as.numeric(rm)), k = windowSize, endrule = "constant", na.rm = TRUE)))[seqSel]
1103
+                        runwin <- suppressWarnings(runmean(Rle(as.numeric(rm)), k = windowSize, endrule = "constant", na.rm = TRUE))
1104
+                        seqSel <- findRun(as.integer(position(GdObject)) - min(GdObject) + 1, runwin)
1105
+                        runValue(runwin)[seqSel]
1106
+                        # suppressWarnings(runValue(runmean(Rle(as.numeric(rm)), k = windowSize, endrule = "constant", na.rm = TRUE)))[seqSel]
1104 1107
                     }))
1105 1108
                 )
1106 1109
             }
... ...
@@ -983,7 +983,7 @@
983 983
     blist.conf <- if (notch) {
984 984
         t(vapply(blist, "[[", "conf", FUN.VALUE = numeric(2L)))
985 985
     } else {
986
-        t(blist.stats[, c(2, 4), drop = FALSE])
986
+        blist.stats[, c(2, 4), drop = FALSE]
987 987
     }
988 988
     ybnd <- cbind(
989 989
         blist.stats[, 3], blist.conf[, 2], blist.stats[, 4], blist.stats[, 4], blist.conf[, 2],