Changeset 4547
- Timestamp:
- Feb 28, 2014, 11:58:27 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contrib/SpectrumLibraryExport/src/satoshi/LibraryExportPlugin.java
r4546 r4547 358 358 outCoreFile2.setName(coreFilename2); 359 359 fileNameAssigned2 = true; 360 outCoreFile2.setMimeType("text/plain"); 360 361 /* 361 362 * Save core file item before getting uploadstream … … 590 591 List<String> requestSpectraSEQ = new ArrayList<String>(); 591 592 List<String> requestSpectraModification = new ArrayList<String>(); 593 List<String> requestSpectraProtein = new ArrayList<String>(); 592 594 List<Float> requestSpectraEXP = new ArrayList<Float>(); 593 595 List<List<String>> requestSpectraExternalID = new ArrayList<List<String>>(); … … 610 612 .contains(phit.getSpectrumStringId())) { 611 613 requestSpectraStringID.add(phit.getSpectrumStringId()); 614 String externalID = phit.getExternalId(); 612 615 String[] s1 = phit.getDescription().split(" ", 2); 613 616 if (s1.length == 2 && s1[1].contains(">")) … … 622 625 int pos = Integer.parseInt(s2.substring(s2.indexOf('@')+2,s2.indexOf('('))); 623 626 char newchar = s2.charAt(s2.indexOf('>')+1); 627 externalID += " " + s2.substring(s2.indexOf('>')-1,s2.indexOf('>')+2) + "@" + pos; 624 628 if (pos>0) --pos; 625 629 String newSeq = s1[0].substring(0,pos)+newchar+s1[0].substring(pos+1); … … 635 639 s1[1]=newString; 636 640 } 637 641 requestSpectraProtein.add(externalID); 638 642 requestSpectraSEQ.add(s1[0]); // sequence 639 643 if (s1.length == 2) { … … 1032 1036 // output2.write(" Pep=Tryptic"); 1033 1037 // output2.write(" Fullname= "); 1038 output2.write(" Protein=\""+requestSpectraProtein.get(i)+"\""); 1034 1039 if (mods == null) { 1035 1040 output2.write(" Mods=0 \n"); … … 1042 1047 // output2.write(" Mz_exact= "); 1043 1048 // output2.write(" Mz_az= "); 1044 // output2.write(" Protein= ");1049 1045 1050 // output2.write(" /gene= "); 1046 1051 // output2.write(" /function= "); … … 1089 1094 // print out masses and intensities 1090 1095 for (int l = 0; l < mzs.size(); l++) { 1091 output2.write(fourDecimals.format(mzs.get(l)) + "\t"1092 + ints.get(l) + "\t\"");1093 1096 List<Ion<PeptideFragment>> matchedIons = PeptideUtil.matchingIons(ions, mzs.get(l), mzTolerance); 1094 1097 if (!matchedIons.isEmpty())
Note: See TracChangeset
for help on using the changeset viewer.