-
Notifications
You must be signed in to change notification settings - Fork 12
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
Improve sorter. #81
Improve sorter. #81
Conversation
Codecov Report
@@ Coverage Diff @@
## master #81 +/- ##
=========================================
+ Coverage 82.42% 83.02% +0.6%
=========================================
Files 62 62
Lines 4113 4160 +47
Branches 439 430 -9
=========================================
+ Hits 3390 3454 +64
+ Misses 284 276 -8
+ Partials 439 430 -9
Continue to review full report at Codecov.
|
|
Oh, I'd totally forgotten about that! 😲 |
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.
I confirmed performance improvement in sorting. Great work.
Please add description of a new option to usage string for approval.
@@ -131,6 +131,9 @@ | |||
(def ^:private sort-cli-options | |||
[["-o" "--order ORDER" "Sorting order of alignments <coordinate|queryname>" | |||
:default "coordinate"] | |||
["-c" "--chunk CHUNK" "Maximum number of alignments sorted per thread." |
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.
Please add [-c CHUNK]
to usage line (L142).
"Usage: cljam sort [-o ORDER] [-c CHUNK] <in.bam|sam> <out.bam|sam>"
@totakke Thank you for the reviewing. I updated usage string in cli. |
Summary
This PR improves functions and performance of
cljam.sorter
.Also resolves task 7 in #61.
Changes
sort-by-pos
(about 2x faster).sort-by-qname
.Affected modules
cljam.sorter
cljam.bam
cljam.sam
Notes
sort-by-pos
does not checkqname
, the same as samtools.