Closed verheytb closed 5 years ago
I used RawTools to convert one of our datasets to a .mgf file. I'm finding that numerous MS2 spectra have PEPMASS=0
despite the fact that the .raw file has an m/z value for the precursor. Does RawTools use PEPMASS=0
for poor quality spectra? MS-GF+ requires a precursor m/z value for every MS2 spectrum; so it will effectively skip spectra with PEPMASS=0
The NullPointerException is a different matter; it was due to the .mgf file being Unicode and starting with a byte order mark. I will update the code to account for this.
Until we can get this fixed, you can add a blank line to the start of your .mgf file and it should analyze properly. However, testing this, the spectra with PEPMASS=0
result in new, separate bug.
java.lang.NegativeArraySizeException
at edu.ucsd.msjava.msscorer.FastScorer.<init>(FastScorer.java:21)
at edu.ucsd.msjava.msdbsearch.ScoredSpectraMap.preProcessIndividualSpectra(ScoredSpectraMap.java:234)
at edu.ucsd.msjava.msdbsearch.ScoredSpectraMap.preProcessSpectra(ScoredSpectraMap.java:190)
at edu.ucsd.msjava.msdbsearch.ScoredSpectraMap.preProcessSpectra(ScoredSpectraMap.java:182)
at edu.ucsd.msjava.msdbsearch.ConcurrentMSGFPlus$RunMSGFPlus.run(ConcurrentMSGFPlus.java:87)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Hi Matt,
I used RawTools 1.2.0 to parse Thermo RAW data from a Fusion Orbitrap machine, but I'm not getting PEPMASS=0
in my MGF files or the NegativeArraySizeException
errors you are having. If it helps, I didn't use RawTools' intensity filters when generating MGF.
Thanks for you help in finding and fixing the byte order mark issue. I ended up using the following to fix it in all my files:
sed -i '1s/^\xEF\xBB\xBF//' *.mgf
Ted
This should be fixed with the latest release; please try processing the original .mgf files using https://github.com/MSGFPlus/msgfplus/releases/tag/v2019.01.22
Hi,
I am reading an MGF file that begins with:
Here is the output from MS-GF+:
I can't seem to find anything in the MGF that goes against spec. The MGF was produced with RawTools.
Ted