Search in sources :

Example 6 with SequenceMatchingParameters

use of com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters in project peptide-shaker by compomics.

the class PsmProcessorRunnable method attachAssumptionsProbabilities.

/**
 * Attaches the spectrum posterior error probabilities to the peptide
 * assumptions.
 *
 * @param inputMap map of the input scores
 * @param fastaParameters the FASTA parsing parameters
 * @param sequenceMatchingPreferences the sequence matching preferences
 * @param waitingHandler the handler displaying feedback to the user
 */
private void attachAssumptionsProbabilities(SpectrumMatch spectrumMatch) {
    FastaParameters fastaParameters = identificationParameters.getFastaParameters();
    SequenceMatchingParameters sequenceMatchingParameters = identificationParameters.getSequenceMatchingParameters();
    // Peptides
    HashMap<Integer, TreeMap<Double, ArrayList<PeptideAssumption>>> peptideAssumptionsMap = spectrumMatch.getPeptideAssumptionsMap();
    TreeMap<Double, ArrayList<PSParameter>> pepToParameterMap = new TreeMap<>();
    for (Map.Entry<Integer, TreeMap<Double, ArrayList<PeptideAssumption>>> entry : peptideAssumptionsMap.entrySet()) {
        int searchEngine = entry.getKey();
        TreeMap<Double, ArrayList<PeptideAssumption>> seMapping = entry.getValue();
        double previousP = 0.0;
        ArrayList<PSParameter> previousAssumptionsParameters = new ArrayList<>(2);
        PeptideAssumption previousAssumption = null;
        for (Map.Entry<Double, ArrayList<PeptideAssumption>> entry2 : seMapping.entrySet()) {
            double eValue = entry2.getKey();
            ArrayList<PeptideAssumption> peptideAssumptions = entry2.getValue();
            for (PeptideAssumption assumption : peptideAssumptions) {
                PSParameter psParameter = (PSParameter) assumption.getUrParam(PSParameter.dummy);
                if (psParameter == null) {
                    psParameter = new PSParameter();
                }
                if (fastaParameters.isTargetDecoy()) {
                    double newP = inputMap.getProbability(searchEngine, eValue);
                    double pep = previousP;
                    if (newP > previousP) {
                        pep = newP;
                        previousP = newP;
                    }
                    psParameter.setProbability(pep);
                    ArrayList<PSParameter> pSParameters = pepToParameterMap.get(pep);
                    if (pSParameters == null) {
                        pSParameters = new ArrayList<>(1);
                        pepToParameterMap.put(pep, pSParameters);
                    }
                    pSParameters.add(psParameter);
                    if (previousAssumption != null) {
                        Peptide newPeptide = assumption.getPeptide();
                        Peptide previousPeptide = previousAssumption.getPeptide();
                        if (!newPeptide.isSameSequenceAndModificationStatus(previousPeptide, sequenceMatchingParameters)) {
                            for (PSParameter previousParameter : previousAssumptionsParameters) {
                                double deltaPEP = pep - previousParameter.getProbability();
                                previousParameter.setAlgorithmDeltaPEP(deltaPEP);
                            }
                            previousAssumptionsParameters.clear();
                        }
                    }
                    previousAssumption = assumption;
                    previousAssumptionsParameters.add(psParameter);
                } else {
                    psParameter.setProbability(1.0);
                }
                assumption.addUrParam(psParameter);
            }
        }
        for (PSParameter previousParameter : previousAssumptionsParameters) {
            double deltaPEP = 1 - previousParameter.getProbability();
            previousParameter.setAlgorithmDeltaPEP(deltaPEP);
        }
    }
    // Compute the delta pep score accross all search engines
    double previousPEP = Double.NaN;
    ArrayList<PSParameter> previousParameters = new ArrayList<>();
    for (Map.Entry<Double, ArrayList<PSParameter>> entry : pepToParameterMap.entrySet()) {
        double pep = entry.getKey();
        if (!Double.isNaN(previousPEP)) {
            for (PSParameter previousParameter : previousParameters) {
                double delta = pep - previousPEP;
                previousParameter.setDeltaPEP(delta);
            }
        }
        previousParameters = entry.getValue();
        previousPEP = pep;
    }
    for (PSParameter previousParameter : previousParameters) {
        double delta = 1 - previousParameter.getProbability();
        previousParameter.setDeltaPEP(delta);
    }
    if (waitingHandler.isRunCanceled()) {
        return;
    }
    // Assumptions
    HashMap<Integer, TreeMap<Double, ArrayList<TagAssumption>>> tagAssumptionsMap = spectrumMatch.getTagAssumptionsMap();
    for (Map.Entry<Integer, TreeMap<Double, ArrayList<TagAssumption>>> entry : tagAssumptionsMap.entrySet()) {
        int algorithm = entry.getKey();
        TreeMap<Double, ArrayList<TagAssumption>> seMapping = entry.getValue();
        double previousP = 0;
        ArrayList<PSParameter> previousAssumptionsParameters = new ArrayList<>();
        TagAssumption previousAssumption = null;
        for (Map.Entry<Double, ArrayList<TagAssumption>> entry2 : seMapping.entrySet()) {
            double score = entry2.getKey();
            for (TagAssumption assumption : entry2.getValue()) {
                PSParameter psParameter = (PSParameter) assumption.getUrParam(PSParameter.dummy);
                if (psParameter == null) {
                    psParameter = new PSParameter();
                }
                if (fastaParameters.isTargetDecoy()) {
                    double newP = inputMap.getProbability(algorithm, score);
                    double pep = previousP;
                    if (newP > previousP) {
                        pep = newP;
                        previousP = newP;
                    }
                    psParameter.setProbability(pep);
                    ArrayList<PSParameter> pSParameters = pepToParameterMap.get(pep);
                    if (pSParameters == null) {
                        pSParameters = new ArrayList<>(1);
                        pepToParameterMap.put(pep, pSParameters);
                    }
                    pSParameters.add(psParameter);
                    if (previousAssumption != null) {
                        boolean same = false;
                        Tag newTag = ((TagAssumption) assumption).getTag();
                        Tag previousTag = previousAssumption.getTag();
                        if (newTag.isSameSequenceAndModificationStatusAs(previousTag, sequenceMatchingParameters)) {
                            same = true;
                        }
                        if (!same) {
                            for (PSParameter previousParameter : previousAssumptionsParameters) {
                                double deltaPEP = pep - previousParameter.getProbability();
                                previousParameter.setAlgorithmDeltaPEP(deltaPEP);
                            }
                            previousAssumptionsParameters.clear();
                        }
                    }
                    previousAssumption = assumption;
                    previousAssumptionsParameters.add(psParameter);
                } else {
                    psParameter.setProbability(1.0);
                }
                assumption.addUrParam(psParameter);
            }
        }
        for (PSParameter previousParameter : previousAssumptionsParameters) {
            double deltaPEP = 1 - previousParameter.getProbability();
            previousParameter.setAlgorithmDeltaPEP(deltaPEP);
        }
    }
}
Also used : ArrayList(java.util.ArrayList) TagAssumption(com.compomics.util.experiment.identification.spectrum_assumptions.TagAssumption) FastaParameters(com.compomics.util.experiment.io.biology.protein.FastaParameters) Peptide(com.compomics.util.experiment.biology.proteins.Peptide) PSParameter(com.compomics.util.experiment.identification.peptide_shaker.PSParameter) TreeMap(java.util.TreeMap) Tag(com.compomics.util.experiment.identification.amino_acid_tags.Tag) SequenceMatchingParameters(com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters) PeptideAssumption(com.compomics.util.experiment.identification.spectrum_assumptions.PeptideAssumption) HashMap(java.util.HashMap) Map(java.util.Map) InputMap(eu.isas.peptideshaker.scoring.maps.InputMap) TreeMap(java.util.TreeMap)

