Changeset 4352
- Timestamp:
- Sep 27, 2012, 10:23:17 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugin/src/org/proteios/plugins/TandemImportPlugin.java
r4277 r4352 238 238 { 239 239 ItemQuery<SpectrumSearch> ssQuery = SpectrumSearch.getQuery(); 240 ssQuery.restrict(Restrictions.eq(Hql.property("resultFile"), Hql241 .entity(resultsFile)));240 ssQuery.restrict(Restrictions.eq(Hql.property("resultFile"), 241 Hql.entity(resultsFile))); 242 242 DbControl dc = sc.newDbControl(); 243 243 ItemResultIterator<SpectrumSearch> iri = ssQuery.iterate(dc); … … 577 577 if ((line = inreader.readLine()) != null) 578 578 { 579 log 580 .info("TandemImport isImportable() File line3=" + line); 579 log.info("TandemImport isImportable() File line3=" + line); 581 580 ok = line.startsWith("<bioml"); 582 581 } … … 814 813 { 815 814 // Add other annotations to the SpectrumSearch. 816 log 817 .info("Add annotation:" + param_name + " value:" + buffer 818 .toString()); 815 log.info("Add annotation:" + param_name + " value:" + buffer 816 .toString()); 819 817 anna.addAnnotation(spectrumSearch, param_name, Type.STRING, 820 818 buffer.toString()); … … 848 846 private List<String> protein_uids = new ArrayList<String>(); 849 847 private String param_name; 850 private boolean inside_parameters = false;851 848 String inputSpectrumFileName = null; 852 849 … … 964 961 .getIndex("modified")) + "@" + attrs.getValue( 965 962 attrs.getIndex("type")).charAt(0) + "" + pos; 966 log 967 .debug("Sequence:" + current_peptide.getDescription() + " current_start:" + current_start + " pos:" + pos + " mod:" + modifiedAminoAcid); 963 log.debug("Sequence:" + current_peptide.getDescription() + " current_start:" + current_start + " pos:" + pos + " mod:" + modifiedAminoAcid); 968 964 current_peptide 969 965 .setDescription(current_peptide.getDescription() + " " + modifiedAminoAcid); … … 1015 1011 } 1016 1012 } 1017 else if (qName.equals("note") && !inside_parameters)1013 else if (qName.equals("note")) 1018 1014 { 1019 1015 if (param_name.equals("description") && !protein_exists) … … 1023 1019 current_protein.setDescription(tempname); 1024 1020 } 1025 if (param_name.equals("Description"))1021 else if (param_name.equals("Description")) 1026 1022 { 1027 1023 // Will equal MGF title if file is MGF … … 1038 1034 } 1039 1035 } 1040 } 1041 1042 else if (param_name.equals("scoring, algorithm") && !buffer 1043 .toString().equals("native")) 1044 { 1045 // Change name of score algorithm for all search results. 1046 for (AHit sr : protein_results) 1047 { 1048 sr.setScoreType(buffer.toString() + " protein score"); 1049 } 1050 for (AHit sr : peptide_results) 1051 { 1052 sr.setScoreType(buffer.toString() + " peptide score"); 1053 } 1054 } 1055 1036 else if (param_name.equals("scoring, algorithm") && !buffer 1037 .toString().equals("native")) 1038 { 1039 // Change name of score algorithm for all search results. 1040 for (AHit sr : protein_results) 1041 { 1042 sr.setScoreType(buffer.toString() + " protein score"); 1043 } 1044 for (AHit sr : peptide_results) 1045 { 1046 sr.setScoreType(buffer.toString() + " peptide score"); 1047 } 1048 } 1049 } 1056 1050 // End of file. 1057 1051 else if (qName.equals("bioml"))
Note: See TracChangeset
for help on using the changeset viewer.