Skip to content

Commit

Permalink
bcPass XRawList error in which
Browse files Browse the repository at this point in the history
Attempting to address #1860
  • Loading branch information
rcorces authored Mar 1, 2023
1 parent 743af6f commit 7de518b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/CreateArrow.R
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,7 @@ createArrowFiles <- function(
mcols(fragments)$RG@values <- stringr::str_split(mcols(fragments)$RG@values, pattern = "#", simplify=TRUE)[,2]

#Order RG RLE based on bcPass
fragments <- fragments[BiocGenerics::which(paste0(mcols(fragments)$RG) %bcin% bcPass)]
fragments <- fragments[BiocGenerics::which(paste0(mcols(fragments)$RG) %bcin% as.character(bcPass))]
if(length(fragments) > 0){
fragments <- fragments[order(S4Vectors::match(paste0(mcols(fragments)$RG), as.character(bcPass)))]
}
Expand Down Expand Up @@ -2060,7 +2060,7 @@ createArrowFiles <- function(
}

#Order RG RLE based on bcPass
fragments <- fragments[BiocGenerics::which(paste0(mcols(fragments)$RG) %bcin% bcPass)]
fragments <- fragments[BiocGenerics::which(paste0(mcols(fragments)$RG) %bcin% as.character(bcPass))]
if(length(fragments) > 0){
fragments <- fragments[order(S4Vectors::match(paste0(mcols(fragments)$RG), as.character(bcPass)))]
}
Expand Down

0 comments on commit 7de518b

Please sign in to comment.