Permalink
Browse files

Fix not being able to reuse WiggleLiftover classes

WiggleLiftover calls WiggleTiles.clear() after one conversion, but
clear() didn't set the genome length to 0, which caused WiggleLiftover
not to re-initialize the tiles properly.
  • Loading branch information...
1 parent a65aaf4 commit f7de41863c0d458ffc870a05599e39c5ad12811a @joelarmstrong joelarmstrong committed Nov 16, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 liftover/inc/halWiggleTiles.h
@@ -108,6 +108,9 @@ inline void WiggleTiles<T>::clear()
{
_tiles.clear();
_bits.clear();
+ _tileSize = 0;
+ _genomeSize = 0;
+ _lastTileSize = 0;
}
template <class T>

0 comments on commit f7de418

Please sign in to comment.