Changeset 863
- Timestamp:
- Dec 2, 2008, 11:24:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/base1/se.lu.thep.wenni/trunk/base/base2/WeNNI.java
r858 r863 26 26 import net.sf.basedb.plugins.AbstractRunBinaryPlugin; 27 27 28 import net.sf.basedb.core.DbControl; 29 import net.sf.basedb.core.Experiment; 28 import net.sf.basedb.core.DbControl; // Jari, remove this? 29 import net.sf.basedb.core.Experiment; // Jari, remove this? 30 import net.sf.basedb.core.Item; 31 import net.sf.basedb.core.Permission; 30 32 import net.sf.basedb.core.ProgressReporter; 31 import net.sf.basedb.core.RawBioAssay; 33 import net.sf.basedb.core.RawBioAssay; // Jari, remove this? 32 34 33 35 import net.sf.basedb.core.plugin.AboutImpl; 36 import net.sf.basedb.core.plugin.Permissions; 34 37 import net.sf.basedb.core.plugin.Plugin; 35 38 36 39 import java.io.IOException; 37 40 41 import java.util.EnumSet; 38 42 import java.util.List; 39 43 … … 57 61 58 62 public WeNNI() { 59 // set about information 63 60 64 about = new AboutImpl 61 ( "WeNNI plug-in", "An Unreliable expression value of a gene is " +65 ( "WeNNI", "An Unreliable expression value of a gene is " + 62 66 "imputed as the average expression in the most similar genes.\n" + 63 67 "\nThe method is published in \"Improving missing value imputation " + … … 69 73 null, null, 70 74 "http://baseplugins.thep.lu.se/wiki/se.lu.thep.WeNNI" ); 75 76 defaultChildName = "WeNNI imputed bioassayset"; 77 78 // Permisssions to request 79 permissions.add(new Permissions(Item.EXPERIMENT, null, 80 EnumSet.of(Permission.USE))); 81 permissions.add(new Permissions(Item.JOB, null, 82 EnumSet.of(Permission.READ))); 83 71 84 // set the type of the plug-in 72 85 plugin_maintype=Plugin.MainType.ANALYZE; 73 86 } 74 87 88 /** 89 List of background correction methods. 90 91 Note, changing the string in the list will affect the behaviour 92 of the plug-in and most certaintly unexpected results will be 93 generated. As an example, changing 'Illumina BeadStudio median' 94 will break the median method. 95 96 private static final 97 PluginParameter<String> methodParameter = new PluginParameter<String> 98 ( "method", 99 "Correction method", 100 "These methods are implemented:\n\n" + 101 "Illumina BeadStudio inspired mean 'negative control'\n" + 102 "Illumina BeadStudio inspired median 'negative control'", 103 new StringParameterType(255, "Illumina BeadStudio median", true, 1, 0, 0, 104 Arrays.asList( 105 new String[] { "Illumina BeadStudio mean" , 106 "Illumina BeadStudio median" } 107 ) 108 ) 109 ); 110 */ 75 111 76 112 protected void runBinary(List<RawBioAssay> sources, … … 78 114 throws InterruptedException, IOException 79 115 { 116 String[] cmd = { getBinaryPath(this.getClass(),"nni") , "--help" }; 117 execute(cmd,progress); 80 118 } 81 119
Note: See TracChangeset
for help on using the changeset viewer.