Nanostring-Biostats / InSituType

An R package for performing cell typing in SMI and other single cell data
Other
28 stars 11 forks source link

faster way to calculate cell-level cosine similarity with celltype profiles #181

Closed dan11mcguire closed 1 year ago

dan11mcguire commented 1 year ago

faster way to calculate cell-level cosine similarity with celltype profiles.
Removes dependency on "lsa:cosine()" function.

Screenshot below, benchmark comparing the two functions with 10,000 cells. Current one took 14 sec., vs 0.5 seconds for proposed calculation

image