shenorrLabTRDF / cellAlign

Other
37 stars 8 forks source link

Moved as.matrix outside of lapply. #4

Open dkeitley opened 3 years ago

dkeitley commented 3 years ago

I found that the interWeights function was taking a very long time to run on my dataset. Looking at the code, I think it's because it's converting the sparse counts matrix into a dense matrix within each iteration of the lapply function. I've moved it outside so this is only carried out once. It's working much faster now.