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

Error when number of scans in id file does not match spectra file #10

Open AnthonyOfSeattle opened 2 years ago

AnthonyOfSeattle commented 2 years ago

Sometimes, if a user specifies an identification file which has more/less scans than the spectrum file, pyAscore will error without an intuitive message. This situation happens if you aggregate all PSMs together (e.g. percolator or mokapot --aggregate output) and try to feed it to pyAscore. This is not a something I want to support, but I need to be more transparent about the message of what is going on.