handle = open('U00096.2.fas.txt', 'r')
a = handle.readlines()[1:]
a = ''.join([x.strip() for x in a])
b = numpy.array([x for x in a], dtype=numpy.character)
rolling_window(b, 100)
How to read a DNA sequence more efficiently?