Examples of asMgf()


Examples of com.compomics.util.experiment.massspectrometry.MSnSpectrum.asMgf()

        String spectrumAsMgf = "";
        try {
            for (String spectrumKey : getSelectedPsm()) {
                MSnSpectrum currentSpectrum = peptideShakerGUI.getSpectrum(spectrumKey);
                spectrumAsMgf += currentSpectrum.asMgf() + System.getProperty("line.separator");
            }
            if (!spectrumAsMgf.isEmpty()) {
                return spectrumAsMgf;
            }
        } catch (Exception e) {
View Full Code Here

Examples of com.compomics.util.experiment.massspectrometry.MSnSpectrum.asMgf()

        if (spectrumTable.getSelectedRow() != -1) {
            String spectrumKey = getSelectedSpectrumKey();
            MSnSpectrum currentSpectrum = peptideShakerGUI.getSpectrum(spectrumKey);

            if (currentSpectrum != null) {
                return currentSpectrum.asMgf();
            }
        }

        return null;
    }
View Full Code Here

Examples of com.compomics.util.experiment.massspectrometry.MSnSpectrum.asMgf()

            SelfUpdatingTableModel tableModel = (SelfUpdatingTableModel) psmTable.getModel();
            for (int row : selectedRows) {
                int psmIndex = tableModel.getViewIndex(row);
                String spectrumKey = psmKeys.get(psmIndex);
                MSnSpectrum currentSpectrum = peptideShakerGUI.getSpectrum(spectrumKey);
                spectraAsMgf.append(currentSpectrum.asMgf());
            }

            return spectraAsMgf.toString();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.