Skip to content

Commit 1c2affd

Browse files
authored
implement changes to store signalValue
as implemented in #1493 but putting these commits on `release_1.0.2` instead of master
1 parent 6a0ec0c commit 1c2affd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/ReproduciblePeakSet.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,8 @@ addReproduciblePeakSet <- function(
789789
run <- system2(pathToMacs2, cmd, wait=TRUE, stdout=NULL, stderr=NULL)
790790

791791
#Read Summits!
792-
out <- data.table::fread(summitsFile, select = c(1,2,3,5))
793-
out <- GRanges(out$V1, IRanges(out$V2 + 1, out$V3), score = out$V5)
792+
out <- data.table::fread(narrowPeaksFile, select = c(1,2,5,7,10))
793+
out <- GRanges(out$V1, IRanges(out$V2 + out$V10 + 1, out$V2 + out$V10 + 1), score = out$V5/10, signalValue = out$V7)
794794

795795
#Remove Files
796796
r2 <- suppressWarnings(file.remove(summitsFile, narrowPeaksFile, xlsFile))

0 commit comments

Comments
 (0)