TopDom icon indicating copy to clipboard operation
TopDom copied to clipboard

error when processing dense matrix

Open musiccccc opened this issue 5 years ago • 2 comments

Dear Prof. HenrikBengtsson,

When I was processing a dense matrix, which have about 50000 rows, with topdom, it failed. Here is the error message: Error in seq.default(from = 1 + (n_bins * i), to = n_bins * n_bins, by = 1 + : 'to' must be a finite number Calls: TopDom -> seq -> seq.default In addition: Warning message: In n_bins * n_bins : NAs produced by integer overflow Execution halted

It seems that the type of n_bins is integer, and max number of interger in R is 2*10^9. So, what should I do in this situation? Looking forward to your helpful reply.

Best, Qiang

musiccccc avatar Sep 29 '19 02:09 musiccccc

Please see Issue #11

EDIT 2019-10-08: Linking to Issue #11 (was comment in #9)

HenrikBengtsson avatar Sep 29 '19 02:09 HenrikBengtsson

Hey @musiccccc, I posted an edited version of TopDom to overcome the issue you mentioned, that I also faced in my high-resolution Hi-C matrices. You can find it here: https://github.com/JSegueni/TopDom. Hopefully, this can help you ! Best, Julie.

JSegueni avatar Nov 18 '21 14:11 JSegueni