merenlab / illumina-utils

A library and collection of scripts to work with Illumina paired-end data (for CASAVA 1.7+ pipeline).
GNU General Public License v2.0
89 stars 31 forks source link

enforced integer division for indexing #9

Closed jordangumm closed 7 years ago

jordangumm commented 7 years ago

Python 3 introduced "true" division and can produce float values from two integers unless directly type cast or if the floor division operator is used. I propose using the latter when computing the half_length variable as it is required to be of type int when used to slice quality in C33 check.

meren commented 7 years ago

Thank you very much, Jordan. Great catch.