Skip to content
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

Merged
merged 2 commits into from
Jun 5, 2020
Merged

Add support cloning VCF/BCF. #200

merged 2 commits into from
Jun 5, 2020

Conversation

niyarin
Copy link
Contributor

@niyarin niyarin commented Jun 3, 2020

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".

@niyarin niyarin requested review from alumi and a team as code owners June 3, 2020 09:25
@niyarin niyarin requested review from athos and removed request for a team June 3, 2020 09:25
@codecov
Copy link

codecov bot commented Jun 3, 2020

Codecov Report

Merging #200 into master will increase coverage by 0.01%.
The diff coverage is 88.46%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/cljam/io/vcf.clj 94.36% <88.46%> (-1.64%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2327480...4b09b8f. Read the comment docs.

Copy link
Member

@alumi alumi left a 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

(BCFReader. (.url rdr) (.meta-info rdr) (.header rdr)
input-stream (.start-pos rdr) (.index-delay rdr))))

(defn clone-reader
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(defn clone-reader
(defn ^Closeable clone-reader

Copy link
Member

@alumi alumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍

Copy link
Member

@athos athos left a 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!

@athos athos merged commit 84a535d into master Jun 5, 2020
@athos athos deleted the feature/clone-vcf branch June 5, 2020 05:39
@niyarin
Copy link
Contributor Author

niyarin commented Jun 5, 2020

Thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants