-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix the peformance of liftover-variants. #47
Conversation
Codecov Report
@@ Coverage Diff @@
## master #47 +/- ##
==========================================
+ Coverage 43.30% 43.40% +0.09%
==========================================
Files 15 15
Lines 1801 1804 +3
Branches 39 39
==========================================
+ Hits 780 783 +3
Misses 982 982
Partials 39 39
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix! The patch looks good 👍
Would you share us some comparisons of quick benchmarks?
For example, it would be nice with something like a line chart containing two series, master and the branch, where the horizontal axis is the number of variants and the vertical axis is the time required.
src/varity/vcf_lift.clj
Outdated
[status | ||
(sort-by (juxt (comp chr/chromosome-order-key :chr) | ||
:pos :ref (comp vec :alt)) | ||
(concat (map second v)))])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(concat (map second v)))])) | |
(map second v))])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the performance improvement! I just made one comment.
7cb3f6c
to
809be91
Compare
Thank you for comments, I fixed them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just approved as the change itself looks fine 👍
I’m curious about the benchmark results, too 👀
I took a benchmark that doesn't depend on the size of the chain.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for updating and sharing benchmark results! Looks good 👍 👍
Thank you for Draft reviewing. |
@totakke I fixed the implementation of lift-over variants. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you, the committer and the reviewers. This improvement has been deployed as 0.8.1-SNAPSHOT. |
Thank you for reviwing. |
This PR improves the performance of lifting over variants.
In the current
liftover-variants
implementation, sort is called as many times as the number of the mutations, so I changed it so that it is only once.