Example 7 with SequenceMatchingParameters

use of com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters in project peptide-shaker by compomics.

the class OverviewPanel method updateBubblePlot.

/**
 * Updated the bubble plot with the current PSMs.
 */
public void updateBubblePlot() {
    if (peptideTable.getSelectedRow() != -1 && displaySpectrum) {
        ArrayList<String> selectedIndexes = new ArrayList<>();
        // get the currenly selected rows in the psm table
        int[] selectedPsmRows = psmTable.getSelectedRows();
        SelfUpdatingTableModel psmTableModel = (SelfUpdatingTableModel) psmTable.getModel();
        ArrayList<IonMatch[]> allAnnotations = new ArrayList<>();
        ArrayList<Spectrum> allSpectra = new ArrayList<>();
        SequenceProvider sequenceProvider = peptideShakerGUI.getSequenceProvider();
        IdentificationParameters identificationParameters = peptideShakerGUI.getIdentificationParameters();
        ModificationParameters modificationParameters = identificationParameters.getSearchParameters().getModificationParameters();
        SequenceMatchingParameters modificationSequenceMatchingParameters = identificationParameters.getModificationLocalizationParameters().getSequenceMatchingParameters();
        AnnotationParameters annotationParameters = identificationParameters.getAnnotationParameters();
        DisplayParameters displayParameters = peptideShakerGUI.getDisplayParameters();
        ArrayList<Peptide> peptides = new ArrayList<>();
        SpectrumProvider spectrumProvider = peptideShakerGUI.getSpectrumProvider();
        PeptideSpectrumAnnotator spectrumAnnotator = new PeptideSpectrumAnnotator();
        SpecificAnnotationParameters specificAnnotationParameters = null;
        int maxCharge = 1;
        HashSet<String> allModifications = new HashSet<>();
        // iterate the selected psms rows
        for (int row : selectedPsmRows) {
            int psmIndex = psmTableModel.getViewIndex(row);
            long spectrumMatchKey = psmKeys[psmIndex];
            SpectrumMatch spectrumMatch = peptideShakerGUI.getIdentification().getSpectrumMatch(spectrumMatchKey);
            selectedIndexes.add((psmIndex + 1) + " " + Charge.toString(spectrumMatch.getBestPeptideAssumption().getIdentificationCharge()));
            String spectrumFile = spectrumMatch.getSpectrumFile();
            String spectrumTitle = spectrumMatch.getSpectrumTitle();
            Spectrum currentSpectrum = spectrumProvider.getSpectrum(spectrumFile, spectrumTitle);
            if (currentSpectrum != null) {
                PeptideAssumption peptideAssumption = spectrumMatch.getBestPeptideAssumption();
                Peptide peptide = peptideAssumption.getPeptide();
                specificAnnotationParameters = peptideShakerGUI.getSpecificAnnotationParameters(spectrumFile, spectrumTitle, peptideAssumption);
                peptides.add(peptide);
                IonMatch[] annotations = spectrumAnnotator.getSpectrumAnnotation(annotationParameters, specificAnnotationParameters, spectrumFile, spectrumTitle, currentSpectrum, peptide, modificationParameters, sequenceProvider, modificationSequenceMatchingParameters);
                allAnnotations.add(annotations);
                allSpectra.add(currentSpectrum);
                int currentCharge = spectrumMatch.getBestPeptideAssumption().getIdentificationCharge();
                if (currentCharge > maxCharge) {
                    maxCharge = currentCharge;
                }
                allModifications.addAll(ModificationUtils.getAllModifications(peptide, modificationParameters, sequenceProvider, modificationSequenceMatchingParameters));
                currentSpectrumMatchKey = spectrumMatch.getKey();
            }
        }
        double bubbleScale = annotationParameters.getFragmentIonAccuracy() * 10 * peptideShakerGUI.getBubbleScale();
        massErrorBubblePlot = new MassErrorBubblePlot(selectedIndexes, allAnnotations, allSpectra, annotationParameters.getFragmentIonAccuracy(), bubbleScale, selectedIndexes.size() == 1, displayParameters.showBars(), identificationParameters.getSearchParameters().getFragmentAccuracyType() == SearchParameters.MassAccuracyType.PPM);
        // hide the legend if selecting more than 20 spectra // @TODO: 20 should not be hardcoded here..
        if (selectedIndexes.size() > 20) {
            massErrorBubblePlot.getChartPanel().getChart().getLegend().setVisible(false);
        }
        // hide the outline
        massErrorBubblePlot.getChartPanel().getChart().getPlot().setOutlineVisible(false);
        bubbleJPanel.removeAll();
        bubbleJPanel.add(massErrorBubblePlot);
        bubbleJPanel.revalidate();
        bubbleJPanel.repaint();
        if (allSpectra.size() == 2) {
            for (int i = 0; i < allSpectra.size(); i++) {
                if (i == 0) {
                    Spectrum spectrum = allSpectra.get(i);
                    spectrumPanel = new SpectrumPanel(spectrum.mz, ArrayUtil.scaleToMax(spectrum.intensity), 500, "2", "", 40, false, false, false, 2, false);
                    // @TODO: implement ties resolution in the spectrum panel
                    spectrumPanel.setAnnotateHighestPeak(annotationParameters.getTiesResolution() == SpectrumAnnotator.TiesResolution.mostIntense);
                    // @TODO: the selection of the peak to annotate should be done outside the spectrum panel
                    spectrumPanel.setAnnotations(SpectrumAnnotator.getSpectrumAnnotation(allAnnotations.get(i)), annotationParameters.getTiesResolution() == SpectrumAnnotator.TiesResolution.mostIntense);
                    SpectrumPanel.setKnownMassDeltas(peptideShakerGUI.getCurrentMassDeltas());
                    spectrumPanel.setDeltaMassWindow(peptideShakerGUI.getIdentificationParameters().getAnnotationParameters().getFragmentIonAccuracy());
                    spectrumPanel.setBorder(null);
                    spectrumPanel.setDataPointAndLineColor(peptideShakerGUI.getUtilitiesUserParameters().getSpectrumAnnotatedPeakColor(), 0);
                    spectrumPanel.setPeakWaterMarkColor(peptideShakerGUI.getUtilitiesUserParameters().getSpectrumBackgroundPeakColor());
                    spectrumPanel.setPeakWidth(peptideShakerGUI.getUtilitiesUserParameters().getSpectrumAnnotatedPeakWidth());
                    spectrumPanel.setBackgroundPeakWidth(peptideShakerGUI.getUtilitiesUserParameters().getSpectrumBackgroundPeakWidth());
                    spectrumPanel.showAnnotatedPeaksOnly(!annotationParameters.showAllPeaks());
                    spectrumPanel.setYAxisZoomExcludesBackgroundPeaks(annotationParameters.yAxisZoomExcludesBackgroundPeaks());
                    Integer forwardIon = peptideShakerGUI.getIdentificationParameters().getSearchParameters().getForwardIons().get(0);
                    Integer rewindIon = peptideShakerGUI.getIdentificationParameters().getSearchParameters().getRewindIons().get(0);
                    spectrumPanel.addAutomaticDeNovoSequencing(peptides.get(i), allAnnotations.get(i), forwardIon, rewindIon, annotationParameters.getDeNovoCharge(), annotationParameters.showForwardIonDeNovoTags(), annotationParameters.showRewindIonDeNovoTags(), false, modificationParameters, sequenceProvider, modificationSequenceMatchingParameters);
                } else {
                    Spectrum spectrum = allSpectra.get(i);
                    spectrumPanel.addMirroredSpectrum(spectrum.mz, ArrayUtil.scaleToMax(spectrum.intensity), 500, "2", "", false, peptideShakerGUI.getUtilitiesUserParameters().getSpectrumAnnotatedMirroredPeakColor(), peptideShakerGUI.getUtilitiesUserParameters().getSpectrumAnnotatedMirroredPeakColor());
                    // @TODO: implement ties resolution in the spectrum panel
                    spectrumPanel.setAnnotateHighestPeak(annotationParameters.getTiesResolution() == SpectrumAnnotator.TiesResolution.mostIntense);
                    spectrumPanel.setAnnotationsMirrored(SpectrumAnnotator.getSpectrumAnnotation(allAnnotations.get(i)));
                    Integer forwardIon = peptideShakerGUI.getIdentificationParameters().getSearchParameters().getForwardIons().get(0);
                    Integer rewindIon = peptideShakerGUI.getIdentificationParameters().getSearchParameters().getRewindIons().get(0);
                    spectrumPanel.addAutomaticDeNovoSequencing(peptides.get(i), allAnnotations.get(i), forwardIon, rewindIon, annotationParameters.getDeNovoCharge(), annotationParameters.showForwardIonDeNovoTags(), annotationParameters.showRewindIonDeNovoTags(), true, modificationParameters, sequenceProvider, modificationSequenceMatchingParameters);
                }
            }
            spectrumPanel.rescale(0.0, spectrumPanel.getMaxXAxisValue());
            spectrumSplitPane.setDividerLocation(0);
            spectrumContainerJPanel.revalidate();
            spectrumContainerJPanel.repaint();
            spectrumJPanel.removeAll();
            spectrumJPanel.add(spectrumPanel);
            spectrumJPanel.revalidate();
            spectrumJPanel.repaint();
        } else {
            spectrumSplitPane.setDividerLocation(spectrumSubPlotDividerLocation);
            spectrumContainerJPanel.revalidate();
            spectrumContainerJPanel.repaint();
        }
        peptideShakerGUI.updateAnnotationMenus(specificAnnotationParameters, maxCharge, allModifications);
    }
}
Also used : SpecificAnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters) AnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.AnnotationParameters) DisplayParameters(eu.isas.peptideshaker.preferences.DisplayParameters) SpecificAnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters) Spectrum(com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum) SequenceProvider(com.compomics.util.experiment.io.biology.protein.SequenceProvider) SelfUpdatingTableModel(com.compomics.util.gui.tablemodels.SelfUpdatingTableModel) IdentificationParameters(com.compomics.util.parameters.identification.IdentificationParameters) Peptide(com.compomics.util.experiment.biology.proteins.Peptide) ModificationParameters(com.compomics.util.parameters.identification.search.ModificationParameters) SequenceMatchingParameters(com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters) SpectrumProvider(com.compomics.util.experiment.mass_spectrometry.SpectrumProvider) PeptideAssumption(com.compomics.util.experiment.identification.spectrum_assumptions.PeptideAssumption) PeptideSpectrumAnnotator(com.compomics.util.experiment.identification.spectrum_annotation.spectrum_annotators.PeptideSpectrumAnnotator)

