Skip to content

covHisto_WG needs to be long[] to not overflow#7

Open
bpow wants to merge 1 commit intocbuhay:masterfrom
bpow:patch-2
Open

covHisto_WG needs to be long[] to not overflow#7
bpow wants to merge 1 commit intocbuhay:masterfrom
bpow:patch-2

Conversation

@bpow
Copy link

@bpow bpow commented Apr 14, 2015

When computing a histogram across the whole genome, you'll need to use an array of longs to avoid integer overflow (so you don't get a histogram that says that -1414732325 bases were at zero coverage, for instance).

I notice that the basesWithOneHitorMore_WG variable and others like it were changed to longs instead of ints, so that's good. On the other hand, it might make more sense to just compute those from the histogram instead of keeping individual tallies as you go along.

When computing a histogram across the whole genome, you'll need to use an array of longs to avoid integer overflow (so you don't get a histogram that says that -1414732325 bases were at zero coverage, for instance).

I notice that the basesWithOneHitorMore_WG variable and others like it were changed to longs instead of ints, so that's good. On the other hand, it might make more sense to just compute those from the histogram instead of keeping individual tallies as you go along.
@Rashesh7
Copy link
Collaborator

Hi,

Yes we did notice that and have addressed that. We are going to push it with other changes.

Thank you for the feedback.

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

Successfully merging this pull request may close these issues.

2 participants