samtools / htsjdk

A Java API for high-throughput sequencing data (HTS) formats.
http://samtools.github.io/htsjdk/
283 stars 242 forks source link

CRAM: Refactor and Test Slice #1242

Closed jmthibault79 closed 5 years ago

jmthibault79 commented 5 years ago

Description

Encapsulate Slice and make immutable

Checklist

codecov-io commented 5 years ago

Codecov Report

Merging #1242 into master will increase coverage by 0.159%. The diff coverage is 82.441%.

@@               Coverage Diff               @@
##              master     #1242       +/-   ##
===============================================
+ Coverage     69.376%   69.535%   +0.159%     
- Complexity      8140      8325      +185     
===============================================
  Files            547       549        +2     
  Lines          32622     33199      +577     
  Branches        5515      5654      +139     
===============================================
+ Hits           22632     23085      +453     
- Misses          7772      7865       +93     
- Partials        2218      2249       +31
Impacted Files Coverage Δ Complexity Δ
.../samtools/cram/build/CompressionHeaderFactory.java 90.842% <ø> (ø) 66 <0> (ø) :arrow_down:
...java/htsjdk/samtools/cram/structure/Container.java 81.25% <100%> (ø) 7 <0> (ø) :arrow_down:
...oding/reader/MultiRefSliceAlignmentSpanReader.java 100% <100%> (ø) 6 <2> (ø) :arrow_down:
src/main/java/htsjdk/samtools/CRAMIterator.java 78.676% <100%> (-1.044%) 32 <0> (-1)
...amtools/cram/encoding/writer/CramRecordWriter.java 89.063% <100%> (ø) 26 <0> (ø) :arrow_down:
.../samtools/cram/structure/slice/SliceAlignment.java 86.207% <100%> (ø) 10 <4> (?)
...jdk/samtools/cram/structure/CompressionHeader.java 90.244% <100%> (ø) 28 <0> (ø) :arrow_down:
...amtools/cram/encoding/reader/CramRecordReader.java 85.256% <100%> (ø) 26 <0> (ø) :arrow_down:
...c/main/java/htsjdk/samtools/cram/build/CramIO.java 83.721% <100%> (ø) 20 <1> (ø) :arrow_down:
...amtools/cram/structure/slice/SliceBAIMetadata.java 100% <100%> (ø) 9 <9> (?)
... and 28 more
jmthibault79 commented 5 years ago

Closing this while we work through the spec implications here: https://github.com/samtools/hts-specs/issues/370