samtools / htsjdk

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

- Add a function to calculate the value of the OA tag #1354

Closed yfarjoun closed 5 years ago

yfarjoun commented 5 years ago

The OA tag can be used to record the previous ("Original") alignment information in a SAM record. This PR add a method that will construct the contents of the OA tag from a record, to make the creation of the OA tag easy and uniform.

codecov-io commented 5 years ago

Codecov Report

Merging #1354 into master will increase coverage by 1.237%. The diff coverage is 85%.

@@               Coverage Diff               @@
##              master     #1354       +/-   ##
===============================================
+ Coverage     67.848%   69.085%   +1.237%     
- Complexity      8283      9219      +936     
===============================================
  Files            563       570        +7     
  Lines          33706     36413     +2707     
  Branches        5657      6385      +728     
===============================================
+ Hits           22869     25156     +2287     
- Misses          8659      8962      +303     
- Partials        2178      2295      +117
Impacted Files Coverage Δ Complexity Δ
...c/main/java/htsjdk/samtools/util/SequenceUtil.java 70.588% <ø> (ø) 131 <0> (ø) :arrow_down:
...main/java/htsjdk/samtools/SAMRecordSetBuilder.java 89.591% <100%> (+0.039%) 75 <0> (ø) :arrow_down:
src/main/java/htsjdk/samtools/SAMUtils.java 60.145% <78.571%> (+0.645%) 130 <3> (+3) :arrow_up:
...s/cram/encoding/external/ExternalLongEncoding.java 61.538% <0%> (-5.128%) 4% <0%> (+1%)
src/main/java/htsjdk/variant/bcf2/BCFVersion.java 93.103% <0%> (-1.633%) 12% <0%> (+5%)
src/main/java/htsjdk/samtools/SAMFileHeader.java 66.942% <0%> (-0.5%) 83% <0%> (+38%)
...dk/samtools/cram/structure/SubstitutionMatrix.java 91.026% <0%> (-0.279%) 30% <0%> (+15%)
...s/cram/encoding/external/ExternalByteEncoding.java 100% <0%> (ø) 10% <0%> (+4%) :arrow_up:
...ram/encoding/external/ExternalIntegerEncoding.java 100% <0%> (ø) 10% <0%> (+4%) :arrow_up:
...n/java/htsjdk/variant/vcf/VCFSampleHeaderLine.java 100% <0%> (ø) 1% <0%> (?)
... and 43 more