Package com.compomics.util.experiment.massspectrometry

Examples of com.compomics.util.experiment.massspectrometry.Precursor


        if (runError == null) {
            throw new IllegalArgumentException("No m/z deviation statistics found for spectrum file " + fileName + ".");
        }

        MSnSpectrum spectrum = (MSnSpectrum) spectrumFactory.getSpectrum(fileName, spectrumTitle);
        Precursor precursor = spectrum.getPrecursor();
        double precursorMz = precursor.getMz();
        double precursorRT = precursor.getRt();
        double correction = 0.0;

        if (recalibratePrecursor) {
            correction = runError.getPrecursorMzCorrection(precursorMz, precursorRT);
        }

        Precursor newPrecursor = spectrum.getPrecursor().getRecalibratedPrecursor(correction, 0.0);
        HashMap<Double, Peak> peakList = spectrum.getPeakMap();

        if (recalibrateFragmentIons) {
            peakList = runError.recalibratePeakList(precursorRT, spectrum.getPeakMap());
        }
View Full Code Here


                    SpectrumMatch spectrumMatch = identification.getSpectrumMatch(spectrumKey);
                    PeptideAssumption peptideAssumption = spectrumMatch.getBestPeptideAssumption();

                    if (peptideAssumption != null) {

                        Precursor precursor = spectrumFactory.getPrecursor(spectrumKey);
                        double precursorMzError = peptideAssumption.getDeltaMass(precursor.getMz(), searchParameters.isPrecursorAccuracyTypePpm());
                        precursorMzDeviations.add(precursorMzError);
                        Integer charge = peptideAssumption.getIdentificationCharge().value;

                        if (!charges.contains(charge)) {
                            charges.add(charge);
View Full Code Here

TOP

Related Classes of com.compomics.util.experiment.massspectrometry.Precursor

Copyright © 2018 www.massapicom. 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.