Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions R/normalize.R
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down