Skip to content

Commit a8eda9b

Browse files
committed
fix merging with external cts for single sample
1 parent 3cec0ce commit a8eda9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/mergeExternalData.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ mergeExternalData <- function(fds, countFiles, sampleIDs, annotation=NULL){
100100
# merge psi5/psi3 data
101101
#
102102
extractExtData <- function(fds, countFun, type, ov, extData, extName){
103-
ctsOri <- as.matrix(countFun(fds, type=type)[from(ov),])
104-
ctsExt <- as.matrix(mcols(extData[[extName]])[to(ov),])
103+
ctsOri <- as.matrix(countFun(fds, type=type)[from(ov),,drop=FALSE])
104+
ctsExt <- as.matrix(mcols(extData[[extName]])[to(ov),,drop=FALSE])
105105
ans <- cbind(ctsOri, ctsExt)
106106
mode(ans) <- "integer"
107107
ans

0 commit comments

Comments
 (0)