You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run "x.sp = createGmatFromMat(obj = x.sp, input.mat="bmat", genes=genes.sel.gr, do.par = T, num.cores = 2)", but get this error "Error in count.df[, 2] : subscript out of bounds".
How to fix it?
Thanks
The text was updated successfully, but these errors were encountered:
I've had this issue recently as well. I modified the line 96: count.i = data.use[,idx.bins.i,dropping=TRUE] to count.i = data.use[,idx.bins.i]; and the line 104: count.i = Matrix::rowSums(data.use[,idx.bins.i,dropping=TRUE]); to count.i = Matrix::rowSums(data.use[,idx.bins.i); in SnapATAC-master/R/createGmat.R.
After that, add before running createGmatFromMat
source('/SnapATAC-master/R/createGmat.R')
library(parallel)
This makes createGmatFromMat work successfully, but I'm not sure if this change will affect the result
createGmatFromMat this function has error. when subsetting a matrix, should be using drop not dropping which is not correct syntax. data.use[, idx.bins.i, drop=TRUE]
Hello developer
I run "x.sp = createGmatFromMat(obj = x.sp, input.mat="bmat", genes=genes.sel.gr, do.par = T, num.cores = 2)", but get this error "Error in count.df[, 2] : subscript out of bounds".
How to fix it?
Thanks
The text was updated successfully, but these errors were encountered: