ProteoWizard / pwiz

The ProteoWizard Library is a set of software libraries and tools for rapid development of mass spectrometry and proteomic data analysis software.
http://proteowizard.sourceforge.net/
Apache License 2.0
210 stars 97 forks source link

Small molecules added from NIST-type library are missing ExplicitRetentionTime #2755

Open meowcat opened 9 months ago

meowcat commented 9 months ago

Steps to reproduce: 1) create blank document in molecule mode 2) View -> spectral libraries. Dropdown -> Add, choose a name, add the MSP file from this gist: https://gist.github.com/meowcat/4f0a08cd803d941cd1ac53829931ee5f 3) Select the new library in the dropdown, select the "Metamitron" molecule, "Add" 4) Confirm "adding the library to your document" 5) Right-click on the added entry "Metamitron...", modify Explicit Retention Time is missing.

Investigations:

meowcat commented 9 months ago

Note: this was similarly reported in 2019, but was reportedly addressed: https://skyline.ms/announcements/home/support/thread.view?rowId=38820

meowcat commented 5 months ago

In https://github.com/ProteoWizard/pwiz/blob/1f52dda5cab072f40ce0f641ed36a4a62c1d0726/pwiz_tools/Skyline/Model/LibKeyModificationMatcher.cs#L339, the nodePep created from CreateDocNodeFromSettings is missing the ExplicitRetentionTime

meowcat commented 5 months ago

I have a fix in https://github.com/ProteoWizard/pwiz/pull/2860 but I don't know if that's the right way to do it.