-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Addition of threading in GroupReadsByUmi and some other performance optimizations. #950
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #950 +/- ##
=======================================
Coverage 95.61% 95.62%
=======================================
Files 126 126
Lines 7321 7354 +33
Branches 504 502 -2
=======================================
+ Hits 7000 7032 +32
- Misses 321 322 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Lots of really nice thoughtful and concise improvements here. I suggested a few ideas, that likely you can skip in this round of improvements but could be interesting to think about.
.getOrElse(-1) | ||
|
||
if (searchFromIdx >= 0) { | ||
val hits = taskSupport match { |
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.
Since taskSupport
is defined outside this loop, would you consider making a partial function to use here (or use currying), so you don't have to match each time?
@@ -513,13 +577,14 @@ class GroupReadsByUmi | |||
@arg(flag='x', doc= """ | |||
|DEPRECATED: this option will be removed in future versions and inter-contig reads will be | |||
|automatically processed.""") | |||
@deprecated val allowInterContig: Boolean = true | |||
@deprecated val allowInterContig: Boolean = true, | |||
@arg(flag='@', doc="Number of threads to use when comparing UMIs. Only recommended for amplicon or similar data.") val threads: Int = 1, |
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.
@arg(flag='@', doc="Number of threads to use when comparing UMIs. Only recommended for amplicon or similar data.") val threads: Int = 1, | |
@arg(flag='@', doc="Number of threads to use when comparing UMIs. Only recommended for amplicon or similar data.") val threads: Int = 1, |
No description provided.