766 |
16 Sep 08 |
jari |
$Id$ |
766 |
16 Sep 08 |
jari |
2 |
|
776 |
18 Sep 08 |
jari |
= About `se.lu.onk.MergeBioAssay` = |
766 |
16 Sep 08 |
jari |
4 |
|
788 |
18 Sep 08 |
jari |
The `se.lu.onk.MergeBioAssay` plug-in merge bioassays by grouping them |
788 |
18 Sep 08 |
jari |
according to annotation types or syntactical differences in the |
788 |
18 Sep 08 |
jari |
name. See ``Documentation`` below fo further information about the |
788 |
18 Sep 08 |
jari |
plug-in. |
766 |
16 Sep 08 |
jari |
9 |
|
776 |
18 Sep 08 |
jari |
`se.lu.onk.MergeBioAssay` is free software. See the file license.txt for |
766 |
16 Sep 08 |
jari |
copying conditions. |
766 |
16 Sep 08 |
jari |
12 |
|
766 |
16 Sep 08 |
jari |
The package was created by Johan Enell and is currently maintained by |
766 |
16 Sep 08 |
jari |
Jari Häkkinen. |
766 |
16 Sep 08 |
jari |
15 |
|
766 |
16 Sep 08 |
jari |
16 |
|
766 |
16 Sep 08 |
jari |
== Downloading == |
766 |
16 Sep 08 |
jari |
18 |
|
776 |
18 Sep 08 |
jari |
`se.lu.onk.MergeBioAssay` can be obtained from |
766 |
16 Sep 08 |
jari |
20 |
|
766 |
16 Sep 08 |
jari |
http://baseplugins.thep.lu.se/wiki/PluginDownload |
766 |
16 Sep 08 |
jari |
22 |
|
766 |
16 Sep 08 |
jari |
23 |
|
772 |
18 Sep 08 |
jari |
== Installation and upgrade == |
766 |
16 Sep 08 |
jari |
25 |
|
766 |
16 Sep 08 |
jari |
''This plug-in is only tested in BASE 2.8 through the |
766 |
16 Sep 08 |
jari |
Base1PluginExecuter but is expected to work also in BASE |
766 |
16 Sep 08 |
jari |
1.2.17. Please report failure or success in BASE 1.2 through |
766 |
16 Sep 08 |
jari |
http://baseplugins.thep.lu.se. These installation instructions only |
766 |
16 Sep 08 |
jari |
describe how to get the plug-in to work with the Base1PluginExecuter |
776 |
18 Sep 08 |
jari |
in the latest BASE version 2.'' |
766 |
16 Sep 08 |
jari |
32 |
|
766 |
16 Sep 08 |
jari |
If you downloaded a binary package you only need to follow these |
766 |
16 Sep 08 |
jari |
instructions. If you prefer to compile the package yourself, read the |
766 |
16 Sep 08 |
jari |
instructions about compiling and creating a distribution before doing |
766 |
16 Sep 08 |
jari |
the installation steps described here. |
766 |
16 Sep 08 |
jari |
37 |
|
766 |
16 Sep 08 |
jari |
You need to understand how to install plug-ins in BASE, please refer |
766 |
16 Sep 08 |
jari |
to BASE documentation at http://base.thep.lu.se for general |
766 |
16 Sep 08 |
jari |
instructions on plug-in installation. The BASE documentation contains |
772 |
18 Sep 08 |
jari |
a chapter on plug-ins. If you have read the plug-in information you |
772 |
18 Sep 08 |
jari |
should be able to follow this path |
766 |
16 Sep 08 |
jari |
43 |
{{{ |
766 |
16 Sep 08 |
jari |
# cd /path/to/base/plugins |
776 |
18 Sep 08 |
jari |
# download MergeBioAssay-version.tgz |
776 |
18 Sep 08 |
jari |
# untar MergeBioAssay-version.tgz |
776 |
18 Sep 08 |
jari |
# ln -s MergeBioAssay-version MergeBioAssay |
766 |
16 Sep 08 |
jari |
48 |
}}} |
776 |
18 Sep 08 |
jari |
The symbolic link in the last line above allows for easier change to |
766 |
16 Sep 08 |
jari |
future version of the plug-in. |
766 |
16 Sep 08 |
jari |
51 |
{{{ |
766 |
16 Sep 08 |
jari |
# Log in to your BASE as admin |
776 |
18 Sep 08 |
jari |
# Upload the configuration file `mergebioassay.base` |
776 |
18 Sep 08 |
jari |
# Create/update a configuration for the plug-in where you select the |
877 |
05 Dec 08 |
jari |
plug-in definition file `mergebioassay.base`. BASE will respond |
776 |
18 Sep 08 |
jari |
that plug-ins where configured but ... |
776 |
18 Sep 08 |
jari |
# Re-configure the plug-in without selecting a file, set the `Plugin |
776 |
18 Sep 08 |
jari |
executables path` and proceed to next window by clicking |
772 |
18 Sep 08 |
jari |
`Next`. This is explained in the BASE documentation and needs to |
772 |
18 Sep 08 |
jari |
be done even when you update your plug-in. |
766 |
16 Sep 08 |
jari |
# In this parameter window set the `Name of executable`. The value |
766 |
16 Sep 08 |
jari |
of this parameter and `Plugin executables path` should add up to |
776 |
18 Sep 08 |
jari |
the absolute path to the binary `run`, i.e., |
776 |
18 Sep 08 |
jari |
/path/to/base/plugins/MergeBioAssay/run. How this string looks |
766 |
16 Sep 08 |
jari |
like depends on your plug-in directory structure. |
766 |
16 Sep 08 |
jari |
# Test the plug-ins and when you are satisfied, share it to your |
766 |
16 Sep 08 |
jari |
users. |
766 |
16 Sep 08 |
jari |
68 |
}}} |
766 |
16 Sep 08 |
jari |
69 |
|
766 |
16 Sep 08 |
jari |
70 |
|
766 |
16 Sep 08 |
jari |
== Compiling == |
766 |
16 Sep 08 |
jari |
72 |
|
776 |
18 Sep 08 |
jari |
You must checkout the `se.lu.onk.MergeBioAssay` from the repository, |
766 |
16 Sep 08 |
jari |
follow the instructions below. Then download and untar the |
766 |
16 Sep 08 |
jari |
`se.lu.onk.BaseFile` package available from |
766 |
16 Sep 08 |
jari |
http://baseplugins.thep.lu.se/wiki/PluginDownload. This package is |
766 |
16 Sep 08 |
jari |
known to work with `se.lu.onk.BaseFile` version 1.0. |
766 |
16 Sep 08 |
jari |
78 |
{{{ |
766 |
16 Sep 08 |
jari |
check out project, see instructions below |
776 |
18 Sep 08 |
jari |
# cd /path/to/se.lu.onk.MergeBioAssay |
804 |
01 Oct 08 |
jari |
# wget http://baseplugins.thep.lu.se/attachment/wiki/se.lu.onk.BaseFile/BaseFile-1.0.tgz?format=raw -O BaseFile-1.0.tgz |
804 |
01 Oct 08 |
jari |
# wget http://baseplugins.thep.lu.se/attachment/wiki/se.lu.onk.BaseFile/BaseFile-1.0.tgz.MD5?format=raw -O BaseFile-1.0.tgz.MD5 |
788 |
18 Sep 08 |
jari |
# optionally compare the MD5 sum of the downloaded file and the MD5-file |
766 |
16 Sep 08 |
jari |
# tar zxpf BaseFile-1.0.tgz |
766 |
16 Sep 08 |
jari |
# ln -s BaseFile-1.0 BaseFile |
766 |
16 Sep 08 |
jari |
or |
766 |
16 Sep 08 |
jari |
# mv BaseFile-1.0 BaseFile |
766 |
16 Sep 08 |
jari |
88 |
}}} |
766 |
16 Sep 08 |
jari |
It is important that the `BaseFile` package is located in directory |
766 |
16 Sep 08 |
jari |
`BaseFile`. Now simple issue `ant`. This will create a jar file |
776 |
18 Sep 08 |
jari |
`dist/MergeBioAssay.jar`. |
766 |
16 Sep 08 |
jari |
92 |
|
766 |
16 Sep 08 |
jari |
93 |
|
766 |
16 Sep 08 |
jari |
== Creating a distribution == |
766 |
16 Sep 08 |
jari |
95 |
|
776 |
18 Sep 08 |
jari |
Update the version number in `build.xml`, and issue `ant |
776 |
18 Sep 08 |
jari |
package`. This creates a distribution package with all required |
776 |
18 Sep 08 |
jari |
components, including BaseFile.jar and associated files. |
766 |
16 Sep 08 |
jari |
99 |
|
766 |
16 Sep 08 |
jari |
100 |
|
766 |
16 Sep 08 |
jari |
== Bug Reporting == |
766 |
16 Sep 08 |
jari |
102 |
|
788 |
18 Sep 08 |
jari |
You can report `se.lu.onk.MergeBioAssay` bugs on |
766 |
16 Sep 08 |
jari |
104 |
|
766 |
16 Sep 08 |
jari |
http://baseplugins.thep.lu.se/newticket |
766 |
16 Sep 08 |
jari |
106 |
|
766 |
16 Sep 08 |
jari |
Use user `base` and password `base`. |
766 |
16 Sep 08 |
jari |
108 |
|
766 |
16 Sep 08 |
jari |
109 |
|
766 |
16 Sep 08 |
jari |
== Subversion Access == |
766 |
16 Sep 08 |
jari |
111 |
|
776 |
18 Sep 08 |
jari |
The `se.lu.onk.MergeBioAssay` source repository is available via anonymous |
766 |
16 Sep 08 |
jari |
subversion access, issue: |
766 |
16 Sep 08 |
jari |
114 |
|
776 |
18 Sep 08 |
jari |
`svn co http://baseplugins.thep.lu.se/svn/plugins/base1/se.lu.onk.MergeBioAssay/trunk se.lu.onk.MergeBioAssay` |
766 |
16 Sep 08 |
jari |
116 |
|
766 |
16 Sep 08 |
jari |
There is no guarantees about the contents or quality of the latest |
766 |
16 Sep 08 |
jari |
code in the subversion repository: it is not unheard of for code that |
766 |
16 Sep 08 |
jari |
is known to be broken to be committed to the repository. Use at your |
766 |
16 Sep 08 |
jari |
own risk. You may prefer to check out a released version instead, then |
776 |
18 Sep 08 |
jari |
replace `trunk` with `tags/version` in the above example. |
766 |
16 Sep 08 |
jari |
122 |
|
766 |
16 Sep 08 |
jari |
123 |
|
788 |
18 Sep 08 |
jari |
== Documentation == |
766 |
16 Sep 08 |
jari |
125 |
|
788 |
18 Sep 08 |
jari |
This plug-in base-users merge bioassays by grouping them according to |
788 |
18 Sep 08 |
jari |
annotation types or syntactical differences in the name. There are |
788 |
18 Sep 08 |
jari |
four different methods for calculating the merged values. They differ |
788 |
18 Sep 08 |
jari |
in what kind of mean they are using (arithmetic or geometric) and if |
788 |
18 Sep 08 |
jari |
they are merging on ratio or intensity. |
788 |
18 Sep 08 |
jari |
131 |
|
788 |
18 Sep 08 |
jari |
For each group the parents are saved so the link to the raw data is |
788 |
18 Sep 08 |
jari |
preserved. Annotations for the bioassays are saved if sample1 is the |
788 |
18 Sep 08 |
jari |
same for each assay in each group. |
788 |
18 Sep 08 |
jari |
135 |
|
788 |
18 Sep 08 |
jari |
=== Merge methods === |
788 |
18 Sep 08 |
jari |
137 |
|
788 |
18 Sep 08 |
jari |
''Geometric mean of ratio'':: |
788 |
18 Sep 08 |
jari |
This method calculates the geometric mean of the ratios in each |
788 |
18 Sep 08 |
jari |
group per position. |
788 |
18 Sep 08 |
jari |
141 |
|
788 |
18 Sep 08 |
jari |
''Arithmetic mean of ratio'':: |
788 |
18 Sep 08 |
jari |
This method calculates the arithmetic mean of the ratios in each |
788 |
18 Sep 08 |
jari |
group per position. |
788 |
18 Sep 08 |
jari |
145 |
|
788 |
18 Sep 08 |
jari |
''Arithmetic mean of intensity'':: |
788 |
18 Sep 08 |
jari |
This method calculates the arithmetic mean of the intensities in |
788 |
18 Sep 08 |
jari |
each group per position. |
788 |
18 Sep 08 |
jari |
149 |
|
788 |
18 Sep 08 |
jari |
''Ratio of ratio'':: |
788 |
18 Sep 08 |
jari |
This method works a little bit different from the others. It |
788 |
18 Sep 08 |
jari |
requires that each group consists of exactly two bioassays. It will |
788 |
18 Sep 08 |
jari |
then create a new ratio for each spot with one of the assays over |
788 |
18 Sep 08 |
jari |
the other, depending on what the user has specified in the ratio |
788 |
18 Sep 08 |
jari |
parameters. |
788 |
18 Sep 08 |
jari |
156 |
|
788 |
18 Sep 08 |
jari |
=== Parameters === |
788 |
18 Sep 08 |
jari |
158 |
|
788 |
18 Sep 08 |
jari |
''Assayname'':: |
788 |
18 Sep 08 |
jari |
This parameter specifies how the name of the assays is |
877 |
05 Dec 08 |
jari |
constructed. Use %0-%9 as wild-cards and then put any character(s) |
788 |
18 Sep 08 |
jari |
between as delimiters. For example assay name Assay_1_A can be |
788 |
18 Sep 08 |
jari |
divided into three parts. By setting the parameter to %1_%2_%3 the |
877 |
05 Dec 08 |
jari |
plug-in will read assay name assay_1_A and set %1=Assay, %2=1 and |
788 |
18 Sep 08 |
jari |
%3=A. Thus, if your assays have names constructed in the same way |
788 |
18 Sep 08 |
jari |
merge can sort the assays in groups depending on %1, %2 or %3. |
788 |
18 Sep 08 |
jari |
167 |
|
788 |
18 Sep 08 |
jari |
''Group'':: |
788 |
18 Sep 08 |
jari |
This will specify how the assays will be grouped together. It can |
788 |
18 Sep 08 |
jari |
either be a %-number used in assayname or an annotation type. |
788 |
18 Sep 08 |
jari |
171 |
|
788 |
18 Sep 08 |
jari |
Example 1: Assays; Assay_1_A, Assay_2_A, Assay_1_B and Assay_2_B can |
788 |
18 Sep 08 |
jari |
be sorted into groups of assays using merge. |
788 |
18 Sep 08 |
jari |
174 |
|
788 |
18 Sep 08 |
jari |
A: Setting the parameter \221Assayname\222 = %1_%2_%3 and parameter |
788 |
18 Sep 08 |
jari |
\221Group\222 = %2 will sort the assays into two groups. |
788 |
18 Sep 08 |
jari |
177 |
{{{ |
788 |
18 Sep 08 |
jari |
One group were %2=1 (assays Assay_1_A and Assay_1_B) |
788 |
18 Sep 08 |
jari |
One group were %2=2 (assays Assay_2_A and Assay_2_B) |
788 |
18 Sep 08 |
jari |
180 |
}}} |
788 |
18 Sep 08 |
jari |
B: Setting the parameter \221Assayname\222 = %1_%2_%3 and parameter |
788 |
18 Sep 08 |
jari |
\221Group\222 = %3 will sort the assays into two groups. |
788 |
18 Sep 08 |
jari |
183 |
{{{ |
788 |
18 Sep 08 |
jari |
One group were %3=A (assays Assay_1_A and Assay_2_A) |
788 |
18 Sep 08 |
jari |
One group were %3=B (assays Assay_1_B and Assay_1_B) |
788 |
18 Sep 08 |
jari |
186 |
}}} |
788 |
18 Sep 08 |
jari |
187 |
|
788 |
18 Sep 08 |
jari |
''New name'':: |
788 |
18 Sep 08 |
jari |
This text will be used in the name of the merged assays. The name |
788 |
18 Sep 08 |
jari |
will be this string followed by the groupname. |
788 |
18 Sep 08 |
jari |
191 |
|
788 |
18 Sep 08 |
jari |
''Merge method'':: |
877 |
05 Dec 08 |
jari |
Choose one of the methods described above. |
788 |
18 Sep 08 |
jari |
194 |
|
788 |
18 Sep 08 |
jari |
''Ratio'':: |
788 |
18 Sep 08 |
jari |
If merge method `ratio of ratio` is chosen the form of the ratio |
788 |
18 Sep 08 |
jari |
must be specified. This is done either in the ratio parameter or in |
788 |
18 Sep 08 |
jari |
ratio annotation type and ratio annotation value. In the ratio |
788 |
18 Sep 08 |
jari |
parameter you can choose a %-number followed by the two values it |
788 |
18 Sep 08 |
jari |
can take. The last character in the string must be the delimiter the |
877 |
05 Dec 08 |
jari |
user has chosen to use. The other way a user can specify the ratio |
788 |
18 Sep 08 |
jari |
is by choosing an annotation type in the list and specify the values |
788 |
18 Sep 08 |
jari |
in the annotation values parameter. This is done by writing the |
788 |
18 Sep 08 |
jari |
values with the delimiter used last, |
788 |
18 Sep 08 |
jari |
205 |
{{{ |
788 |
18 Sep 08 |
jari |
%1|vr1|vr2| |
788 |
18 Sep 08 |
jari |
207 |
}}} |
788 |
18 Sep 08 |
jari |
This will take the values from %1 in the assayname and put the assay |
788 |
18 Sep 08 |
jari |
with value vr1 over the assay with values vr2. Notice that the final |
788 |
18 Sep 08 |
jari |
character is the delimiter (this can of course be any character). |
788 |
18 Sep 08 |
jari |
211 |
|
788 |
18 Sep 08 |
jari |
Example 2: Assays; Assay_1_A, Assay_2_A, Assay_1_B and Assay_2_B can be |
788 |
18 Sep 08 |
jari |
sorted into groups of assays using merge. |
788 |
18 Sep 08 |
jari |
214 |
|
788 |
18 Sep 08 |
jari |
A: Setting the parameter \221Assayname\222 = %1_%2_%3 and parameter |
788 |
18 Sep 08 |
jari |
\221Group\222 = %2 will sort the assays into two groups. |
788 |
18 Sep 08 |
jari |
217 |
{{{ |
788 |
18 Sep 08 |
jari |
One group were %2=1 (assays Assay_1_A and Assay_1_B) |
788 |
18 Sep 08 |
jari |
One group were %2=2 (assays Assay_2_A and Assay_2_B) |
788 |
18 Sep 08 |
jari |
220 |
}}} |
788 |
18 Sep 08 |
jari |
B: By setting parameter \221Ratio\222 = %3|A|B| ratios of ratios |
788 |
18 Sep 08 |
jari |
will be created as: |
788 |
18 Sep 08 |
jari |
223 |
{{{ |
788 |
18 Sep 08 |
jari |
Assay_1_A / Assay_1_B |
788 |
18 Sep 08 |
jari |
Assay_2_A / Assay_2_B |
788 |
18 Sep 08 |
jari |
226 |
}}} |
788 |
18 Sep 08 |
jari |
227 |
|
788 |
18 Sep 08 |
jari |
=== References === |
788 |
18 Sep 08 |
jari |
229 |
|
788 |
18 Sep 08 |
jari |
[http://mathworld.wolfram.com/ArithmeticMean.html Arithmetic mean] [[br]] |
788 |
18 Sep 08 |
jari |
[http://mathworld.wolfram.com/GeometricMean.html Geometric mean] |
788 |
18 Sep 08 |
jari |
232 |
|
788 |
18 Sep 08 |
jari |
233 |
|
766 |
16 Sep 08 |
jari |
234 |
---------------------------------------------------------------------- |
766 |
16 Sep 08 |
jari |
235 |
{{{ |
766 |
16 Sep 08 |
jari |
Copyright (C) 2008 Jari Häkkinen |
766 |
16 Sep 08 |
jari |
237 |
|
776 |
18 Sep 08 |
jari |
This file is part of the se.lu.onk.MergeBioAssay plug-in for |
766 |
16 Sep 08 |
jari |
BASE. Available at http://baseplugins.thep.lu.se/ and BASE web site is |
766 |
16 Sep 08 |
jari |
http://base.thep.lu.se |
766 |
16 Sep 08 |
jari |
241 |
|
766 |
16 Sep 08 |
jari |
This is free software; you can redistribute it and/or modify it under |
766 |
16 Sep 08 |
jari |
the terms of the GNU General Public License as published by the Free |
766 |
16 Sep 08 |
jari |
Software Foundation; either version 3 of the License, or (at your |
766 |
16 Sep 08 |
jari |
option) any later version. |
766 |
16 Sep 08 |
jari |
246 |
|
766 |
16 Sep 08 |
jari |
This package is distributed in the hope that it will be useful, but |
766 |
16 Sep 08 |
jari |
WITHOUT ANY WARRANTY; without even the implied warranty of |
766 |
16 Sep 08 |
jari |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
766 |
16 Sep 08 |
jari |
General Public License for more details. |
766 |
16 Sep 08 |
jari |
251 |
|
766 |
16 Sep 08 |
jari |
You should have received a copy of the GNU General Public License |
766 |
16 Sep 08 |
jari |
along with this package. If not, see <http://www.gnu.org/licenses/>. |
766 |
16 Sep 08 |
jari |
254 |
}}} |