Changeset 828
- Timestamp:
- Nov 27, 2008, 9:30:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/base1/se.lu.thep.wenni/trunk/README
r825 r828 50 50 = Installation = 51 51 52 For installation and compilation instructions please read INSTALL.52 For installation and compilation instructions please read `INSTALL`. 53 53 54 54 55 55 = Comments on WeNNI = 56 56 57 0) WeNNI is presented in the article referenced above. 58 59 1) The notion of weights becomes obsolete after running WeNNI, i.e., do 60 not use the weight fed into WeNNI in any subsequent analysis 61 because all weights are now strictly 1. 62 63 2) Running WeNNI as a BASE plug-in makes WeNNI destined to impute log 64 ratios of channel 1 and channel 2 (M values in BASE world). A 65 consequence of imputing log ratios is that a change in ratio cannot 66 be assigned to a specific channel. This implies that 67 log(channel1*channel2) (A values in BASE world) become undefined 68 and useless. However, on request from BASE users it was decided 69 that A values should not be affected by the transformation in cases 70 where the A value is well defined before imputation. In cases when 71 an A value do not exist before transformation (i.e. channel1<=0 or 72 channel2<=0) it was decided that A should be set to 0. NOTE, this 73 does not change the underlying WeNNI algorithm in any way but is 74 rather conventions needed for BASE plug-in usage. 75 76 77 Remember, if you installed the software as a BASE plug-in, please log 78 on to the server and make the server aware of the new plug-in. The 79 plug-in definition file can be found in directory 80 bin/base_plugin_script as file plugin_WeNNI.base 81 82 83 If you installed the software as a standalone package, read on. BASE 84 plug-in users can also read on if they want some more information 85 about the WeNNI package. There are three programs created during 86 compilation: 87 88 BaseFileConverter, NNIFileConverter, nni 89 90 (These files are found in directories ./bin/BaseFileConverter, 91 ./bin/NNIFileConverter, and ./bin/nni, respectively.) 92 93 94 These three programs will take you from a BASE file to an imputed 95 matrix by running them in the order below (examples 1 to 3). There is 96 no need to run all steps, i.e., you can generate a data (matrix) file 97 with an associated weights matrix file and just run nni. 98 99 There is a 4th example below where the wenni.pl script (found in 100 directory ./bin/base_plugin_script/) is used to run all examples 1 101 through 3. wenni.pl also generates a resulting BASE file that a BASE 102 server would accept as a result file (and import it into the database) 103 when running wenni.pl as a plug-in from within BASE. 104 105 57 1. WeNNI is presented in the article referenced above. 58 59 2. The notion of weights becomes obsolete after running WeNNI, i.e., 60 do not use the weight fed into WeNNI in any subsequent analysis 61 because all weights are now strictly 1. 62 63 3. Running WeNNI as a BASE plug-in makes WeNNI destined to impute log 64 ratios of channel 1 and channel 2 (M values in BASE world). A 65 consequence of imputing log ratios is that a change in ratio 66 cannot be assigned to a specific channel. This implies that 67 log(channel1*channel2) (A values in BASE world) become undefined 68 and useless. However, on request from BASE users it was decided 69 that A values should not be affected by the transformation in 70 cases where the A value is well defined before imputation. In 71 cases when an A value do not exist before transformation 72 (i.e. channel1<=0 or channel2<=0) it was decided that A should be 73 set to 0. NOTE, this does not change the underlying WeNNI 74 algorithm in any way but is rather conventions needed for BASE 75 plug-in usage. 76 77 4. Remember, if you installed the software as a BASE plug-in, please 78 log on to the server and make the server aware of the plug-in. The 79 BASE1 plug-in definition file can be found in directory 80 `base/base1/base_plugin_script` as file `plugin_WeNNI.base`. BASE2 81 users should follow the plug-in installation instructions in the 82 BASE2 manual available at http://base.thep.lu.se. 83 84 85 = WeNNI package details = 86 87 If you installed the software as a stand alone package two binaries 88 where created `NNIFileConverter` and `nni`. If your input file is a 89 BASEfile you probably want to compile this package in BASE1 mode 90 instead (see `INSTALL` for compilation instructions). 91 92 The three programs will take you from a BASEfile to an imputed matrix 93 by running them in the order below (examples 1 to 3). There is no need 94 to run all steps, i.e., you can generate a data (matrix) file with an 95 associated weights matrix file and just run `nni` to impute missing 96 values. 97 98 There is a 4th example below where the `wenni.pl` script (found in 99 directory `./base/base1/base_plugin_script/`) is used to run all 100 examples 1 through 3. `wenni.pl` also generates a result BASEfile that 101 a BASE1 server would accept as a result file (and import it into the 102 database) when running `wenni.pl` as a plug-in from within BASE1. 103 104 {{{ 106 105 1) BaseFileConverter. 107 106 108 107 Extracts columns from a file exported from BASE, and writes the 109 108 extracted data into files in matrix form. What data should be 110 extracted from the BASE 109 extracted from the BASEfile is set by command line options. 111 110 112 111 Command syntax: … … 122 121 <basefile> is the file exported from BASE. 123 122 <string> is a string added to the beginning of all matrix files created. 124 <fieldtype> defines which field should be extracted from the BASE 123 <fieldtype> defines which field should be extracted from the BASEfile. 125 124 <fieldname> the name of the column to extract. 126 125 ... means that the two last option can be defined several times. This to 127 126 facilitate export of several fields in one run. 128 127 129 -show will output available fieldtypes and fieldnames in the BASE 128 -show will output available fieldtypes and fieldnames in the BASEfile. 130 129 131 130 Example 132 131 133 a) This is an example on how to extract data from a sample BASE 134 fileavailable in the data directory (data/basefile_in.data)132 a) This is an example on how to extract data from a sample BASEfile 133 available in the data directory (data/basefile_in.data) 135 134 136 135 ./BaseFileConverter basefile_in.data wenni_ -assayFields FCh1Mean \ … … 145 144 wenni_FCh1Mean.data, wenni_FCh2Mean.data 146 145 147 b) Another example on how to extract data from a sample BASE 146 b) Another example on how to extract data from a sample BASEfile 148 147 available in the data directory (data/basefile_in.data) 149 148 … … 296 295 4) wenni.pl 297 296 298 Performs missing value imputation on data in a BASE file. The BASE299 file is read from stdin, and the resulting BASE file is written to300 stdout. This is how a plug-in is expected to behave to make the297 Performs missing value imputation on data in a BASEfile. The 298 BASEfile is read from stdin, and the resulting BASEfile is written 299 to stdout. This is how a plug-in is expected to behave to make the 301 300 BASE job runner happy. 302 301 … … 314 313 'derived' (without '' characters). When 'derived' 315 314 is given, the user defined intensity1 and 316 intensity2 will be used from the BASE 315 intensity2 will be used from the BASEfile. When 317 316 'raw' is used, intensity1 will be calculated as 318 317 FCh1Mean-BCh1Mean (intensity2 is defined … … 325 324 326 325 h) wenni.pl will basically run through examples 1a, 2c, and 3e 327 sequentially, and produce a BASE 326 sequentially, and produce a BASEfile with the imputed 328 327 values. 'raw' type of input data is demanded by the command line 329 options --datatype. Other options are read from the input BASE330 file. Intermediate files will not be deleted328 options --datatype. Other options are read from the input 329 BASEfile. Intermediate files will not be deleted 331 330 332 331 ./wenni.pl --datatype raw --nodelete < basefile_in.data > basefile_out.data 333 332 334 333 i) wenni.pl will basically run through examples 1b, 2d, and 3e 335 sequentially, and produce a BASE 334 sequentially, and produce a BASEfile with the imputed 336 335 values. 'derived' type of data is expected ('derived' type is 337 default). Options are read from the input BASE 338 file.Intermediate files are deleted.336 default). Options are read from the input BASEfile. 337 Intermediate files are deleted. 339 338 340 339 ./wenni.pl < basefile_in.data > basefile_out.data 340 }}}
Note: See TracChangeset
for help on using the changeset viewer.