-
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
Add FASTAWriter and TwoBitWriter. #79
Conversation
Codecov Report
@@ Coverage Diff @@
## master #79 +/- ##
==========================================
+ Coverage 82.07% 82.42% +0.34%
==========================================
Files 59 62 +3
Lines 3922 4113 +191
Branches 423 439 +16
==========================================
+ Hits 3219 3390 +171
- Misses 280 284 +4
- Partials 423 439 +16
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.
Thanks. Reflection warning is found. Please fix it and other trivial points.
src/cljam/twobit/writer.clj
Outdated
@@ -0,0 +1,162 @@ | |||
(ns cljam.twobit.writer | |||
(:require [clojure.java.io :as cio] | |||
[clojure.string :as cstr] |
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.
cstr
is not used in this ns.
src/cljam/twobit/reader.clj
Outdated
([rdr] | ||
(read-all-sequences rdr {})) | ||
([rdr option] | ||
(for [{:keys [name offset]} (.file-index rdr)] |
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.
Reflection warning is found.
src/cljam/twobit/reader.clj
Outdated
[clojure.java.io :as cio] | ||
[cljam.io :as io] | ||
[cljam.lsb :as lsb] | ||
[cljam.util :as util]) |
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.
cstr
and util
are not used in this ns.
b2a5cae
to
809a57e
Compare
Thank you for your review! |
Good, thanks. |
Summary
This PR adds (naive implementation of) writers for FASTA and 2bit format.
Changes
ISequenceWriter
tocljam.io
.cljam.fasta.writer.FASTAWriter
andcljam.twobit.writer.TwoBitWriter
.cljam.twobit
tocljam.twobit.reader
.read-all-sequences
toISequenceReader
.ISequenceReader
.Affected components
cljam.fasta
cljam.twobit
Notes
Performance is not yet optimized.