Changeset 4089
- Timestamp:
- Dec 22, 2010, 12:34:38 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/locale/en/dictionary
r4082 r4089 425 425 MsInspect=msInspect 426 426 MsInspectFeatureDetection=msInspect Feature Detection 427 MsInspectStrategySelect=Strategy 427 428 MwInDaltons=Molecular weight (Da) 428 429 MyFiles=My Files -
trunk/client/servlet/src/org/proteios/action/file/UseSpectrumFileForMsInspectSearchExtension.java
r4082 r4089 36 36 import org.proteios.gui.form.Form; 37 37 import org.proteios.gui.form.FormFactory; 38 import org.proteios.gui.form.Option; 39 import org.proteios.gui.form.Select; 38 40 import org.proteios.gui.layout.RowLayout; 39 41 40 42 import se.lu.thep.waf.ActionException; 41 43 import se.lu.thep.waf.constraints.InvalidParameterValue; 44 import se.lu.thep.waf.constraints.VString; 42 45 43 46 import java.util.ArrayList; … … 129 132 Fieldset fs = new Fieldset("MsInspect"); 130 133 form.addFieldset(fs); 134 // Select box variables 135 VString validStringParam = null; 136 List<Option> optionList = null; 137 String selected = null; 138 // Add strategy menu 139 validStringParam = RunMsInspect.VMSINSPECTSTRATEGY; 140 optionList = new ArrayList<Option>(); 141 optionList.add(new Option("", "default")); 142 optionList.add(new Option("BaseFeatureStrategy", "BaseFeatureStrategy")); 143 optionList.add(new Option("BaseFeatureStrategyModular", "BaseFeatureStrategyModular")); 144 optionList.add(new Option("FeatureStrategy", "FeatureStrategy")); 145 optionList.add(new Option("FeatureStrategyPeakClusters", "FeatureStrategyPeakClusters")); 146 optionList.add(new Option("FeatureStrategyPeakClustersNegCharge", "FeatureStrategyPeakClustersNegCharge")); 147 optionList.add(new Option("FeatureStrategySmallMolecule", "FeatureStrategySmallMolecule")); 148 optionList.add(new Option("FeatureStrategySmallMoleculeNeg", "FeatureStrategySmallMoleculeNeg")); 149 optionList.add(new Option("FeatureStrategyWindow", "FeatureStrategyWindow")); 150 selected = new String(""); 151 Select<VString> strategySelectBox = new Select<VString>(validStringParam, optionList); 152 strategySelectBox.selectOption(selected); 153 strategySelectBox.setLabel("MsInspectStrategySelect"); 154 strategySelectBox.setHelp("Note: The installed version of msInspect might not support all strategy options"); 155 fs.add(strategySelectBox); 131 156 /* 132 157 * Add the tool bar with 'Next' button(s) to the form. -
trunk/client/servlet/src/org/proteios/action/msInspect/RunMsInspect.java
r4082 r4089 53 53 import se.lu.thep.waf.constraints.VBoolean; 54 54 import se.lu.thep.waf.constraints.VInteger; 55 import se.lu.thep.waf.constraints.VString; 55 56 56 57 … … 66 67 public static final VBoolean VMSINSPECTUSEWEBINTERFACEFLAG = new VBoolean( 67 68 "active.msinspectusewebinterfaceflag", false); 69 public static final VString VMSINSPECTSTRATEGY = new VString( 70 "active.msinspectstrategy", 0, 255, false); 68 71 69 72 @Override … … 118 121 log.debug("tmpDir = \"" + tmpDir + "\""); 119 122 log.debug("uploadOutputFileFlag = " + uploadOutputFileFlag); 123 // Get the msInspect parameters to use for the feature detection 124 String strategy = getValidString(VMSINSPECTSTRATEGY); 125 log.debug("strategy = \"" + strategy + "\""); 120 126 /*********************************************************************** 121 127 * Get MsInspect feature detection plugin definition … … 203 209 Project.class, null); 204 210 job.setParameterValue("project", projectParam, activeProject); 211 // 212 StringParameterType strategyParam = new StringParameterType(); 213 job.setParameterValue("strategy", strategyParam, strategy); 205 214 // 206 215 dc.saveItem(job); -
trunk/plugin/src/org/proteios/plugins/RunMsInspectPlugin.java
r4088 r4089 329 329 Boolean uploadOutputFileFlag; 330 330 String timeStampStr; 331 String strategy; 331 332 332 333 msInspectInstallPath = (String) job.getValue("msInspectInstallPath"); … … 338 339 uploadOutputFileFlag = (Boolean) job.getValue("uploadOutputFileFlag"); 339 340 timeStampStr = (String) job.getValue("timeStampStr"); 341 strategy = (String) job.getValue("strategy"); 340 342 341 343 // Perform msInspect feature detection using local search engine 342 344 msInspectSearchLocal(request, response, progress, tmpDir, 343 345 msInspectInstallPath, msInspectProgramName, msInspectMemoryInMegaBytes, 344 spectrumFileId, dirId, uploadOutputFileFlag, timeStampStr );346 spectrumFileId, dirId, uploadOutputFileFlag, timeStampStr, strategy); 345 347 done(); 346 348 } … … 384 386 * @param uploadOutputFileFlag Boolean The upload output file flag 385 387 * @param timeStampStr String Time stamp string in YYYY_MM_DD_hh_mm_ss format 388 * @param strategy String Strategy algorithm option for the feature detection 386 389 */ 387 390 private void msInspectSearchLocal(Request request, Response response, … … 389 392 String msInspectInstallPath, String msInspectProgramName, Integer msInspectMemoryInMegaBytes, 390 393 Integer spectrumFileId, Integer dirId, 391 Boolean uploadOutputFileFlag, String timeStampStr )394 Boolean uploadOutputFileFlag, String timeStampStr, String strategy) 392 395 { 393 396 log.debug("msInspectInstallPath = \"" + msInspectInstallPath + "\""); … … 399 402 log.debug("uploadOutputFileFlag = " + uploadOutputFileFlag); 400 403 log.debug("timeStampStr = \"" + timeStampStr + "\""); 404 log.debug("strategy = \"" + strategy + "\""); 401 405 // Create msInspect program path 402 406 String delimiter = "/"; … … 485 489 cmdList.add(msInspectProgramPath); 486 490 cmdList.add("--findpeptides"); 491 if (strategy != null && !strategy.equals("")) 492 { 493 // Add strategy algorithm option 494 String strategyOption = new String("--strategy=" + strategy); 495 cmdList.add(strategyOption); 496 } 487 497 cmdList.add("--outdir=" + msInspectOutputDirPath); 488 498 cmdList.add(spectrumFileTmp.getPath());
Note: See TracChangeset
for help on using the changeset viewer.