pymzml / pymzML

pymzML - an interface between Python and mzML Mass spectrometry Files
https://pymzml.readthedocs.io/en/latest/
MIT License
160 stars 91 forks source link

Division with zero error #248

Closed Aviral3364 closed 3 years ago

Aviral3364 commented 3 years ago

Dear all,

I am using package pymzml but one problem appeared with some mzml files although same files are running in other languages. I am trying to open mzml file with this commands:

path = file1.mzml run = pymzml.run.Reader(path)

Screenshot (93)

Can anyone has idea why is it happening with some mzml files.

Best regards, Aviral Singh

MKoesters commented 3 years ago

Hi Aviral,

Which version of pymzML are you using? Also, can you tell me if your mzML file has an index and if yes, how it looks like? When I have this info, I'll be able to help you better

In the mean time, does initializing the readder with build_index_from_scratch=True change anything?

Best, Manuel

Aviral3364 commented 3 years ago

Hi Manuel,

Thanks for the concern on this issue. pymzML version = 2.4.7 mzML file has the index and I have also tried build_index_from_scratch=True but the problem still not solved. You can look into the mzML file by going through this link: https://drive.google.com/drive/folders/16y9dVuyx8hGMS5DlhFl18zuHwYnD_0Yy?usp=sharing

MKoesters commented 3 years ago

Could you try to install https://github.com/pymzml/pymzML/tree/fix/%23248 by

pip install 'git+https://github.com/pymzml/pymzml.git@fix248'

Best, Manuel

Aviral3364 commented 3 years ago

I tried with the link and the error is removed. Thanks for the amendments.

Regards, Aviral Singh