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 LiftOver constructor that takes an input stream #1412

Merged

Conversation

kevinpetersavage
Copy link
Contributor

Desrciption

Add LiftOver constructor that takes an input stream. This is so that it can be used in situations where the config is not on a file system. In my case it is on AWS S3.

Checklist

  • Code compiles correctly
  • New tests covering changes and new functionality
  • All tests passing
  • Extended the README / documentation, if necessary
  • Is not backward compatible (breaks binary or source compatibility)

@codecov-io
Copy link

codecov-io commented Aug 22, 2019

Codecov Report

Merging #1412 into master will increase coverage by 0.004%.
The diff coverage is 58.824%.

@@               Coverage Diff               @@
##              master     #1412       +/-   ##
===============================================
+ Coverage     68.115%   68.118%   +0.004%     
- Complexity      8375      8378        +3     
===============================================
  Files            573       573               
  Lines          33978     33982        +4     
  Branches        5668      5668               
===============================================
+ Hits           23144     23148        +4     
  Misses          8644      8644               
  Partials        2190      2190
Impacted Files Coverage Δ Complexity Δ
...c/main/java/htsjdk/samtools/liftover/LiftOver.java 82.857% <100%> (+0.375%) 31 <2> (+2) ⬆️
src/main/java/htsjdk/samtools/liftover/Chain.java 66.667% <36.364%> (+0.177%) 23 <1> (+1) ⬆️

Copy link
Member

@lbergelson lbergelson left a comment

Choose a reason for hiding this comment

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

@kevinpetersavage Thank you for this PR. Really nice first PR! Thank you for adding tests. I made a number of comments about ways that I think this could be slightly improved. Let me know if you have any questions.

src/main/java/htsjdk/samtools/liftover/Chain.java Outdated Show resolved Hide resolved
src/main/java/htsjdk/samtools/liftover/Chain.java Outdated Show resolved Hide resolved
src/main/java/htsjdk/samtools/liftover/Chain.java Outdated Show resolved Hide resolved
src/main/java/htsjdk/samtools/liftover/LiftOver.java Outdated Show resolved Hide resolved
src/main/java/htsjdk/samtools/liftover/Chain.java Outdated Show resolved Hide resolved
src/main/java/htsjdk/samtools/liftover/LiftOver.java Outdated Show resolved Hide resolved
src/main/java/htsjdk/samtools/liftover/LiftOver.java Outdated Show resolved Hide resolved
src/main/java/htsjdk/samtools/liftover/Chain.java Outdated Show resolved Hide resolved
@kevinpetersavage
Copy link
Contributor Author

@lbergelson thanks for the really good feedback, definitely improved the code!

Copy link
Member

@lbergelson lbergelson left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you for your contribution!

@lbergelson lbergelson merged commit 46b1a00 into samtools:master Aug 26, 2019
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