Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
adeschen committed Dec 31, 2015
2 parents bccdc65 + fbb2c85 commit f107b9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: consensusSeekeR
Version: 0.99.5
Version: 0.99.6
Date: 2015-05-01
Title: Detection of consensus regions inside a group of experiences using
genomic positions and genomic ranges
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ importFrom(BiocParallel,SnowParam)
importFrom(BiocParallel,bplapply)
importFrom(BiocParallel,bpmapply)
importFrom(BiocParallel,multicoreWorkers)
importFrom(GenomicRanges,split)
importFrom(rtracklayer,import)
importFrom(stringr,str_split)
8 changes: 4 additions & 4 deletions R/findConsensusPeakRegions.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
#' ## Print 2 first consensus regions
#' head(results$consensusRanges, 2)
#'
#' @importFrom GenomicRanges split
#' @export
findConsensusPeakRegions <- function(narrowPeaks, peaks, chrInfo,
extendingSize = 250,
Expand Down Expand Up @@ -157,7 +158,7 @@ findConsensusPeakRegions <- function(narrowPeaks, peaks, chrInfo,
areNarrowPeaksUsed <- expandToFitPeakRegion | shrinkToFitPeakRegion

# Preparing peak data
peaksSplit <- GenomicRanges::split(peaks, seqnames(peaks))
peaksSplit <- split(peaks, seqnames(peaks))
rm(peaks)

selectedPeaksSplit <- peaksSplit[names(peaksSplit) %in%
Expand All @@ -166,8 +167,7 @@ findConsensusPeakRegions <- function(narrowPeaks, peaks, chrInfo,

# Preparing narrow peaks data
if (areNarrowPeaksUsed) {
narrowPeaksSplit <- GenomicRanges::split(narrowPeaks,
seqnames(narrowPeaks))
narrowPeaksSplit <- split(narrowPeaks, seqnames(narrowPeaks))
rm(narrowPeaks)

selectedNarrowPeaksSplit <- narrowPeaksSplit[names(narrowPeaksSplit)
Expand All @@ -191,7 +191,7 @@ findConsensusPeakRegions <- function(narrowPeaks, peaks, chrInfo,

# Creating result list
z <- list(call = cl,
consensusRanges = IRanges::unlist(GRangesList((results)),
consensusRanges = unlist(GRangesList((results)),
recursive = TRUE,
use.names = FALSE))

Expand Down

0 comments on commit f107b9c

Please sign in to comment.