rouskinlab / seismic-rna

https://rouskinlab.github.io/seismic-rna/
GNU General Public License v3.0
6 stars 1 forks source link

Optimized masking by replacing np.intersect1d() with np.setdiff1d(). #5

Closed justinaruda closed 11 months ago

justinaruda commented 11 months ago

np.setdiff1d() is anywhere between 2x and 30x more performant than np.intersect1d() with the expected set sizes used during masking.

heatmap