Changeset 3913
- Timestamp:
- Oct 21, 2010, 3:49:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugin/src/org/proteios/plugins/ProteiosProteinAssembly.java
r3912 r3913 1111 1111 .debug("Trying to add sequence:" + peptide.getDescription() + " to protein " + prot 1112 1112 .getExternalId()); 1113 double pep_tot_int = peptide.getTotalIntensity() == null ? 0 : peptide.getTotalIntensity(); 1113 1114 List<String> sequences = protein.sequences; 1114 1115 if (sequences.contains(peptide.getDescription()) && uniqueSequences) … … 1121 1122 if (fdr) 1122 1123 currentScore = peptide.getCombinedFDR(); 1123 if ((score >= currentScore) && tot_int <= peptide 1124 .getTotalIntensity()) 1124 if ((score >= currentScore) && tot_int <= pep_tot_int) 1125 1125 { 1126 1126 // replace … … 1138 1138 } 1139 1139 protein.peptides.add(peptide); 1140 protein.totalIntensities.add(pep tide.getTotalIntensity());1140 protein.totalIntensities.add(pep_tot_int); 1141 1141 protein.spectrumStringIds.add(peptide.getSpectrumStringId()); 1142 1142 protein.spectrumFileIds.add(peptide.getPeakListFile().getId()); … … 1159 1159 protein.peptides.add(peptide); 1160 1160 protein.sequences.add(peptide.getDescription()); 1161 protein.totalIntensities.add(pep tide.getTotalIntensity());1161 protein.totalIntensities.add(pep_tot_int); 1162 1162 protein.spectrumStringIds.add(peptide.getSpectrumStringId()); 1163 1163 protein.spectrumFileIds.add(peptide.getPeakListFile().getId()); … … 1176 1176 protein.scores.add(peptide.getExpectationValue()); 1177 1177 } 1178 if (prot.getTotalIntensity() != null && peptide.getTotalIntensity() != null) 1179 { 1180 prot.setTotalIntensity(prot.getTotalIntensity() + peptide 1181 .getTotalIntensity()); 1178 if (prot.getTotalIntensity() != null) 1179 { 1180 prot.setTotalIntensity(prot.getTotalIntensity() + pep_tot_int); 1182 1181 } 1183 1182 log.debug("Added sequence to protein");
Note: See TracChangeset
for help on using the changeset viewer.