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

Simplify CRAM sequence dictionary extractor to not require a fake reference. #1308

Merged
merged 1 commit into from
Feb 27, 2019

Conversation

cmnbroad
Copy link
Collaborator

Slightly more idiomatic CRAM sequence dictionary extractor. Rather than introduce a new method and fake reference in CRAMIterator, this retrieves the CRAM header and sequence dictionary using existing code that doesn't require a reference.

@codecov-io
Copy link

codecov-io commented Feb 26, 2019

Codecov Report

Merging #1308 into master will decrease coverage by 0.005%.
The diff coverage is 50%.

@@               Coverage Diff               @@
##              master     #1308       +/-   ##
===============================================
- Coverage     67.653%   67.648%   -0.005%     
+ Complexity      8195      8193        -2     
===============================================
  Files            560       560               
  Lines          33493     33494        +1     
  Branches        5638      5640        +2     
===============================================
- Hits           22659     22658        -1     
  Misses          8652      8652               
- Partials        2182      2184        +2
Impacted Files Coverage Δ Complexity Δ
src/main/java/htsjdk/samtools/CRAMIterator.java 81.343% <ø> (+1.062%) 32 <0> (-2) ⬇️
.../variant/utils/SAMSequenceDictionaryExtractor.java 68% <50%> (-5.171%) 1 <0> (ø)

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 like a cleaner solution 👍

@lbergelson lbergelson merged commit 0b16296 into samtools:master Feb 27, 2019
@cmnbroad cmnbroad deleted the cn_fix_cram_extractor branch March 27, 2019 22:45
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.

4 participants