Numeric run length encoding for Python.


Keywords
run-lengths, Rle, genomics
License
MIT
Install
pip install pyrle==0.0.37

Documentation

pyrle

Build Status hypothesis tested PyPI version

Run length arithmetic in Python using Cython. Inspired by the Rle class in R's S4Vectors.

As opposed to S4Vectors, pyrle does not rotate the shortest vector, but rather extends the shorter Rle with zeroes. This is likely the desired behavior in almost all cases.