Skip to content

Commit dcd6454

Browse files
committed
Implement fix as proposed in #263
1 parent 66b5b7a commit dcd6454

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/saddle.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ saddle <- function(explist, CS_discovery, bins = 10L,
108108
scores[, part := inverse.rle(attr(CS_discovery, "partitioning"))]
109109
# Remove centromeres and NAs
110110
scores <- scores[!endsWith(part, "centro")]
111-
scores <- scores[!is.na(eval(as.symbol(expnames[1]))), ]
111+
for (i in expnames) {
112+
scores <- scores[!is.na(eval(as.symbol(i))), ]
113+
}
112114
# Remove chromosomes with less than #bins scores
113115
use_chrom <- scores[, length(start), by = part]
114116
use_chrom <- use_chrom[["part"]][use_chrom[["V1"]] > bins]

0 commit comments

Comments
 (0)