-
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 support cloning VCF/BCF. #200
Conversation
Codecov Report
@@ Coverage Diff @@
## master #200 +/- ##
==========================================
+ Coverage 86.90% 86.91% +0.01%
==========================================
Files 77 77
Lines 6246 6267 +21
Branches 519 520 +1
==========================================
+ Hits 5428 5447 +19
- Misses 299 300 +1
- Partials 519 520 +1
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! 👍 Looks good except a reflection warning
src/cljam/io/vcf.clj
Outdated
(BCFReader. (.url rdr) (.meta-info rdr) (.header rdr) | ||
input-stream (.start-pos rdr) (.index-delay rdr)))) | ||
|
||
(defn clone-reader |
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.
(defn clone-reader | |
(defn ^Closeable clone-reader |
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.
👍 👍
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 👍 Thanks for your contribution!
Thanks for the review! |
This PR adds a function to create a new object by copying except stream when VCF/BCF object is put in the reader.
This function is almost the same as "cljam.io.bam.core/clone-reader".