DeshpandeLab / SpaceMarkers

An R/Bioconductor software tool to identify genes associated with latent space interactions in spatial transcriptomics.
Other
4 stars 4 forks source link

Refactor examples #17

Open dimalvovs opened 1 month ago

dimalvovs commented 1 month ago

Some of the examples need refactoring, for example: getPairwiseInteractingGenes and getInteractingGenes examples share around 50 lines of copypasta that downloads some data from the web and makes them available for examples. Maybe a cache should be introduced to reduce the need for downloads.

dimalvovs commented 1 month ago
   Examples with CPU (user + system) or elapsed time > 5s
                                user system elapsed
   getInteractingGenes         7.873  1.207  11.168
   getPairwiseInteractingGenes 7.181  1.296  13.650
   getSpatialParameters        5.194  0.286   1.517
   load10XExpr                 2.820  1.170   6.198