Examples of PtmScorer


Examples of eu.isas.peptideshaker.ptm.PtmScorer

    public void updateMainMatch(String mainMatch, int proteinInferenceType) {
        try {
            PSMaps psMaps = new PSMaps();
            psMaps = (PSMaps) getIdentification().getUrParam(psMaps);
            PsmPTMMap psmPTMMap = psMaps.getPsmPTMMap();
            PtmScorer ptmScorer = new PtmScorer(psmPTMMap);
            Identification identification = getIdentification();
            ProteinMatch proteinMatch = identification.getProteinMatch(selectedProteinKey);
            ptmScorer.scorePTMs(identification, proteinMatch, getSearchParameters(), getAnnotationPreferences(), false, getPtmScoringPreferences(), getSequenceMatchingPreferences());
        } catch (Exception e) {
            catchException(e);
        }

        overviewPanel.updateProteinTable();
View Full Code Here

Examples of eu.isas.peptideshaker.ptm.PtmScorer

                // update protein level PTM scoring
                ArrayList<String> proteins = peptideMatch.getTheoreticPeptide().getParentProteins(peptideShakerGUI.getSequenceMatchingPreferences());
                PSMaps psMaps = new PSMaps();
                psMaps = (PSMaps) identification.getUrParam(psMaps);
                PsmPTMMap psmPTMMap = psMaps.getPsmPTMMap();
                PtmScorer ptmScorer = new PtmScorer(psmPTMMap);

                for (String proteinKey : peptideShakerGUI.getIdentification().getProteinIdentification()) {
                    boolean candidate = false;
                    for (String protein : proteins) {
                        if (proteinKey.contains(protein)) {
                            candidate = true;
                        }
                    }
                    if (candidate) {
                        ProteinMatch proteinMatch = peptideShakerGUI.getIdentification().getProteinMatch(proteinKey);
                        if (proteins.contains(proteinMatch.getMainMatch())) {
                            try {
                                ptmScorer.scorePTMs(identification, proteinMatch, peptideShakerGUI.getSearchParameters(), peptideShakerGUI.getAnnotationPreferences(), false, peptideShakerGUI.getPtmScoringPreferences(), peptideShakerGUI.getSequenceMatchingPreferences());
                            } catch (Exception e) {
                                peptideShakerGUI.catchException(e);
                            }
                        }
                    }
View Full Code Here

Examples of eu.isas.peptideshaker.ptm.PtmScorer

        PsmSpecificMap psmMap = new PsmSpecificMap();
        PeptideSpecificMap peptideMap = new PeptideSpecificMap();
        ProteinMap proteinMap = new ProteinMap();
        matchesValidator = new MatchesValidator(psmMap, peptideMap, proteinMap);
        PsmPTMMap psmPTMMap = new PsmPTMMap();
        ptmScorer = new PtmScorer(psmPTMMap);
    }
View Full Code Here

Examples of eu.isas.peptideshaker.ptm.PtmScorer

    public PeptideShaker(MsExperiment experiment, Sample sample, int replicateNumber, PSMaps psMaps) {
        this.experiment = experiment;
        this.sample = sample;
        this.replicateNumber = replicateNumber;
        matchesValidator = new MatchesValidator(psMaps.getPsmSpecificMap(), psMaps.getPeptideSpecificMap(), psMaps.getProteinMap());
        ptmScorer = new PtmScorer(psMaps.getPsmPTMMap());
    }
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.