Nanostring-Biostats / InSituCor

InSituCor An R package for discovering modules of spatially correlated genes in spatial transcriptomics data.
Other
2 stars 0 forks source link

sparse to dense matrix conversions #6

Closed dan11mcguire closed 1 year ago

dan11mcguire commented 1 year ago

These warnings cause slow downs and can turn into errors if the data is counts matrix is large enough.

image

Could find a way to rewrite these calculations using sparse matrix algebra, or maybe converting the non-zero values in the spaarse matrix to a data.table and doing the calculation on that.

patrickjdanaher commented 1 year ago

Brilliant. Done.