Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [chemclipse-dev] Question about AbstractVendorMassSpectrumProxy class

Hi Trig,

that's correct.

When analyzing huge files > 1 GB, the performance would be miserable if each scan is loaded in advance. Hence, it shall be loaded only when it is needed. Each vendor supplier best knows on his own ho to extract the data from a scan, when it's needed (e.g. only he knows the byte position in the file where the requested scan is located). The member variable is set to true after successfully loading the file. I've explicitly not added a method to set this to false again, cause the scan is loaded after running the "checkProxyAndImportOnDemand()" method. So it's not a proxy anymore afterwards.


Best,
Philip


Am 19.10.2016 um 10:57 schrieb Trig Chen:
Hi all,

The class org.eclipse.chemclipse.msd.model.core.AbstractVendorMassSpectrumProxy has one private boolean type field "isProxy" with true initial value. This value is changed to false as method checkProxyAndImportOnDemand() called. checkProxyAndImportOnDemand method does the import ions job and then set isProxy to false. Then isProxy stays false always and will never change to true again. That means I can't import ions again.

private void checkProxyAndImportOnDemand() {

if(isProxy) {
isProxy = false;
importIons();
}
}

In my case, I firstly import ions and find the m/z values incorrect, so I make a m/z calibration on current mass spectrum. Here comes the problem, I can't reimport ions for current mass spectrum or any other spectra because isProxy is false. There is not a way to set isProxy to true in AbstractVendorMassSpectrumProxy class.


Best regards,

Trig


_______________________________________________
chemclipse-dev mailing list
chemclipse-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/chemclipse-dev

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@xxxxxxxxxxxxx » http://www.openchrom.net
~~~~~~~~~~~~~~~~~~~~~~~~

Back to the top