Skip to content

Commit

Permalink
Merge pull request #2006 from joshchiou/dev
Browse files Browse the repository at this point in the history
Update GroupExport.R
  • Loading branch information
rcorces authored Aug 25, 2023
2 parents 05bdf29 + bc3c527 commit 65968a4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions R/GroupExport.R
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ getGroupBW <- function(
availableChr <- .availableSeqnames(head(getArrowFiles(ArchRProj)))
chromLengths <- getChromLengths(ArchRProj)
chromSizes <- getChromSizes(ArchRProj)
tiles <- unlist(slidingWindows(chromSizes, width = tileSize, step = tileSize))
#tiles <- unlist(slidingWindows(chromSizes, width = tileSize, step = tileSize))

#H5 File Lock Check
h5lock <- setArchRLocking()
Expand All @@ -363,6 +363,7 @@ getGroupBW <- function(
cellsInArrow = cellsInArrow,
availableChr = availableChr,
chromLengths = chromLengths,
chromSizes = chromSizes,
normMethod = normMethod,
normBy = normBy,
ceiling = ceiling,
Expand Down Expand Up @@ -391,7 +392,8 @@ getGroupBW <- function(
ArrowFiles = NULL,
cellsInArrow = NULL,
availableChr = NULL,
chromLengths = NULL,
chromLengths = NULL,
chromSizes = NULL,
tiles = NULL,
ceiling = NULL,
tileSize = 100,
Expand Down Expand Up @@ -430,7 +432,9 @@ getGroupBW <- function(
}
}

tilesk <- tiles[BiocGenerics::which(seqnames(tiles) %bcin% availableChr[k])]
chromSizesk <- chromSizes[BiocGenerics::which(seqnames(chromSizes) %bcin% availableChr[k])]
tilesk <- unlist(slidingWindows(chromSizesk, width = tileSize, step = tileSize))
#tilesk <- tiles[BiocGenerics::which(seqnames(tiles) %bcin% availableChr[k])]

if(length(fragik) == 0){

Expand Down

0 comments on commit 65968a4

Please sign in to comment.