kevinkovalchik / RawTools

RawTools is an open-source and freely available package designed to perform scan data parsing and quantification, and quality control analysis of Thermo Orbitrap raw mass spectrometer files from data-dependent acquisition experiments.
Apache License 2.0
64 stars 19 forks source link

Output MS3 Scans in MGF #69

Closed IvanSilbern closed 2 years ago

IvanSilbern commented 2 years ago

Dear Kevin,

Would it be possible to adjust MGF-converter so it also reports MS3 scans and not only MS2? For now, it seems that MS3 scans are skipped and not reported in the MGF file.

Thank you very much for your efforts!

Best regards, Ivan

kevinkovalchik commented 2 years ago

What do you think, @chrishuges? It seems it would be pretty easy to add an argument specifying which MS levels get put in the MGF. This would be small enough that I might be able to find time for it.

Kevin

chrishuges commented 2 years ago

Yes, would be quite straightforward to implement I think. If you have time that would be fantastic. Otherwise I can circle back around to it in a couple of weeks after some grant deadlines.

chrishuges commented 2 years ago

Please try out 2.0.4 to see if this fixes your issue. I opted to not combine them into a single MGF, as they are just text files and could be manually integrated downstream quite easily. But, this functionality could be added in the future if desired.

IvanSilbern commented 2 years ago

Dear Christopher, dear Kevin,

thank you very much for the prompt update! I tried to convert a few raw files and it worked. Also comparison with mgf produced by msconvert did not show significant differences. Just a minor note: The "original" rawtool mgf contains more information about the scan, such as peptide mass, charge, and retention time. The new ms2/ms3 mgf files contain only the scan number, it might be also useful to include the mass, charge of the precursor ion, and the retention time, if possible. Thank you very much again for your work!

Best, Ivan

chrishuges commented 2 years ago

Thanks Ivan, glad it worked for you. I ended up having to remove the release temporarily, but when I put it back up I will add that other info you requested. I had removed those details to streamline the format with MS1 (no mass, charge information) while I was debugging and must have forgotten to put it back in for MS2 and MS3 scans. Thanks for letting me know. I should have the release reposted by the end of the week.

chrishuges commented 2 years ago

Hi Ivan,

I just re-uploaded 2.0.4 to the releases section and it adds more detail to the MGF output for MS1/MS2/MS3.

Thanks, Chris

IvanSilbern commented 2 years ago

Dear Christopher, dear Kevin,

Thank you very much for the quick update!

Best, Ivan