seqan / iGenVar

The official repository for the iGenVar project.
BSD 3-Clause "New" or "Revised" License
9 stars 8 forks source link

[FIX] Interrupted BAMIT creation, which ends in an `cereal::Exception`. #199

Closed Irallia closed 2 years ago

Irallia commented 2 years ago

If a run of iGenVar is aborted in the BAMIT creation, an incorrect index is stored, which cannot be read when iGenVar is called again:

terminate called after throwing an instance of 'cereal::Exception'
  what():  Failed to read 8 bytes from input stream! Read 0
Abort trap: 6

Fix: We write the index into a tmp file and save it with the correct filename after finishing.

codecov[bot] commented 2 years ago

Codecov Report

Merging #199 (ad08bf6) into master (5e11a82) will increase coverage by 0.02%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #199      +/-   ##
==========================================
+ Coverage   98.31%   98.34%   +0.02%     
==========================================
  Files          18       18              
  Lines         833      846      +13     
==========================================
+ Hits          819      832      +13     
  Misses         14       14              
Impacted Files Coverage Δ
src/variant_detection/variant_detection.cpp 96.58% <100.00%> (+0.25%) :arrow_up:
src/iGenVar.cpp 100.00% <0.00%> (ø)

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 5e11a82...ad08bf6. Read the comment docs.