Example 8 with SequenceMatchingParameters

use of com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters in project peptide-shaker by compomics.

the class OverviewPanel method updateSpectrum.

/**
 * Update the spectrum to the currently selected PSM.
 *
 * @param row the row index of the PSM
 * @param resetMzRange if true the mz range is reset, if false the current
 * zoom range is kept
 */
private void updateSpectrum(int row, boolean resetMzRange) {
    if (row != -1) {
        this.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
        SelfUpdatingTableModel tableModel = (SelfUpdatingTableModel) psmTable.getModel();
        int psmIndex = tableModel.getViewIndex(row);
        long spectrumMatchKey = psmKeys[psmIndex];
        if (displaySpectrum) {
            SpectrumProvider spectrumProvider = peptideShakerGUI.getSpectrumProvider();
            SpectrumMatch spectrumMatch = peptideShakerGUI.getIdentification().getSpectrumMatch(spectrumMatchKey);
            String spectrumFile = spectrumMatch.getSpectrumFile();
            String spectrumTitle = spectrumMatch.getSpectrumTitle();
            Spectrum currentSpectrum = spectrumProvider.getSpectrum(spectrumFile, spectrumTitle);
            if (currentSpectrum != null && currentSpectrum.getNPeaks() > 0) {
                boolean newMax = false;
                if (resetMzRange) {
                    lastMzMaximum = 0;
                }
                if (peptideShakerGUI.getSelectedPeptideKey() != NO_KEY) {
                    double newMaximum = currentSpectrum.getMaxMz();
                    if (lastMzMaximum < newMaximum) {
                        lastMzMaximum = newMaximum;
                        newMax = true;
                    }
                }
                double lowerMzZoomRange = 0;
                double upperMzZoomRange = lastMzMaximum;
                if (spectrumPanel != null && spectrumPanel.getXAxisZoomRangeLowerValue() != 0 && !newMax) {
                    // @TODO: sometimes the range is reset when is should not be...
                    lowerMzZoomRange = spectrumPanel.getXAxisZoomRangeLowerValue();
                    upperMzZoomRange = spectrumPanel.getXAxisZoomRangeUpperValue();
                }
                // add the data to the spectrum panel
                Precursor precursor = currentSpectrum.getPrecursor();
                spectrumPanel = new SpectrumPanel(currentSpectrum.mz, currentSpectrum.intensity, precursor.mz, Charge.toString(spectrumMatch.getBestPeptideAssumption().getIdentificationCharge()), "", 40, false, false, false, 2, false);
                spectrumPanel.setKnownMassDeltas(peptideShakerGUI.getCurrentMassDeltas());
                spectrumPanel.setDeltaMassWindow(peptideShakerGUI.getIdentificationParameters().getAnnotationParameters().getFragmentIonAccuracy());
                spectrumPanel.setBorder(null);
                spectrumPanel.setDataPointAndLineColor(peptideShakerGUI.getUtilitiesUserParameters().getSpectrumAnnotatedPeakColor(), 0);
                spectrumPanel.setPeakWaterMarkColor(peptideShakerGUI.getUtilitiesUserParameters().getSpectrumBackgroundPeakColor());
                spectrumPanel.setPeakWidth(peptideShakerGUI.getUtilitiesUserParameters().getSpectrumAnnotatedPeakWidth());
                spectrumPanel.setBackgroundPeakWidth(peptideShakerGUI.getUtilitiesUserParameters().getSpectrumBackgroundPeakWidth());
                // get the spectrum annotations
                PeptideAssumption peptideAssumption = spectrumMatch.getBestPeptideAssumption();
                Peptide currentPeptide = peptideAssumption.getPeptide();
                PeptideSpectrumAnnotator spectrumAnnotator = new PeptideSpectrumAnnotator();
                AnnotationParameters annotationParameters = peptideShakerGUI.getIdentificationParameters().getAnnotationParameters();
                SequenceProvider sequenceProvider = peptideShakerGUI.getSequenceProvider();
                IdentificationParameters identificationParameters = peptideShakerGUI.getIdentificationParameters();
                ModificationParameters modificationParameters = identificationParameters.getSearchParameters().getModificationParameters();
                SequenceMatchingParameters modificationSequenceMatchingParameters = identificationParameters.getModificationLocalizationParameters().getSequenceMatchingParameters();
                SpecificAnnotationParameters specificAnnotationParameters = peptideShakerGUI.getSpecificAnnotationParameters(spectrumFile, spectrumTitle, peptideAssumption);
                IonMatch[] annotations = spectrumAnnotator.getSpectrumAnnotation(annotationParameters, specificAnnotationParameters, spectrumFile, spectrumTitle, currentSpectrum, currentPeptide, modificationParameters, sequenceProvider, modificationSequenceMatchingParameters);
                // @TODO: the selection of the peak to annotate should be done outside the spectrum panel
                spectrumPanel.setAnnotations(SpectrumAnnotator.getSpectrumAnnotation(annotations), annotationParameters.getTiesResolution() == SpectrumAnnotator.TiesResolution.mostIntense);
                spectrumPanel.rescale(lowerMzZoomRange, upperMzZoomRange);
                // show all or just the annotated peaks
                spectrumPanel.showAnnotatedPeaksOnly(!annotationParameters.showAllPeaks());
                spectrumPanel.setYAxisZoomExcludesBackgroundPeaks(annotationParameters.yAxisZoomExcludesBackgroundPeaks());
                Integer forwardIon = peptideShakerGUI.getIdentificationParameters().getSearchParameters().getForwardIons().get(0);
                Integer rewindIon = peptideShakerGUI.getIdentificationParameters().getSearchParameters().getRewindIons().get(0);
                // add de novo sequencing
                spectrumPanel.addAutomaticDeNovoSequencing(currentPeptide, annotations, forwardIon, rewindIon, annotationParameters.getDeNovoCharge(), annotationParameters.showForwardIonDeNovoTags(), annotationParameters.showRewindIonDeNovoTags(), false, modificationParameters, sequenceProvider, modificationSequenceMatchingParameters);
                // add the spectrum panel to the frame
                spectrumJPanel.removeAll();
                spectrumJPanel.add(spectrumPanel);
                spectrumJPanel.revalidate();
                spectrumJPanel.repaint();
                // create and display the fragment ion table
                ArrayList<IonMatch[]> allAnnotations = getAnnotationsForAllSelectedSpectra();
                DisplayParameters displayParameters = peptideShakerGUI.getDisplayParameters();
                if (!displayParameters.useIntensityIonTable()) {
                    fragmentIonsJScrollPane.setViewportView(new FragmentIonTable(currentPeptide, allAnnotations, specificAnnotationParameters.getFragmentIonTypes(), specificAnnotationParameters.getNeutralLossesMap(), specificAnnotationParameters.getSelectedCharges().contains(1), specificAnnotationParameters.getSelectedCharges().contains(2), modificationParameters, sequenceProvider, modificationSequenceMatchingParameters));
                } else {
                    ArrayList<Spectrum> spectra = Arrays.stream(getSelectedPsmKeys()).mapToObj(key -> peptideShakerGUI.getIdentification().getSpectrumMatch(key)).map(selectedMatch -> spectrumProvider.getSpectrum(selectedMatch.getSpectrumFile(), selectedMatch.getSpectrumTitle())).collect(Collectors.toCollection(ArrayList::new));
                    fragmentIonsJScrollPane.setViewportView(new FragmentIonTable(currentPeptide, allAnnotations, spectra, specificAnnotationParameters.getFragmentIonTypes(), specificAnnotationParameters.getNeutralLossesMap(), specificAnnotationParameters.getSelectedCharges().contains(1), specificAnnotationParameters.getSelectedCharges().contains(2), modificationParameters, sequenceProvider, modificationSequenceMatchingParameters));
                }
                // create the sequence fragment ion view
                secondarySpectrumPlotsJPanel.removeAll();
                sequenceFragmentationPanel = new SequenceFragmentationPanel(peptideShakerGUI.getDisplayFeaturesGenerator().getTaggedPeptideSequence(spectrumMatch, false, false, true), annotations, true, peptideShakerGUI.getIdentificationParameters().getSearchParameters().getModificationParameters(), forwardIon, rewindIon);
                sequenceFragmentationPanel.setMinimumSize(new Dimension(sequenceFragmentationPanel.getPreferredSize().width, sequenceFragmentationPanel.getHeight()));
                sequenceFragmentationPanel.setOpaque(true);
                sequenceFragmentationPanel.setBackground(Color.WHITE);
                secondarySpectrumPlotsJPanel.add(sequenceFragmentationPanel);
                // create the intensity histograms
                intensityHistogram = new IntensityHistogram(annotations, currentSpectrum, annotationParameters.getAnnotationIntensityLimit());
                secondarySpectrumPlotsJPanel.add(intensityHistogram);
                // create the miniature mass error plot
                massErrorPlot = new MassErrorPlot(annotations, currentSpectrum, specificAnnotationParameters.getFragmentIonAccuracy(), peptideShakerGUI.getIdentificationParameters().getSearchParameters().getFragmentAccuracyType() == SearchParameters.MassAccuracyType.PPM);
                if (massErrorPlot.getNumberOfDataPointsInPlot() > 0) {
                    secondarySpectrumPlotsJPanel.add(massErrorPlot);
                }
                // update the UI
                secondarySpectrumPlotsJPanel.revalidate();
                secondarySpectrumPlotsJPanel.repaint();
                // update the bubble plot
                updateBubblePlot();
                // disable the spectrum tab if more than two psms are selected
                spectrumJTabbedPane.setEnabledAt(2, psmTable.getSelectedRowCount() <= 2);
                peptideShakerGUI.enableSpectrumExport(psmTable.getSelectedRowCount() <= 2);
                // move to the bubble plot tab if more than two psms are selected and the spectrum tab was selected
                if (psmTable.getSelectedRowCount() > 2 && spectrumJTabbedPane.getSelectedIndex() == 2) {
                    spectrumJTabbedPane.setSelectedIndex(1);
                }
                if (psmTable.getSelectedRowCount() > 2) {
                    spectrumJTabbedPane.setToolTipTextAt(2, "Available for single or double spectrum selection only");
                } else {
                    spectrumJTabbedPane.setToolTipTextAt(2, null);
                }
                // update the panel border title
                updateSpectrumPanelBorderTitle(currentSpectrum);
                spectrumMainPanel.revalidate();
                spectrumMainPanel.repaint();
            }
        }
        this.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    } else {
        // nothing to display, empty previous results
        spectrumJPanel.removeAll();
        spectrumJPanel.revalidate();
        spectrumJPanel.repaint();
        secondarySpectrumPlotsJPanel.removeAll();
        secondarySpectrumPlotsJPanel.revalidate();
        secondarySpectrumPlotsJPanel.repaint();
        fragmentIonsJScrollPane.setViewportView(null);
        fragmentIonsJScrollPane.revalidate();
        fragmentIonsJScrollPane.repaint();
        bubbleJPanel.removeAll();
        bubbleJPanel.revalidate();
        bubbleJPanel.repaint();
        ((TitledBorder) spectrumMainPanel.getBorder()).setTitle(PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Spectrum & Fragment Ions" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING);
        spectrumMainPanel.repaint();
    }
}
Also used : MatchType(eu.isas.peptideshaker.gui.MatchValidationDialog.MatchType) PsPeptideFeature(com.compomics.util.io.export.features.peptideshaker.PsPeptideFeature) PsProteinFeature(com.compomics.util.io.export.features.peptideshaker.PsProteinFeature) NO_KEY(com.compomics.util.experiment.personalization.ExperimentObject.NO_KEY) IdentificationFeaturesGenerator(com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator) JSparklinesDataSeries(no.uib.jsparklines.data.JSparklinesDataSeries) FileAndFileFilter(com.compomics.util.gui.file_handling.FileAndFileFilter) BareBonesBrowserLaunch(com.compomics.util.examples.BareBonesBrowserLaunch) FileChooserUtil(com.compomics.util.gui.file_handling.FileChooserUtil) JTableHeader(javax.swing.table.JTableHeader) ProteinInferencePeptideLevelDialog(eu.isas.peptideshaker.gui.protein_inference.ProteinInferencePeptideLevelDialog) PeptideShakerGUI(eu.isas.peptideshaker.gui.PeptideShakerGUI) SpecificAnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters) SpectrumAnnotator(com.compomics.util.experiment.identification.spectrum_annotation.SpectrumAnnotator) MouseAdapter(java.awt.event.MouseAdapter) TitledBorder(javax.swing.border.TitledBorder) JSparklinesDataset(no.uib.jsparklines.data.JSparklinesDataset) SpectrumProvider(com.compomics.util.experiment.mass_spectrometry.SpectrumProvider) PeptideTableModel(eu.isas.peptideshaker.gui.tablemodels.PeptideTableModel) Variant(com.compomics.util.experiment.biology.variants.Variant) TableProperties(com.compomics.util.gui.TableProperties) SpectrumCountingMethod(com.compomics.util.experiment.quantification.spectrumcounting.SpectrumCountingMethod) ModificationParameters(com.compomics.util.parameters.identification.search.ModificationParameters) ProteinSequencePanelParent(eu.isas.peptideshaker.gui.protein_sequence.ProteinSequencePanelParent) PSModificationScores(com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores) Clipboard(java.awt.datatransfer.Clipboard) TableModelEvent(javax.swing.event.TableModelEvent) ExportScheme(com.compomics.util.io.export.ExportScheme) PeptideAssumption(com.compomics.util.experiment.identification.spectrum_assumptions.PeptideAssumption) DefaultTableModel(javax.swing.table.DefaultTableModel) TrueFalseIconRenderer(no.uib.jsparklines.extra.TrueFalseIconRenderer) SequenceMatchingParameters(com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters) PSExportFactory(eu.isas.peptideshaker.export.PSExportFactory) SelfUpdatingTableModel(com.compomics.util.gui.tablemodels.SelfUpdatingTableModel) Util(com.compomics.util.Util) KeyEvent(java.awt.event.KeyEvent) Collectors(java.util.stream.Collectors) FileNotFoundException(java.io.FileNotFoundException) SearchParameters(com.compomics.util.parameters.identification.search.SearchParameters) com.compomics.util.experiment.identification.matches(com.compomics.util.experiment.identification.matches) GuiUtilities(com.compomics.util.gui.GuiUtilities) DisplayParameters(eu.isas.peptideshaker.preferences.DisplayParameters) IdentificationParameters(com.compomics.util.parameters.identification.IdentificationParameters) ProteinSequencePanel(eu.isas.peptideshaker.gui.protein_sequence.ProteinSequencePanel) PSParameter(com.compomics.util.experiment.identification.peptide_shaker.PSParameter) CategoryPlot(org.jfree.chart.plot.CategoryPlot) ArrayUtil(com.compomics.util.ArrayUtil) Precursor(com.compomics.util.experiment.mass_spectrometry.spectra.Precursor) MatchValidationDialog(eu.isas.peptideshaker.gui.MatchValidationDialog) IntStream(java.util.stream.IntStream) java.util(java.util) SpectrumIdentificationAssumption(com.compomics.util.experiment.identification.SpectrumIdentificationAssumption) HelpDialog(com.compomics.util.gui.error_handlers.HelpDialog) ChromosomeTableCellRenderer(no.uib.jsparklines.extra.ChromosomeTableCellRenderer) PeptideUtils(com.compomics.util.experiment.identification.utils.PeptideUtils) NonSymmetricalNormalDistribution(com.compomics.util.math.statistics.distributions.NonSymmetricalNormalDistribution) PlotOrientation(org.jfree.chart.plot.PlotOrientation) TableModelListener(javax.swing.event.TableModelListener) XYPlottingDialog(com.compomics.util.gui.XYPlottingDialog) ModificationUtils(com.compomics.util.experiment.identification.utils.ModificationUtils) ProteinTableModel(eu.isas.peptideshaker.gui.tablemodels.ProteinTableModel) StringSelection(java.awt.datatransfer.StringSelection) PsmTableModel(eu.isas.peptideshaker.gui.tablemodels.PsmTableModel) Spectrum(com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum) ProteinInferenceDialog(eu.isas.peptideshaker.gui.protein_inference.ProteinInferenceDialog) MatchValidationLevel(com.compomics.util.experiment.identification.validation.MatchValidationLevel) BufferedWriter(java.io.BufferedWriter) FileWriter(java.io.FileWriter) DecimalFormat(java.text.DecimalFormat) SequenceProvider(com.compomics.util.experiment.io.biology.protein.SequenceProvider) ExportFeature(com.compomics.util.io.export.ExportFeature) Identification(com.compomics.util.experiment.identification.Identification) ResidueAnnotation(eu.isas.peptideshaker.gui.protein_sequence.ResidueAnnotation) Peptide(com.compomics.util.experiment.biology.proteins.Peptide) ExportGraphicsDialog(com.compomics.util.gui.export.graphics.ExportGraphicsDialog) PSMaps(eu.isas.peptideshaker.scoring.PSMaps) AnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.AnnotationParameters) MouseEvent(java.awt.event.MouseEvent) File(java.io.File) ChartChangeEvent(org.jfree.chart.event.ChartChangeEvent) PeptideSpectrumAnnotator(com.compomics.util.experiment.identification.spectrum_annotation.spectrum_annotators.PeptideSpectrumAnnotator) ExportFormat(com.compomics.util.io.export.ExportFormat) java.awt(java.awt) Charge(com.compomics.util.experiment.biology.ions.Charge) HtmlLinksRenderer(no.uib.jsparklines.extra.HtmlLinksRenderer) com.compomics.util.gui.spectrum(com.compomics.util.gui.spectrum) GeneDetailsDialog(com.compomics.util.gui.genes.GeneDetailsDialog) no.uib.jsparklines.renderers(no.uib.jsparklines.renderers) Range(org.jfree.data.Range) org.jfree.chart(org.jfree.chart) ChartChangeListener(org.jfree.chart.event.ChartChangeListener) ProgressDialogX(com.compomics.util.gui.waiting.waitinghandlers.ProgressDialogX) javax.swing(javax.swing) SpecificAnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters) AnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.AnnotationParameters) DisplayParameters(eu.isas.peptideshaker.preferences.DisplayParameters) SpecificAnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters) TitledBorder(javax.swing.border.TitledBorder) Precursor(com.compomics.util.experiment.mass_spectrometry.spectra.Precursor) Spectrum(com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum) SequenceProvider(com.compomics.util.experiment.io.biology.protein.SequenceProvider) SelfUpdatingTableModel(com.compomics.util.gui.tablemodels.SelfUpdatingTableModel) IdentificationParameters(com.compomics.util.parameters.identification.IdentificationParameters) Peptide(com.compomics.util.experiment.biology.proteins.Peptide) ModificationParameters(com.compomics.util.parameters.identification.search.ModificationParameters) SpectrumProvider(com.compomics.util.experiment.mass_spectrometry.SpectrumProvider) SequenceMatchingParameters(com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters) PeptideAssumption(com.compomics.util.experiment.identification.spectrum_assumptions.PeptideAssumption) java.awt(java.awt) PeptideSpectrumAnnotator(com.compomics.util.experiment.identification.spectrum_annotation.spectrum_annotators.PeptideSpectrumAnnotator)

