Skip to content

Commit

Permalink
Revert the contruction of empty objects with query ranges.
Browse files Browse the repository at this point in the history
It cases breakage with plyranges::filter, which I can not debug at the moment.
  • Loading branch information
charles-plessy committed Jul 7, 2023
1 parent c365f0a commit 3411122
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/GenomicBreaks.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ setMethod("initialize", "GBreaks", function(.Object, ..., target = NULL, query =
gb <- GBreaks(gb)
return(gb)
}
gb <- callNextMethod(.Object, ...)
if (length(gb) == 0) gb$query <- GRanges()
gb
callNextMethod(.Object, ...)
# gb <- callNextMethod(.Object, ...)
# if (length(gb) == 0) gb$query <- GRanges()
# gb
})

#' Conversion from [`CNEr::Axt`] objects
Expand Down

0 comments on commit 3411122

Please sign in to comment.