change to read.qualstr . On Ubuntu 14.04, HTSeq 0.6.1 returns as a str, however on MacOS X, it returns an object and needs to be called read.qualstr()