Example 9 with SequenceMatchingParameters

use of com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters in project peptide-shaker by compomics.

the class OverviewPanel method getAnnotationsForAllSelectedSpectra.

/**
 * Returns an arraylist of the spectrum annotations for all the selected
 * PSMs.
 *
 * @return an arraylist of the spectrum annotations
 */
private ArrayList<IonMatch[]> getAnnotationsForAllSelectedSpectra() {
    ArrayList<IonMatch[]> allAnnotations = new ArrayList<>();
    int[] selectedRows = psmTable.getSelectedRows();
    IdentificationParameters identificationParameters = peptideShakerGUI.getIdentificationParameters();
    AnnotationParameters annotationParameters = identificationParameters.getAnnotationParameters();
    SpectrumProvider spectrumProvider = peptideShakerGUI.getSpectrumProvider();
    PeptideSpectrumAnnotator spectrumAnnotator = new PeptideSpectrumAnnotator();
    SequenceProvider sequenceProvider = peptideShakerGUI.getSequenceProvider();
    ModificationParameters modificationParameters = identificationParameters.getSearchParameters().getModificationParameters();
    SequenceMatchingParameters modificationSequenceMatchingParameters = identificationParameters.getModificationLocalizationParameters().getSequenceMatchingParameters();
    for (int row : selectedRows) {
        SelfUpdatingTableModel tableModel = (SelfUpdatingTableModel) psmTable.getModel();
        int psmIndex = tableModel.getViewIndex(row);
        long spectrumMatchKey = psmKeys[psmIndex];
        SpectrumMatch spectrumMatch = peptideShakerGUI.getIdentification().getSpectrumMatch(spectrumMatchKey);
        String spectrumFile = spectrumMatch.getSpectrumFile();
        String spectrumTitle = spectrumMatch.getSpectrumTitle();
        Spectrum currentSpectrum = spectrumProvider.getSpectrum(spectrumFile, spectrumTitle);
        if (currentSpectrum != null && peptideTable.getSelectedRow() != -1) {
            // get the spectrum annotations
            PeptideAssumption peptideAssumption = spectrumMatch.getBestPeptideAssumption();
            Peptide peptide = peptideAssumption.getPeptide();
            SpecificAnnotationParameters specificAnnotationParameters = peptideShakerGUI.getSpecificAnnotationParameters(spectrumFile, spectrumTitle, peptideAssumption);
            IonMatch[] annotations = spectrumAnnotator.getSpectrumAnnotation(annotationParameters, specificAnnotationParameters, spectrumFile, spectrumTitle, currentSpectrum, peptide, modificationParameters, sequenceProvider, modificationSequenceMatchingParameters);
            allAnnotations.add(annotations);
            currentSpectrumMatchKey = spectrumMatchKey;
        }
    }
    return allAnnotations;
}
Also used : SpecificAnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters) AnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.AnnotationParameters) ModificationParameters(com.compomics.util.parameters.identification.search.ModificationParameters) SpecificAnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters) Spectrum(com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum) SequenceProvider(com.compomics.util.experiment.io.biology.protein.SequenceProvider) SelfUpdatingTableModel(com.compomics.util.gui.tablemodels.SelfUpdatingTableModel) IdentificationParameters(com.compomics.util.parameters.identification.IdentificationParameters) SpectrumProvider(com.compomics.util.experiment.mass_spectrometry.SpectrumProvider) SequenceMatchingParameters(com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters) PeptideAssumption(com.compomics.util.experiment.identification.spectrum_assumptions.PeptideAssumption) Peptide(com.compomics.util.experiment.biology.proteins.Peptide) PeptideSpectrumAnnotator(com.compomics.util.experiment.identification.spectrum_annotation.spectrum_annotators.PeptideSpectrumAnnotator)

