Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when processing dense matrix #10

Open
musiccccc opened this issue Sep 29, 2019 · 2 comments
Open

error when processing dense matrix #10

musiccccc opened this issue Sep 29, 2019 · 2 comments

Comments

@musiccccc
Copy link

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

@HenrikBengtsson
Copy link
Owner

HenrikBengtsson commented Sep 29, 2019

Please see Issue #11

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

@JSegueni
Copy link

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.

Delta-43 added a commit to Delta-43/TopDom that referenced this issue May 11, 2023
With referrence to HenrikBengtsson#10
setting 'n_bins' as a numeric value rather than an integer fixes issue with denser matrices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants