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

IntRowDiff to annotate k-mer counts #315

Merged
merged 28 commits into from
May 6, 2021
Merged

IntRowDiff to annotate k-mer counts #315

merged 28 commits into from
May 6, 2021

Conversation

karasikov
Copy link
Member

also added integration tests (including int_brwt)

@karasikov karasikov requested a review from hmusta April 22, 2021 09:30
@karasikov karasikov requested a review from hmusta May 3, 2021 13:43
}

inline int64_t decode_diff(uint64_t c) {
return !(c & 1) ? c / 2 + 1 : -((c + 1) / 2);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return !(c & 1) ? c / 2 + 1 : -((c + 1) / 2);
return (c / 2 + 1) * (-(c & 1));

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should avoid the branch

@karasikov karasikov merged commit 961c9a9 into dev May 6, 2021
@karasikov karasikov deleted the mk/ann branch May 6, 2021 15:26
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