Example 10 with SequenceMatchingParameters

use of com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters in project peptide-shaker by compomics.

the class StirRunnable method scoreModificationLocalization.

/**
 * Scores the modification localization for the given peptide in the given
 * spectrum match. The scores are returned in a map: modification mass to
 * modification site to modification score.
 *
 * @param spectrumMatch The spectrum match.
 * @param peptideAssumption The peptide assumption.
 *
 * @return The modification localization scores in a map.
 */
private TreeMap<Double, HashMap<Integer, Double>> scoreModificationLocalization(SpectrumMatch spectrumMatch, PeptideAssumption peptideAssumption) {
    SearchParameters searchParameters = identificationParameters.getSearchParameters();
    AnnotationParameters annotationParameters = identificationParameters.getAnnotationParameters();
    SequenceMatchingParameters sequenceMatchingParameters = identificationParameters.getSequenceMatchingParameters();
    ModificationParameters modificationParameters = identificationParameters.getSearchParameters().getModificationParameters();
    ModificationLocalizationParameters modificationLocalizationParameters = identificationParameters.getModificationLocalizationParameters();
    SequenceMatchingParameters modificationSequenceMatchingParameters = modificationLocalizationParameters.getSequenceMatchingParameters();
    Peptide peptide = peptideAssumption.getPeptide();
    String spectrumFile = spectrumMatch.getSpectrumFile();
    String spectrumTitle = spectrumMatch.getSpectrumTitle();
    Spectrum spectrum = spectrumProvider.getSpectrum(spectrumFile, spectrumTitle);
    HashMap<Double, ArrayList<Modification>> modificationsMap = new HashMap<>(1);
    for (ModificationMatch modificationMatch : peptide.getVariableModifications()) {
        Modification refMod = modificationFactory.getModification(modificationMatch.getModification());
        double modMass = refMod.getMass();
        if (!modificationsMap.containsKey(modMass)) {
            ArrayList<Modification> modifications = modificationFactory.getSameMassNotFixedModifications(modMass, searchParameters).stream().map(modification -> modificationFactory.getModification(modification)).collect(Collectors.toCollection(ArrayList::new));
            modificationsMap.put(modMass, modifications);
        }
    }
    SpecificAnnotationParameters specificAnnotationParameters = annotationParameters.getSpecificAnnotationParameters(spectrumFile, spectrumTitle, peptideAssumption, modificationParameters, sequenceProvider, modificationSequenceMatchingParameters, peptideSpectrumAnnotator);
    return modificationsMap.entrySet().stream().collect(Collectors.toMap(entry -> entry.getKey(), entry -> PhosphoRS.getSequenceProbabilities(peptide, entry.getValue(), modificationParameters, spectrum, sequenceProvider, annotationParameters, specificAnnotationParameters, modificationLocalizationParameters.isProbabilisticScoreNeutralLosses(), sequenceMatchingParameters, modificationSequenceMatchingParameters, peptideSpectrumAnnotator), (a, b) -> a, TreeMap::new));
}
Also used : ModificationMatch(com.compomics.util.experiment.identification.matches.ModificationMatch) IntStream(java.util.stream.IntStream) PeptideVariantMatches(com.compomics.util.experiment.identification.matches.PeptideVariantMatches) ModificationFactory(com.compomics.util.experiment.biology.modifications.ModificationFactory) Arrays(java.util.Arrays) FastaMapper(com.compomics.util.experiment.identification.protein_inference.FastaMapper) IdfileReader(com.compomics.util.experiment.io.identification.IdfileReader) HashMap(java.util.HashMap) SpectrumMatch(com.compomics.util.experiment.identification.matches.SpectrumMatch) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Modification(com.compomics.util.experiment.biology.modifications.Modification) WaitingHandler(com.compomics.util.waiting.WaitingHandler) SpecificAnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters) Map(java.util.Map) SpectrumProvider(com.compomics.util.experiment.mass_spectrometry.SpectrumProvider) PhosphoRS(com.compomics.util.experiment.identification.modification.scores.PhosphoRS) Spectrum(com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum) ModificationParameters(com.compomics.util.parameters.identification.search.ModificationParameters) PeptideAssumption(com.compomics.util.experiment.identification.spectrum_assumptions.PeptideAssumption) SequenceMatchingParameters(com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters) SimpleMzIdentMLExporter(com.compomics.util.experiment.io.identification.writers.SimpleMzIdentMLExporter) SequenceProvider(com.compomics.util.experiment.io.biology.protein.SequenceProvider) Peptide(com.compomics.util.experiment.biology.proteins.Peptide) Collectors(java.util.stream.Collectors) AnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.AnnotationParameters) PeptideSpectrumAnnotator(com.compomics.util.experiment.identification.spectrum_annotation.spectrum_annotators.PeptideSpectrumAnnotator) SearchParameters(com.compomics.util.parameters.identification.search.SearchParameters) IdentificationParameters(com.compomics.util.parameters.identification.IdentificationParameters) PeptideProteinMapping(com.compomics.util.experiment.identification.protein_inference.PeptideProteinMapping) TreeMap(java.util.TreeMap) ModificationLocalizationMapper(com.compomics.util.experiment.identification.modification.mapping.ModificationLocalizationMapper) CliLogger(com.compomics.software.log.CliLogger) ModificationNameMapper(com.compomics.util.experiment.identification.modification.mapping.ModificationNameMapper) ModificationLocalizationParameters(com.compomics.util.parameters.identification.advanced.ModificationLocalizationParameters) ConcurrentLinkedQueue(java.util.concurrent.ConcurrentLinkedQueue) Modification(com.compomics.util.experiment.biology.modifications.Modification) ModificationMatch(com.compomics.util.experiment.identification.matches.ModificationMatch) HashMap(java.util.HashMap) SpecificAnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters) AnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.AnnotationParameters) ArrayList(java.util.ArrayList) ModificationParameters(com.compomics.util.parameters.identification.search.ModificationParameters) SpecificAnnotationParameters(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters) Spectrum(com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum) SearchParameters(com.compomics.util.parameters.identification.search.SearchParameters) ModificationLocalizationParameters(com.compomics.util.parameters.identification.advanced.ModificationLocalizationParameters) SequenceMatchingParameters(com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters) Peptide(com.compomics.util.experiment.biology.proteins.Peptide)

