Hi, SpectraST seem to miss one scan when I'm creating a library from an mzXML-file. I noticed this when I tried to import a file containing only one scan, which resulted in an empty library.
I used Proteowizard's msconvert to convert an mgf file to mzXML, which I imported into SpectraST. I'm not sure if the issue lies with msconvert though. I managed to fix the issue by fiddling around a bit in the SpectraST source code: SpectraSTMzXMLLibImporter.cpp: * row 141: add one to getLastScan() * row 166: loop from k < 0 to k < numScans SpectraST_cramp.cpp: * row 147: change the last condition to arg < 0 instead of arg < 1 (scans are numbered from 0 and up when converting mgf -> mzXML with msconvert) Importing mzXML files containing one spectra now works but I haven't tested it much more than that so I'm not sure if I've messed something up. Anyway I just wanted to let you know about this as it may affect others as well. Normally you won't notice this issue if you have thousands of spectra, but even one spectra lost is unnecessary if it can be avoided, right? :) Have a nice day! -- You received this message because you are subscribed to the Google Groups "spctools-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/spctools-discuss?hl=en.
