dib-lab / kProcessor

kProcessor: kmers processing framework.
https://kprocessor.readthedocs.io
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

Pythonic API upgrades #10

Open ctb opened 5 years ago

ctb commented 5 years ago

suggestions based on code in https://github.com/drtamermansour/nu-ngs02/blob/master/Day5/kProcessor/Tutorial.ipynb --

kf.size() could be len(ksize), I think?

The iterator functionality here,

it = kf2.begin()
while(it != kf2.end()):
   it.next()

could be

for it in kf2:
   ...

using the Python iterator API.