Skip to content

Commit

Permalink
hardcode drop parameter for subset to FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Behrens committed Feb 1, 2024
1 parent 2f95016 commit fecfbbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/AllGenerics.R
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ setReplaceMethod("nonSplicedReads", "FraserDataSet", function(object, value){
#' @param x A \code{FraserDataSet} object
#' @param i A integer vector to subset the rows/ranges
#' @param j A integer vector to subset the columns/samples
#' @param by a character (j or ss) definig if we subset by
#' @param by a character (j or ss) defining if we subset by
#' junctions or splice sites
#' @return A subsetted \code{FraserDataSet} object
#' @examples
Expand Down Expand Up @@ -288,14 +288,14 @@ subset.FRASER <- function(x, i, j, by=c("j", "ss"), drop = FALSE){
idxNSR <- rowData(x, type="ss")[['spliceSiteID']] %in% ssIdx

# subset it
nsrObj <- nsrObj[idxNSR,j,drop=drop]
nsrObj <- nsrObj[idxNSR,j,drop=FALSE]
}

# subset the inheritate SE object
if(length(x) == 0){
i <- NULL
}
subX <- as(as(x, "RangedSummarizedExperiment")[i,j,drop=drop], "FraserDataSet")
subX <- as(as(x, "RangedSummarizedExperiment")[i,j,drop=FALSE], "FraserDataSet")

# create new FraserDataSet object
newx <- new("FraserDataSet",
Expand Down

0 comments on commit fecfbbe

Please sign in to comment.