annotate GEMBASSY-1.0.3/README @ 1:84a17b3fad1f draft

Uploaded
author ktnyt
date Fri, 26 Jun 2015 05:20:29 -0400
parents 8300eb051bea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2 /* GEMBASSY ver 1.0.3 *********************************************************
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4 All rights reserved. Copyright (C) 2012-2013 by ITAYA Hidetoshi.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6 This EMBASSY package is free software. You can redistribute it and/or modify
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8 Free Software Foundation, either version 2 of the License, or any later
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
9 version.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
10
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
11 See also GNU General Public License Version 2, included in this
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
12 package as COPYING.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
13
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
14 *****************************************************************************/
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
15
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
16
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
17
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
18 /* About *********************************************************************
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
19
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
20 This is an EMBASSY package for the utilization of G-language SOAP service.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
21
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
22 All of the tools included in this package are wrapper programs to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
23 utilize G-language SOAP service, which are web APIs to access the methods
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
24 of G-language Genome Analysis Environment (G-language GAE); a powerful
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
25 workbench for genome analysis.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
26
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
27 Detailed documentation on G-language GAE methods are availabe at:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
28 http://www.g-language.org/wiki/soap
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
29
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
30 The EMBOSS Explorer interface is available at:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
31 http://soap.g-language.org/gembassy/emboss_explorer
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
32
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
33 *****************************************************************************/
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
34
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
35
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
36
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
37 /* Installation **************************************************************
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
38
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
39 REQUIREMENTS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
40 EMBOSS (> 6.6.0) - This EMBASSY package requires EMBOSS version 6.6.0 or
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
41 above.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
42 libcurl-devel (> 7.29.0) - Required for file POST
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
43
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
44 A UNIX-like operating system
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
45
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
46 INSTALLATION
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
47 Is EMBOSS already installed in your system?
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
48 Yes: Go to "EMBOSS is already installed" section.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
49 No: Go to "Install from EMBOSS" section.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
50
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
51 Install from EMBOSS:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
52 Root users
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
53 In the following examples we assume the downloaded EMBOSS archive filename
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
54 is emboss-latest.tar.gz
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
55
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
56 1. Download and compile EMBOSS source code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
57 % wget ftp://emboss.open-bio.org/pub/EMBOSS/emboss-latest.tar.gz
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
58 (or "curl -O ftp://emboss.open-bio.org/pub/EMBOSS/emboss-latest.tar.gz")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
59 % tar zxf emboss-latest.tar.gz
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
60 % cd EMBOSS-6.6.0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
61 % ./configure
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
62 % make
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
63 % sudo make install
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
64
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
65 2. Make "embassy" directory in the EMBOSS-6.6.0/ directory if it does not
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
66 exist and go into the directory.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
67 % mkdir embassy
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
68 % cd embassy
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
69
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
70 3. Download and compile the GEMBASSY source code
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
71 % wget http://soap.g-language.org/gembassy/source/GEMBASSSY-1.0.3.tar.gz
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
72 (or "curl -O http://soap.g-language.org/gembassy/source/GEMBASSY-1.0.3.tar.gz")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
73 % tar zxvf GEMBASSY-1.0.3.tar.gz
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
74 % cd GEMBASSY-1.0.3
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
75 ( EMBOSS-6.6.0/embassy/GEMBASSY-1.0.3 )
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
76 % ./configure
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
77 % make
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
78 % sudo make install
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
79
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
80 Non-root users
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
81 When running the './configure' command do the following instead:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
82 % ./configure --prefix=/PATH/TO/DIR/ (ex. --prefix=$HOME/opt)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
83
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
84 EMBOSS is already installed:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
85 When EMBOSS is already installed, GEMBASSY must be installed to the exact
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
86 same directory as the existing EMBOSS.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
87
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
88 If non-root users wish to install GEMBASSY separately, first install the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
89 EMBOSS package on top of the home directory.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
90
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
91 The following commands assume you have EMBOSS installed in the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
92 /PATH/TO/EMBOSS/ directory.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
93 % wget http://soap.g-language.org/gembassy/source/GEMBASSY-1.0.3.tar.gz
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
94 (or "curl -O http://soap.g-language.org/gembassy/source/GEMBASSY-1.0.3.tar.gz")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
95 % tar zxf GEMBASSY-1.0.3.tar.gz
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
96 % cd GEMBASSY-1.0.3
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
97 % ./configure --prefix=/PATH/TO/EMBOSS/ (ex. --prefix=/usr/local)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
98 % make
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
99 % make install
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
100
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
101
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
102 Installing custom EMBOSS configuration files
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
103 We highly recommend users to install the custom EMBOSS configuration files
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
104 from the KBWS package. The configuration file provides database definition
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
105 for various databases, allowing versatile access to various sequence
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
106 entries.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
107
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
108 % wget http://soap.g-language.org/kbws/embossrc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
109 (or "curl -O http://soap.g-language.org/kbws/embossrc")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
110 % mv embossrc ~/.embossrc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
111
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
112 Then rewrite the "emboss_acdroot" and "emboss_data" value in ~/.embossrc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
113 file to the corresponding directories.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
114 (ex. emboss_acdroot = ~/opt/share/EMBOSS/acd)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
115 (ex. emboss_data = ~/opt/share/EMBOSS/data)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
116
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
117 Update of EMBOSS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
118 When users are upgrading EMBOSS, please be sure to uninstall old versions
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
119 of EMBOSS and GEMBASSY. If you override them, some older versions of files
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
120 may cause errors.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
121
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
122 NOTE - automake problem
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
123 If the source code is cloned from the GitHub Repository, there are
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
124 known problems with automake version mismatches which stop the compilation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
125 of the source. Follow the steps below in (NOTE - libtool problem) to
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
126 solve this problem.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
127
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
128 NOTE - libtool problem
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
129 On some systems there may be compatibility problems with different
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
130 automake, autoconf or libtool versions. If a libtool problem
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
131 arises you can try deleting the following files if they exist:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
132
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
133 config.cache
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
134 ltmain.sh
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
135 ltconfig
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
136 libtool
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
137
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
138 and then type
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
139 % aclocal -I m4
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
140 % autoconf
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
141 % automake -a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
142
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
143 and then retry make.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
144
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
145 If you have 'autoreconf' in your system
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
146 % autoreconf -fi
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
147
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
148 will do the trick.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
149
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
150 *****************************************************************************/
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
151
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
152
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
153
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
154 /* QuickStart ****************************************************************
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
155
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
156 DATABASE DEFINITION
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
157 The database definitions for following commands are available at
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
158 http://soap.g-language.org/kbws/embossrc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
159 Input files used in the examples are provided in the data/ directory.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
160
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
161 INSTALLATION:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
162 % wget http://soap.g-language.org/kbws/embossrc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
163 (or "curl -O http://soap.g-language.org/kbws/embossrc")
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
164 % mv embossrc ~/.embossrc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
165
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
166 Then rewrite the "emboss_acdroot" and "emboss_data" value in ~/.embossrc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
167 file to the corresponding directories.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
168 (ex. emboss_acdroot = ~/share/EMBOSS/acd)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
169 (ex. emboss_data = ~/share/EMBOSS/data)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
170
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
171 INFORMATION OF GEMBASSY TOOLS
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
172 List of all tools
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
173 For a list of all tools included in GEMBASSY use
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
174 % wossname -showembassy GEMBASSY
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
175
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
176 Documentation
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
177 Detailed documentation are available to be viewed with the "tfm"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
178 utility included in EMBOSS.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
179 Here is an example for "gaminoinfo"
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
180 % tfm gaminoinfo
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
181
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
182 USAGE EXAMPLE
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
183 The following examples show basic usages of three GEMBASSY tools and the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
184 different ways of passing input. Example 1. uses database definition, 2.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
185 uses the accid option, and 3. uses the sequence accession ID as input.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
186 1. ggcskew (GC skew)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
187 % ggcskew -plot -graph cps refseqn:NC_000913
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
188 Calculates the GC skew of the input sequence
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
189 Created ggcskew.ps
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
190
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
191 2. ggcsi (GC Skew Index)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
192 % ggcsi accid.fasta -accid stdout
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
193 GC Skew Index: an index for strand-specefic mutational bias
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
194 Input nucleotide sequence: refseqn:NC_000964
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
195 Sequence: NC_000964 GCSI: 0.214855185905019 SA: 976.152832384745 DIST: 170.245783
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
196
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
197 3. greporiter (Replication Origin and Terminus)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
198 % greporiter -outfile stdout
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
199 Get the positions of replication origin and terminus
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
200 Input nucleotide sequence: accid.fasta
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
201 Sequence: NC_000913 Origin: 3923881 Terminus: 1550412
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
202
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
203 *****************************************************************************/
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
204
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
205
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
206
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
207 /* Content *******************************************************************
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
208
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
209 gSOAP Toolkit
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
210 This EMBASSY package is dependant on gSOAP Toolkit for SOAP transfer,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
211 included in the gsoap/ directory. It is used automatically during
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
212 compilation.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
213
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
214 *****************************************************************************/
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
215
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
216
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
217
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
218 /* Contact *******************************************************************
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
219
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
220 Hidetoshi Itaya (celery @ g-language.org)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
221 Institute for Advanced Biosciences, Keio University.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
222
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
223 *****************************************************************************/