lmdu / pyfastx

a python package for fast random access to sequences from plain and gzipped FASTA/Q files
https://pyfastx.readthedocs.io
MIT License
262 stars 23 forks source link

Fetch function can't identify numpy int #79

Open Yuan2yuan2yuan opened 5 months ago

Yuan2yuan2yuan commented 5 months ago

Hi, It seems that fasta.fetch can't recognize numpy int variables and will report an error. SystemError: /tmp/build/80754af9/python-split_1631797238431/work/Objects/longobject.c:506: bad argument to internal function

lmdu commented 5 months ago

pyfastx could not parse numbers with numpy types. You can use int function to convert numpy int to python int.