Villen-Lab / pyAscore

A python package for fast post translational modification localization, powered by Cython.
https://pyascore.readthedocs.io/
MIT License
18 stars 5 forks source link

Continue file reading fixes #32

Closed AnthonyOfSeattle closed 2 years ago

AnthonyOfSeattle commented 2 years ago

This PR addresses two issues with file reading.

The first is with mzIdentML files. Previously, there was some issue with the fact that missing links within the mzIdentML itself were causing the "PeptideEvidenceRef" attribute to lack sequence information. The simple fix here is to just get the PeptideSequence from the standard match object.

The second file reading issue was in spectra files which have mz and intensity values encoded with float precision. Pyteomics with faithfully recreate this. However, pyAscore expects double precision. So I enforce this during file reading.