Aggregations

SequenceMatchingParameters (com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters)39 ModificationParameters (com.compomics.util.parameters.identification.search.ModificationParameters)29 Peptide (com.compomics.util.experiment.biology.proteins.Peptide)23 SequenceProvider (com.compomics.util.experiment.io.biology.protein.SequenceProvider)22 IdentificationParameters (com.compomics.util.parameters.identification.IdentificationParameters)21 ArrayList (java.util.ArrayList)21 PeptideAssumption (com.compomics.util.experiment.identification.spectrum_assumptions.PeptideAssumption)19 Spectrum (com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum)16 HashMap (java.util.HashMap)16 SpectrumMatch (com.compomics.util.experiment.identification.matches.SpectrumMatch)15 AnnotationParameters (com.compomics.util.experiment.identification.spectrum_annotation.AnnotationParameters)15 SpecificAnnotationParameters (com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters)15 SpectrumProvider (com.compomics.util.experiment.mass_spectrometry.SpectrumProvider)15 TreeMap (java.util.TreeMap)15 PSParameter (com.compomics.util.experiment.identification.peptide_shaker.PSParameter)14 PeptideSpectrumAnnotator (com.compomics.util.experiment.identification.spectrum_annotation.spectrum_annotators.PeptideSpectrumAnnotator)14 HashSet (java.util.HashSet)14 SearchParameters (com.compomics.util.parameters.identification.search.SearchParameters)10 WaitingHandler (com.compomics.util.waiting.WaitingHandler)10 ModificationFactory (com.compomics.util.experiment.biology.modifications.ModificationFactory)9