Changeset 665
- Timestamp:
- Apr 17, 2008, 12:46:13 AM (15 years ago)
- Location:
- plugins/base1/se.lu.thep.wenni/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/base1/se.lu.thep.wenni/trunk/INSTALL
r593 r665 5 5 Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson 6 6 Copyright (C) 2007 Peter Johansson 7 Copyright (C) 2008 Jari Häkkinen 7 8 8 9 This file is part of WeNNI, … … 34 35 stand-alone. The base2 mode is default and the mode you should use if 35 36 you plan on running WeNNI as plugin to BASE2. The base1 mode is the 36 old (classic) mode similar WeNNI 0.6 (or earlier). This is the mode37 old (classic) mode similar to WeNNI 0.6 (or earlier). This is the mode 37 38 you should use if you plan on using WeNNI as a plugin to BASE1. The 38 39 stand-alone mode is intended for you who want to use the WeNNI … … 68 69 installed in `<DIR>/se/lu/thep/wenni/`. Default `DIR` is set to 69 70 `path/to/base/www/plugins/`. You may use `with-gsl=DIR` to provide 70 •information on GSL location. The option `enable-debug` turns on debug71 information on GSL location. The option `enable-debug` turns on debug 71 72 options on the compilation of binary `nni` (e.g. enables assertions). 72 73 … … 246 247 above. If you prefer to make the change in the file you should 247 248 manipulate the line looking like 249 248 250 'execName thep.lu.se/jari/wenni/wenni.pl' 249 251 252 If you want use other than the default fields for intensity1, 253 intensity2, BCh1SD, and BCh2SD, you need to indicate this in the 254 WeNNIParams section of the plug-in definition file. Change the 5th 255 column of parameters 4 through 7 appropriately, i.e., if the 256 standard deviation is defined in another column than the default 257 change lines 6 and 7: 258 259 6 h BCh1SD 30 _xc_BCh1SD 0 260 7 h BCh2SD 30 _xc_BCh2SD 0 261 250 262 251 263 viii) Now you should go to the README file. -
plugins/base1/se.lu.thep.wenni/trunk/README
r352 r665 5 5 Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson 6 6 Copyright (C) 2007 Peter Johansson 7 Copyright (C) 2008 Jari Häkkinen 7 8 8 9 This file is part of WeNNI, … … 26 27 ---------------------------------------------------------------------- 27 28 28 This directory contains the 0.7 release of WeNNI.29 This directory contains the future 0.7 release of WeNNI. 29 30 30 31 Send comments, suggestion, complaints, or questions about this … … 293 294 Command syntax: 294 295 295 wenni.pl --option value < basefile_in.data > basefile_out.dat 296 wenni.pl --option value < basefile_in.data > basefile_out.data 296 297 297 298 wenni.pl will read options from basefile_in.data, but the settings -
plugins/base1/se.lu.thep.wenni/trunk/base/base1/base_plugin_script/plugin_WeNNI.base.in
r340 r665 22 22 2 f beta Beta 30 0.6 0 23 23 3 i neighbours Neighbours 30 4 0 24 4 h intensity1 30 intensity1 0 25 5 h intensity2 30 intensity2 0 26 6 h BCh1SD 30 BCh1SD 0 27 7 h BCh2SD 30 BCh2SD 0 24 28 -
plugins/base1/se.lu.thep.wenni/trunk/base/base1/base_plugin_script/wenni.pl
r115 r665 29 29 sub basefile_options($$); 30 30 sub BaseFileConverter($); 31 sub cleanup($ );31 sub cleanup($$); 32 32 sub cmdline_options($); 33 33 sub nni($); 34 sub NNIFileConverter($ $);34 sub NNIFileConverter($); 35 35 sub result($$); 36 36 … … 49 49 # determine beta and number of neighbours. Presedence order is (low to 50 50 # high priority): default value, basefile value, command line value. 51 my %option=( beta => 0.6, datatype => "derived", 52 neighbours => 4, nodelete => 0 ); 51 my %option=( 52 beta => 0.6, 53 datatype => "derived", 54 intensity1 => "intensity1", 55 intensity2 => "intensity2", 56 neighbours => 4, 57 nodelete => 0, 58 BCh1SD => "BCh1SD", 59 BCh2SD => "BCh2SD" 60 ); 53 61 basefile_options(\%option,$basefile); 54 62 foreach my $key (keys %cmdline_option) { … … 59 67 } 60 68 61 BaseFileConverter( $option{'datatype'});62 NNIFileConverter( $option{'beta'},$option{'datatype'});69 BaseFileConverter(\%option); 70 NNIFileConverter(\%option); 63 71 nni($option{'neighbours'}); 64 result($basefile, $option{'datatype'});72 result($basefile,\%option); 65 73 if (!$option{'nodelete'}) { 66 cleanup($basefile );74 cleanup($basefile,\%option); 67 75 } 68 76 … … 92 100 93 101 sub BaseFileConverter($) { 94 my $ datatype=$_[0];102 my $option=$_[0]; 95 103 my $command="$FindBin::Bin/BaseFileConverter"; 96 104 $command.=" BASEfile.data"; 97 105 $command.=" wenni_"; 98 if ($ datatypeeq "derived") {99 $command.=" -assayFields intensity1";100 $command.=" -assayFields intensity2";106 if ($option{"datatype"} eq "derived") { 107 $command.=" -assayFields $$option{intensity1}"; 108 $command.=" -assayFields $$option{intensity2}"; 101 109 } 102 110 else { … … 106 114 $command.=" -assayFields BCh2Mean"; 107 115 } 108 $command.=" -assayFields BCh1SD";109 $command.=" -assayFields BCh2SD";116 $command.=" -assayFields $$option{BCh1SD}"; 117 $command.=" -assayFields $$option{BCh2SD}"; 110 118 return system("$command"); 111 119 } 112 120 113 sub cleanup($ ) {121 sub cleanup($$) { 114 122 my $basefile=$_[0]; 123 my $option=$_[1]; 115 124 unlink($basefile); 116 125 unlink("wenni_BCh1Mean.data"); 117 unlink("wenni_ BCh1SD.data");126 unlink("wenni_$$option{BCh1SD}.data"); 118 127 unlink("wenni_BCh2Mean.data"); 119 unlink("wenni_ BCh2SD.data");128 unlink("wenni_$$option{BCh2SD}.data"); 120 129 unlink("wenni_FCh1Mean.data"); 121 130 unlink("wenni_FCh2Mean.data"); 122 131 unlink("wenni_imputed.data"); 123 unlink("wenni_ intensity1.data");124 unlink("wenni_ intensity2.data");132 unlink("wenni_$$option{intensity1}.data"); 133 unlink("wenni_$$option{intensity2}.data"); 125 134 unlink("wenni_logratio.data"); 126 135 unlink("wenni_weight.data"); … … 187 196 } 188 197 189 sub NNIFileConverter($$) { 190 my $beta=$_[0]; 191 my $datatype=$_[1]; 198 sub NNIFileConverter($) { 199 my $option=$_[0]; 192 200 my $command="$FindBin::Bin/NNIFileConverter"; 193 $command.=" -beta $ beta";194 if ($ datatypeeq "derived") {195 $command.=" -fg1 wenni_ intensity1.data";196 $command.=" -fg2 wenni_ intensity2.data";201 $command.=" -beta $$option{'beta'}"; 202 if ($$option{'datatype'} eq "derived") { 203 $command.=" -fg1 wenni_$$option{intensity1}.data"; 204 $command.=" -fg2 wenni_$$option{intensity2}.data"; 197 205 $command.=" -datatype derived"; 198 206 } … … 204 212 $command.=" -datatype raw"; 205 213 } 206 $command.=" -bgstd1 wenni_ BCh1SD.data";207 $command.=" -bgstd2 wenni_ BCh2SD.data";214 $command.=" -bgstd1 wenni_$$option{BCh1SD}.data"; 215 $command.=" -bgstd2 wenni_$$option{BCh2SD}.data"; 208 216 $command.=" -logratio wenni_logratio.data"; 209 217 $command.=" -weight wenni_weight.data"; … … 213 221 sub result($$) { 214 222 my $basefile=$_[0]; 215 my $datatype=$_[1]; 223 my $option=$_[1]; 224 my $datatype=$$option{'datatype'}; 216 225 print "BASEfile\n"; 217 226 print "section\tspots\n"; … … 255 264 } 256 265 else { 257 open(F1FILE,"<wenni_ intensity1.data");258 open(F2FILE,"<wenni_ intensity2.data");266 open(F1FILE,"<wenni_$$option{intensity1}.data"); 267 open(F2FILE,"<wenni_$$option{intensity2}.data"); 259 268 } 260 269 while (<IMPUTEFILE>) {
Note: See TracChangeset
for help on using the changeset viewer.