From c930b5fd933a2d2c130ca8c010bf8719b6f4e82e Mon Sep 17 00:00:00 2001 From: Sameet Date: Thu, 22 Jun 2017 18:05:50 -0400 Subject: [PATCH] Update normalize.R --- R/normalize.R | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/R/normalize.R b/R/normalize.R index 3587e87..de66546 100755 --- a/R/normalize.R +++ b/R/normalize.R @@ -755,15 +755,15 @@ getSignalsFromList = function(lt, fun = function(x) mean(x, na.rm = TRUE)) { } n = length(lt) - if(n > 1) { - for(i in seq_len(n-1)) { - attr1 = attr(lt[[i]], c("upstream_index", "target_index", "downstream_index", "extend")) - attr2 = attr(lt[[i+1]], c("upstream_index", "target_index", "downstream_index", "extend")) - if(!identical(attr1, attr2)) { - stop("Objects in `lt` should have same settings.") - } - } - } + # if(n > 1) { + # for(i in seq_len(n-1)) { + # attr1 = attr(lt[[i]], c("upstream_index", "target_index", "downstream_index", "extend")) + # attr2 = attr(lt[[i+1]], c("upstream_index", "target_index", "downstream_index", "extend")) + # if(!identical(attr1, attr2)) { + # stop("Objects in `lt` should have same settings.") + # } + # } + #} for(i in seq_len(n)) { tm = lt[[i]]