Changeset 4274
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/action/hit/CreateProteinAssemblyJob.java
r4258 r4274 56 56 { 57 57 public static final VBoolean VFILEWISE = new VBoolean("isFileWise", false); 58 public static final VBoolean VREPLICATEWISE = new VBoolean("isReplicateWise", false); 58 59 public static final VBoolean VOCCAMS = new VBoolean("isOccamsRazor", false); 59 60 public static final VBoolean VUNIQUE = new VBoolean("isUnique", false); … … 106 107 if (isFileWise == null) 107 108 isFileWise = new Boolean(false); 109 Boolean isReplicateWise = getValidBoolean(VREPLICATEWISE); 110 if (isReplicateWise == null) 111 isReplicateWise = new Boolean(false); 108 112 Boolean isOccamsRazor = getValidBoolean(VOCCAMS); 109 113 if (isOccamsRazor == null) … … 164 168 job.setParameterValue("fileWise", new BooleanParameterType(), 165 169 isFileWise); 170 job.setParameterValue("replicateWise", new BooleanParameterType(), 171 isReplicateWise); 166 172 job.setParameterValue("occamsRazor", new BooleanParameterType(), 167 173 isOccamsRazor); -
trunk/client/servlet/src/org/proteios/action/hit/ProteinAssembly1.java
r4258 r4274 80 80 isProteinCB.setLabel("FileWise"); 81 81 isProteinCB.setValue("true"); 82 isProteinCB.setHelp("Per peaklist file report");82 isProteinCB.setHelp("Per peaklist file protein grouping"); 83 83 properties.add(isProteinCB); 84 Checkbox<VBoolean> isReplicateCB = new Checkbox<VBoolean>( 85 CreateProteinAssemblyJob.VREPLICATEWISE); 86 isReplicateCB.setLabel("ReplicateWise"); 87 isReplicateCB.setValue("true"); 88 isReplicateCB.setHelp("Per replicate protein grouping"); 89 properties.add(isReplicateCB); 84 90 Checkbox<VBoolean> isOccamCB = new Checkbox<VBoolean>( 85 91 CreateProteinAssemblyJob.VOCCAMS); … … 186 192 instruction += " If the search results combination has been performed, the peptide combined FDR can be used as cutoff, otherwise max E-value can be used."; 187 193 instruction += " The report can be filtered based on protein FDR if decoy peptides are present (search in target-decoy database and decoys kept in combined hits report are the requirements)."; 188 instruction += " Select whether to find proteins globally or per file or per sample. Also select whether peptide sequences should be counted once per unique";194 instruction += " Select whether to assemble proteins globally per sample, or per replicate or per file. Also select whether peptide sequences should be counted once per unique"; 189 195 instruction += " Set the minimum nuber of peptides to the required number of significant peptides per protein."; 190 196 instruction += " sequence. If the generate proteins checkbox is checked, new hits will be generated with score type Proteios Protein."; -
trunk/plugin/src/org/proteios/plugins/ProteiosProteinAssembly.java
r4267 r4274 113 113 private boolean quantifyUsingUnique = false; 114 114 private boolean peptideReport = false; 115 private boolean separateReplicates = false; 115 116 private Integer minPep = 1; 116 117 private int refIdx = 0; … … 181 182 "Protein Assembly from Peptides", 182 183 "Generate protein entries for Hits which pass a certain score limit. The Proteins are added to the hits report", 183 "1. 9", "2008-2011, Fredrik Levander", null, null,184 "1.10", "2008-2012, Fredrik Levander", null, null, 184 185 "http://www.proteios.org "); 185 186 } … … 225 226 .booleanValue(); 226 227 fileWise = ((Boolean) job.getValue("fileWise")).booleanValue(); 228 separateReplicates = ((Boolean) job.getValue("replicateWise")) 229 .booleanValue(); 227 230 fdr = ((Boolean) job.getValue("fdr")).booleanValue(); 228 231 uniqueSequences = ((Boolean) job.getValue("unique")) … … 525 528 Integer currentSpotId = null; 526 529 String currentLocalSampleId = null; 530 String currentReplicateId = null; 527 531 // First group peptides, if protein combination is not supposed to 528 532 // be … … 541 545 addFraction(peptideFraction, peptideFractions, 542 546 currentSpotId, currentLocalSampleId, 543 current PeakListFile, currentHit);547 currentReplicateId, currentPeakListFile, currentHit); 544 548 peptideFraction = new ArrayList<Hit>(); 545 549 } … … 547 551 currentPeakListFile = currentHit.getPeakListFile(); 548 552 currentLocalSampleId = currentHit.getLocalSampleId(); 553 currentReplicateId = currentHit.getReplicateId(); 549 554 peptideFraction.add(currentHit); 550 555 if (!hitit.hasNext()) … … 552 557 addFraction(peptideFraction, peptideFractions, 553 558 currentSpotId, currentLocalSampleId, 554 current PeakListFile, currentHit);559 currentReplicateId, currentPeakListFile, currentHit); 555 560 } 556 561 } … … 672 677 .getLocalSampleId() + "\n"); 673 678 } 679 if (separateReplicates && proteinHits.size() > 0) 680 { 681 output.write("Replicate id:" + proteinHits.get(0).hit 682 .getReplicateId() + "\n"); 683 } 674 684 if (fileWise && proteinHits.size() > 0) 675 685 { … … 747 757 output.write("Spot ID\t"); 748 758 } 749 else if (localSampleId == null)759 else if (localSampleId != null) 750 760 { 751 761 output.write("Sample\t"); 762 if (separateReplicates) 763 { 764 output.write("Replicate\t"); 765 } 752 766 } 753 767 output … … 762 776 } 763 777 } 764 if (localSampleId != null && localSampleId.equals("all")) 765 { 766 output.write("\tSample"); 778 if (localSampleId != null) 779 { 780 if (localSampleId.equals("all")) 781 output.write("\tSample"); 782 if (separateReplicates) 783 { 784 output.write("\tReplicate"); 785 } 767 786 } 768 787 output.write("\tLocal FDR\tTotal Intensity\n"); … … 781 800 output.write("" + p.getSpotId() + "\t"); 782 801 } 783 else if (localSampleId == null)802 else if (localSampleId != null) 784 803 { 785 804 output.write("" + p.getLocalSampleId() + "\t"); 805 if (separateReplicates) 806 { 807 output 808 .write("" + p.getReplicateId() + "\t"); 809 } 786 810 } 787 811 output.write("" + p.getMatchedPeaks()); … … 865 889 } 866 890 } 867 if (localSampleId != null && localSampleId 868 .equals("all")) 891 if (localSampleId != null) 869 892 { 870 output.write("\t" + p.getLocalSampleId()); 893 if (localSampleId.equals("all")) 894 { 895 output.write("\t" + p 896 .getLocalSampleId()); 897 } 898 if (separateReplicates) 899 output.write("\t" + p.getReplicateId()); 871 900 } 872 901 output … … 957 986 private void addFraction(List<Hit> peptideFraction, 958 987 List<List<Hit>> peptideFractions, Integer currentSpotId, 959 String currentLocalSampleId, File currentPeakListFile,960 Hit currentHit)988 String currentLocalSampleId, String currentReplicateId, 989 File currentPeakListFile, Hit currentHit) 961 990 { 962 991 if (label_index > 0) … … 993 1022 } 994 1023 /* 995 * Start to collect new fraction if at new sample 1024 * Start to collect new fraction if at new sample or new replicate 996 1025 */ 997 if (localSampleId != null && localSampleId.equals("all") && (!currentLocalSampleId 998 .equals(currentHit.getLocalSampleId()))) 999 { 1000 peptideFractions.add(new ArrayList<Hit>()); 1026 if (localSampleId != null) 1027 { 1028 if (localSampleId.equals("all") && (!currentLocalSampleId 1029 .equals(currentHit.getLocalSampleId()))) 1030 { 1031 peptideFractions.add(new ArrayList<Hit>()); 1032 } 1033 else if (separateReplicates && currentReplicateId != null && (!currentReplicateId 1034 .equals(currentHit.getReplicateId()))) 1035 { 1036 peptideFractions.add(new ArrayList<Hit>()); 1037 } 1001 1038 } 1002 1039 … … 1371 1408 newHit.setMatchedPeaks(1); 1372 1409 newHit.setLocalSampleId(currentHit.getLocalSampleId()); 1410 newHit.setReplicateId(currentHit.getReplicateId()); 1373 1411 // Set this to keep link to search settings 1374 1412 newHit.setIdentificationResultFile(currentHit
Note: See TracChangeset
for help on using the changeset viewer.