-
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
Remove N padding for out-of-range bases in read-sequence. #121
Conversation
Codecov Report
@@ Coverage Diff @@
## master #121 +/- ##
==========================================
- Coverage 84.93% 84.91% -0.03%
==========================================
Files 62 62
Lines 4202 4196 -6
Branches 412 412
==========================================
- Hits 3569 3563 -6
Misses 221 221
Partials 412 412
Continue to review full report at Codecov.
|
e54ed1c
to
39efba3
Compare
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. I added slight comments. The behavior is alright.
src/cljam/io/fasta/reader.clj
Outdated
(when-let [len (:len (fasta-index/get-header fai name))] | ||
(let [start' (max 1 (or start 1)) | ||
end' (min len (or end len))] | ||
(when (<= 1 start' end' len) |
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.
(<= 1 start')
is obvious from (max 1 (or start 1)
, and (<= end' len)
is obvious from (min len (or end len))
. So this predicate can be simplified as (<= start' end')
.
src/cljam/io/twobit/reader.clj
Outdated
(.toString cb))))) | ||
start' (max 1 (or start 1)) | ||
end' (min len (or end len))] | ||
(when (<= 1 start' end' len) |
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.
Same as the comments in fasta.reader
.
Thank you for the comment! |
Thanks! |
Summary
Fix for #120 comment
Tests
lein test :all
🆗