| 1 |
The EMBOSS Frequently Asked Questions list |
| 2 |
========================================== |
| 3 |
|
| 4 |
Last modified: 8th July 2009 |
| 5 |
|
| 6 |
|
| 7 |
SECTION A - Help and Support |
| 8 |
============================ |
| 9 |
|
| 10 |
Q) How do I report bugs? |
| 11 |
|
| 12 |
A) mail [email protected] |
| 13 |
|
| 14 |
|
| 15 |
Q) How do I contact the core development team? |
| 16 |
|
| 17 |
A) Rather than email their personal addresses, for EMBOSS matters we |
| 18 |
request that you use the address: |
| 19 |
|
| 20 |
[email protected] |
| 21 |
|
| 22 |
This will ensure that your email will be seen by the appropriate |
| 23 |
developer and that it will get logged with our tracking system. |
| 24 |
|
| 25 |
|
| 26 |
Q) Are there any mailing lists about EMBOSS? |
| 27 |
|
| 28 |
A) [email protected] |
| 29 |
is an open list (anyone can join) for general announcements and |
| 30 |
discussions by users. |
| 31 |
|
| 32 |
[email protected] |
| 33 |
is a closed list (subscription requests have to be approved) for |
| 34 |
discussions by developers using EMBOSS. |
| 35 |
|
| 36 |
[email protected] |
| 37 |
is an open list for announcements of new releases. |
| 38 |
|
| 39 |
You can access the archives, subscribe/unsubscribe and alter |
| 40 |
the way email is sent to you (e.g. digests) by visiting: |
| 41 |
|
| 42 |
http://emboss.open-bio.org/mailman/listinfo/emboss |
| 43 |
http://emboss.open-bio.org/mailman/listinfo/emboss-dev |
| 44 |
http://emboss.open-bio.org/mailman/listinfo/emboss-announce |
| 45 |
|
| 46 |
|
| 47 |
Q) Where's the documentation? |
| 48 |
|
| 49 |
A) All the documentation can be found at the following web page |
| 50 |
http://emboss.sourceforge.net/ |
| 51 |
|
| 52 |
|
| 53 |
Q) Where's the application documentation? |
| 54 |
|
| 55 |
A) http://emboss.sourceforge.net/apps/ |
| 56 |
|
| 57 |
and in the EMBOSS distribution, installed under |
| 58 |
share/EMBOSS/doc/programs/html (HTML files) and |
| 59 |
share/EMBOSS/doc/programs/text (plain text, as used by the tfm program). |
| 60 |
|
| 61 |
You can also use the EMBOSS application called tfm to display the plain |
| 62 |
text documentation of another application e.g.: |
| 63 |
|
| 64 |
% tfm seqret |
| 65 |
|
| 66 |
|
| 67 |
Q) Is there a tutorial? |
| 68 |
|
| 69 |
A) See the EMBOSS tutorial on the website: |
| 70 |
http://emboss.sourceforge.net/docs/emboss_tutorial/ |
| 71 |
|
| 72 |
|
| 73 |
Q) Is there a quick guide? |
| 74 |
|
| 75 |
A) There is a dated quick guide provided with the source code as |
| 76 |
the file doc/manuals/emboss_qg.pdf. A postscript file is |
| 77 |
also available. However, the primary source of up-to-date |
| 78 |
information is the web site. The quick guide was not written by |
| 79 |
the EMBOSS team and it is therefore not maintained by them. |
| 80 |
|
| 81 |
|
| 82 |
Q) Is there a table of substitutes for GCG programs? |
| 83 |
|
| 84 |
A) Several lists are available, but not maintained by the EMBOSS |
| 85 |
team. For example: |
| 86 |
http://www.biobind.com/faq/emboss/gcg-emboss.html |
| 87 |
|
| 88 |
|
| 89 |
Q) Citation: Is there a reference I can cite for EMBOSS? |
| 90 |
|
| 91 |
A) Rice,P. Longden,I. and Bleasby,A. |
| 92 |
"EMBOSS: The European Molecular Biology Open Software Suite" |
| 93 |
Trends in Genetics June 2000, vol 16, No 6. pp.276-277 |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
SECTION B - Installation & Compilation |
| 99 |
====================================== |
| 100 |
|
| 101 |
Q) How do I compile EMBOSS? |
| 102 |
|
| 103 |
A) If this is the first time trying to compile all you need to do is: |
| 104 |
|
| 105 |
./configure |
| 106 |
make |
| 107 |
|
| 108 |
The above will produce the EMBOSS programs in the 'emboss' |
| 109 |
subdirectory and you can set your PATH variable to point there. |
| 110 |
This method is suitable for EMBOSS developers. |
| 111 |
|
| 112 |
For system-wide installations we recommend installing the |
| 113 |
EMBOSS programs into a different directory from the source |
| 114 |
code (e.g. in the directory tree /usr/local/emboss). To do |
| 115 |
this type (e.g.): |
| 116 |
|
| 117 |
./configure --prefix=/usr/local/emboss |
| 118 |
make [to make sure there are no errors, then] |
| 119 |
make install [if there are no errors] |
| 120 |
|
| 121 |
You should then add (e.g.) /usr/local/emboss/bin to your PATH |
| 122 |
variable: |
| 123 |
set path=(/usr/local/emboss/bin $path) [csh/tcsh shells] |
| 124 |
export PATH="$PATH:/usr/local/emboss/bin" [sh/bash shells] |
| 125 |
|
| 126 |
|
| 127 |
If you wish to re-compile the code at any stage then you should type |
| 128 |
"make clean" and then configure and make source again as appropriate. |
| 129 |
|
| 130 |
|
| 131 |
Q) I have a Linux system and compilation ends prematurely saying that |
| 132 |
it can't find the -lX11 libraries ... but I know I have X11 |
| 133 |
installed. |
| 134 |
|
| 135 |
A) This should not happen with versions of EMBOSS later than 6.0.1 |
| 136 |
as the configuration will inform you of missing files and |
| 137 |
terminate at that stage. |
| 138 |
|
| 139 |
If you have a version of EMBOSS <= 6.0.1 then the problem |
| 140 |
is that you probably have the X11 server installed but you haven't |
| 141 |
installed the X11 development files. For example, on RPM distributions, |
| 142 |
you need to install: |
| 143 |
xorg-x11-proto-devel (xorg-based X11 distros) or |
| 144 |
XFree86-devel (XFree86-based X11 distros) |
| 145 |
|
| 146 |
After installing those system files you will need to: |
| 147 |
make clean |
| 148 |
and re-perform the './configure' command from the top EMBOSS |
| 149 |
source directory. |
| 150 |
|
| 151 |
|
| 152 |
Q) I'm trying to compile EMBOSS with PNG support |
| 153 |
|
| 154 |
A) Your system will need to have zlib (www.zlib.net: current version |
| 155 |
is 1.2.3), libpng (www.libpng.org: current version is 1.2.35) and |
| 156 |
gd (www.libgd.org: current version is 2.0.35). |
| 157 |
|
| 158 |
The version of GD must be >= 2.0.28 if it is to be used with EMBOSS. |
| 159 |
|
| 160 |
Note that the above packages often come with your operating system |
| 161 |
distribution but may not be installed by default i.e. they |
| 162 |
are optional packages which you can install at a later date. |
| 163 |
|
| 164 |
Also note that, as well as having the above system libraries installed, |
| 165 |
you must also have installed their associated development files. |
| 166 |
(these typically have 'devel' in the package names on Linux systems). |
| 167 |
So, on Linux RPM systems you would need to make sure that |
| 168 |
packages called names similar to "gd" and "gd-devel" are installed. |
| 169 |
|
| 170 |
MacOSX users can often find the above packages available on the |
| 171 |
MacPorts site (www.macports.org). |
| 172 |
|
| 173 |
However, for some operating systems, there may be no freeware |
| 174 |
sites where you can find pre-compiled versions of zlib/libpng/gd |
| 175 |
and you may have to compile one or more of them from their |
| 176 |
source distributions (URLs given above). |
| 177 |
|
| 178 |
You can unpack the tar.gz or tar.bz2 files in any directory, and |
| 179 |
install them in a common area. |
| 180 |
|
| 181 |
By default everything (including EMBOSS) installs |
| 182 |
in /usr/local. |
| 183 |
|
| 184 |
|
| 185 |
To install, pick up the sources and then: |
| 186 |
|
| 187 |
gunzip -c zlib-1.2.3.tar.gz | tar xf - |
| 188 |
gunzip -c libpng-1.2.35.tar.gz | tar xf - |
| 189 |
gunzip -c gd-2.0.35.tar.gz | tar xf - |
| 190 |
|
| 191 |
cd zlib-1.2.3 |
| 192 |
./configure |
| 193 |
make |
| 194 |
make install |
| 195 |
./configure --shared |
| 196 |
make |
| 197 |
make install |
| 198 |
cd .. |
| 199 |
|
| 200 |
|
| 201 |
cd libpng-1.2.35 |
| 202 |
./configure |
| 203 |
make |
| 204 |
make install |
| 205 |
cd .. |
| 206 |
|
| 207 |
|
| 208 |
cd gd-2.0.35 |
| 209 |
./configure --without-freetype --without-fontconfig |
| 210 |
make |
| 211 |
make install |
| 212 |
cd .. |
| 213 |
|
| 214 |
To compile with the local version your EMBOSS ./configure line should now |
| 215 |
read:- |
| 216 |
./configure --with-pngdriver=/usr/local |
| 217 |
|
| 218 |
|
| 219 |
Q) When installing EMBOSS recently I get a load of errors due to |
| 220 |
libraries not found. The main problem is that I have an old version of |
| 221 |
libz but no libgd in my system libraries and EMBOSS looks there first |
| 222 |
to try to locate these libraries. I have the correct versions installed |
| 223 |
elsewhere. Are there any suggestions for setting the library search path |
| 224 |
or am I missing something really obvious? |
| 225 |
|
| 226 |
A) There are the |
| 227 |
--without-pngdriver |
| 228 |
and |
| 229 |
--with-pngdriver=dir |
| 230 |
flags. Did you try them? If the libraries are in /opt/png/lib then |
| 231 |
set "dir" to /opt/png i.e. one level above the "lib" directory. |
| 232 |
|
| 233 |
|
| 234 |
Q) Can I get the latest code via CVS ? |
| 235 |
|
| 236 |
A) Yes. Here is the information you will need:- |
| 237 |
|
| 238 |
Make sure you have cvs on your system. Then log into the cvs server at |
| 239 |
'open-bio.org' as: user 'cvs' with password 'cvs'. |
| 240 |
|
| 241 |
cvs -d :pserver:[email protected]:/home/repository/emboss login |
| 242 |
The password is 'cvs' |
| 243 |
|
| 244 |
To checkout the EMBOSS source code tree, put yourself in a local directory |
| 245 |
just above where you want to see the EMBOSS directory created. For example |
| 246 |
if you wanted EMBOSS to be seen as /home/joe/src/emboss... then cd into |
| 247 |
/home/joe/src then checkout the repository by typing: |
| 248 |
|
| 249 |
cvs -d :pserver:[email protected]:/home/repository/emboss checkout emboss |
| 250 |
|
| 251 |
Or if you want to update a previously checked-out source code tree: |
| 252 |
cvs -d :pserver:[email protected]:/home/repository/emboss update |
| 253 |
|
| 254 |
You can logout from the CVS server with: |
| 255 |
cvs -d :pserver:[email protected]:/home/repository/emboss logout |
| 256 |
|
| 257 |
(this is a read only server). |
| 258 |
|
| 259 |
|
| 260 |
Q) How do I compile the CVS (developers) version? |
| 261 |
|
| 262 |
A) You will need automake, autoconf, (GNU) make and libtool for this. |
| 263 |
|
| 264 |
The gcc compiler is recommended. The host cc compiler should work. |
| 265 |
(Note that some non-gcc compilers may need '--include-deps' added to |
| 266 |
the automake command line.) |
| 267 |
|
| 268 |
|
| 269 |
Then type: |
| 270 |
|
| 271 |
autoreconf -fi |
| 272 |
./configure # --enable-warnings is a useful developers' switch |
| 273 |
make |
| 274 |
|
| 275 |
For more info on the configurability of the build try |
| 276 |
./configure --help |
| 277 |
|
| 278 |
|
| 279 |
Q) Can you give an example of how to install an EMBASSY package? |
| 280 |
|
| 281 |
A) Here is how to install PHYLIP given the various ways you can install |
| 282 |
the main EMBOSS package. |
| 283 |
|
| 284 |
a) from the anonymous cvs code. |
| 285 |
|
| 286 |
1) Go to the phylip directory |
| 287 |
cd embassy/phylipnew |
| 288 |
|
| 289 |
2) make the configuration file |
| 290 |
autoreconf -fi |
| 291 |
|
| 292 |
3) configure and compile |
| 293 |
./configure (use same options as you used to compile emboss, |
| 294 |
especially the --prefix)) |
| 295 |
make |
| 296 |
make install |
| 297 |
|
| 298 |
b) from PHYLIP-3.6b.tar.gz |
| 299 |
|
| 300 |
available from our FTP server ftp://emboss.open-bio.org/pub/EMBOSS/ |
| 301 |
in file PHYLIP-3.6b.tar.gz |
| 302 |
|
| 303 |
|
| 304 |
If you have done a full installation of EMBOSS using a 'prefix' |
| 305 |
e.g. you configured with ./configure --prefix=/usr/local/emboss |
| 306 |
and followed this with a 'make install' (highly recommended) then: |
| 307 |
|
| 308 |
1) gunzip and untar the file anywhere |
| 309 |
gunzip PHYLIP-3.6b.tar.gz |
| 310 |
tar xf PHYLIP-3.6b.tar |
| 311 |
|
| 312 |
2) go into the phylip directory |
| 313 |
cd PHYLIP-3.6b |
| 314 |
|
| 315 |
3) configure and compile |
| 316 |
./configure (use same options as you used to compile emboss, |
| 317 |
especially the --prefix)) |
| 318 |
make |
| 319 |
make install |
| 320 |
|
| 321 |
N.B. If you configured without using a prefix but did do |
| 322 |
a 'make install' (or specified a prefix of /usr/local, |
| 323 |
which amounts to the same thing) then you must configure |
| 324 |
using: |
| 325 |
./configure --prefix=/usr/local --enable-localforce |
| 326 |
|
| 327 |
If, on the other hand, you did not do a 'make install' of EMBOSS |
| 328 |
then: |
| 329 |
|
| 330 |
1) Go to the emboss directory |
| 331 |
cd EMBOSS-6.0.1 |
| 332 |
|
| 333 |
2) make new directory embassy if it does not exist already. |
| 334 |
mkdir embassy |
| 335 |
|
| 336 |
3) Go into that directory |
| 337 |
cd embassy |
| 338 |
|
| 339 |
4) gunzip and untar the file |
| 340 |
gunzip PHYLIP-3.6b.tar.gz |
| 341 |
tar xvf PHYLIP-3.6b.tar |
| 342 |
|
| 343 |
5) go into the phylip directory |
| 344 |
cd PHYLIP-3.6b |
| 345 |
|
| 346 |
6) configure and compile |
| 347 |
./configure (use same options as you used to compile emboss) |
| 348 |
make |
| 349 |
|
| 350 |
7) Set your PATH to include the full path of the 'src' |
| 351 |
directory |
| 352 |
|
| 353 |
|
| 354 |
Q) Can I alter the location of the ACD files? |
| 355 |
|
| 356 |
A) EMBOSS will find the acd files in the install directory or in the |
| 357 |
original source directory (depending on how you configured it) so |
| 358 |
there is usually no reason to change this. However, |
| 359 |
should you wish to do so then it can either be done |
| 360 |
in the emboss.default (or ~/.embossrc) file: |
| 361 |
|
| 362 |
env emboss_acdroot /usr/local/share/EMBOSS/acd |
| 363 |
|
| 364 |
or by setting an environment variable on the command line: |
| 365 |
|
| 366 |
setenv EMBOSS_ACDROOT /usr/local/share/EMBOSS/acd |
| 367 |
|
| 368 |
|
| 369 |
Q) What benefits do I gain from using the associated (EMBASSY) versions of |
| 370 |
software. |
| 371 |
|
| 372 |
A) a) You can read any sequence type that EMBOSS can handle. |
| 373 |
|
| 374 |
b) the associated software will use the EMBOSS acd files so the |
| 375 |
naming of output/input files is taken care of and will check all |
| 376 |
values before the program is run. Command line arguments are used |
| 377 |
instead interactive menu based ones. |
| 378 |
|
| 379 |
|
| 380 |
Q) I have EMBOSS installed on our development server and I'm preparing a |
| 381 |
dispatch which will send it out to about 20 remote sites. |
| 382 |
|
| 383 |
I ran the configure with the --prefix option to install to a private |
| 384 |
directory. I also collected all the data files (rebase, transfac etc.) to |
| 385 |
another directory and extracted the information from them with the relevant |
| 386 |
programs. |
| 387 |
|
| 388 |
My intention was to simply transfer the EMBOSS install directory and the |
| 389 |
Data directory to all sites, using symlinks where necessary so that the |
| 390 |
directory paths corresponded. |
| 391 |
|
| 392 |
However, when testing this I have found a couple of problems; |
| 393 |
|
| 394 |
1) Although the EMBOSS programs work, I can't see any of the extracted |
| 395 |
data. |
| 396 |
For instance remap gives the error; |
| 397 |
|
| 398 |
EMBOSS An error in remap.c at line 167: |
| 399 |
Cannot locate enzyme file. Run REBASEEXTRACT |
| 400 |
|
| 401 |
This is despite the fact that I have both the EMBOSS install and the Data |
| 402 |
directories in the same place as on the development machine (which works). |
| 403 |
|
| 404 |
2) The other major problem is that I can no longer see my databases defined |
| 405 |
in emboss.default. Again, the file exists, and is in the same place as on |
| 406 |
the development machine, but the box it is transferred to gives an empty |
| 407 |
list from showdb. |
| 408 |
|
| 409 |
Does anyone know where EMBOSS stores the information about the location of |
| 410 |
these files? It can't have installed anything outside the original |
| 411 |
installation directory (wasn't installed as root), so I'm guessing that the |
| 412 |
problem stems from the program resolving symlinks at some point. |
| 413 |
|
| 414 |
A) It is inside the binaries ... |
| 415 |
|
| 416 |
EMBOSS 'knows' the location of the files because it is picked up during the |
| 417 |
configure, when you build your copy, and included in the binaries. |
| 418 |
|
| 419 |
You can see it during compilation, especially of ajnam.c (where it is used): |
| 420 |
|
| 421 |
-DAJAX_FIXED_ROOT=\"/full/source/path\" -DPREFIX=\"/install/prefix/path\" |
| 422 |
|
| 423 |
To copy binaries, you need to define environment variable(s) to |
| 424 |
override the compile-time definitions, unless you can make the path |
| 425 |
(e.g. /usr/local) the same for the installations at each site. |
| 426 |
|
| 427 |
emboss.default can set environment variables too, but you need to tell |
| 428 |
EMBOSS where to find that file. |
| 429 |
setenv EMBOSS_ROOT /dir/for/default/file |
| 430 |
|
| 431 |
and then, in the emboss.default file you can set: |
| 432 |
SET EMBOSS_ACDROOT /install/dir/share/EMBOSS/acd |
| 433 |
|
| 434 |
or (this overrides it) you can use another environment variable: |
| 435 |
setenv EMBOSS_ACDROOT /install/dir/share/EMBOSS/acd |
| 436 |
|
| 437 |
|
| 438 |
Q) I have downloaded the EMBOSS source and installed it for use at XYZ |
| 439 |
University without any difficulty. The administration guide has advice |
| 440 |
on configuring the software using emboss.default, and has some examples for |
| 441 |
allowing access to SRS indexes. That appears to be done via the program |
| 442 |
getz, which is not part of the EMBOSS package. |
| 443 |
|
| 444 |
A) If you have SRS installed (so you have local SRS index files) you will |
| 445 |
have a local copy of the getz program, which is part of SRS. |
| 446 |
|
| 447 |
If you do not have SRS, you can build your own index files using dbxflat, |
| 448 |
dbxgcg (if you have GCG), dbiblast (if you have blast) and dbxfasta. This is |
| 449 |
the usual solution for sites that have no other database indexing in use. |
| 450 |
|
| 451 |
You can also use SRS servers remotely, to get single entries, using their |
| 452 |
URLs. No extra software is needed (EMBOSS just uses the HTTP protocol). |
| 453 |
|
| 454 |
Of course, if you really need to build your own SRS indexes you |
| 455 |
could install it. SRS is a commercial product, but academic licences are |
| 456 |
available. |
| 457 |
|
| 458 |
|
| 459 |
Q) I am not getting full static files even when I configure with |
| 460 |
--disable-shared |
| 461 |
|
| 462 |
A) This most often happens when using GNU LD. If both shared and |
| 463 |
static versions of a library exist then GNU LD will take the |
| 464 |
shared library as preferred. The root of this problem is libtool. |
| 465 |
You can, however, force complete static images by adding a |
| 466 |
definition to your "make" line: |
| 467 |
|
| 468 |
make "LDFLAGS=-Wl,-static" |
| 469 |
|
| 470 |
|
| 471 |
SECTION C - Graphics |
| 472 |
==================== |
| 473 |
|
| 474 |
|
| 475 |
Q) What Graphics options are available? |
| 476 |
|
| 477 |
A) To see what graphics drivers are available type ? at the prompt for |
| 478 |
the graph type and this will give you a list. |
| 479 |
|
| 480 |
Here are some of those:- |
| 481 |
|
| 482 |
ps -> Postscript |
| 483 |
cps -> Colour Postscript |
| 484 |
x11 -> X display. (also called xterm and xwindows) |
| 485 |
hpgl -> HP Laserjet III, HPGL emulation mode. |
| 486 |
png -> PNG (you will need libpng, zlib and gd for this) |
| 487 |
gif -> GIF (you will need libpng, zlib and gd for this) |
| 488 |
tek -> Tektronix Terminal |
| 489 |
none -> None. |
| 490 |
data -> Writes out points to a file for graphs. |
| 491 |
meta -> plplot meta file. |
| 492 |
|
| 493 |
|
| 494 |
Q) Plotters and pen colours. |
| 495 |
|
| 496 |
A) The hp drivers presume the pens are loaded as:- |
| 497 |
|
| 498 |
SP1 Red |
| 499 |
SP2 Yellow |
| 500 |
SP3 Green |
| 501 |
SP4 Blue |
| 502 |
SP5 Magenta |
| 503 |
SP6 White/Off |
| 504 |
SP7 Black |
| 505 |
SP8 Cyan |
| 506 |
|
| 507 |
Otherwise your output will have different colours. |
| 508 |
|
| 509 |
|
| 510 |
Q) Browsing the Gnu site I came across libplot, libxmi and plot utils. |
| 511 |
Would these be a suitable replacement for PLPLOT? |
| 512 |
|
| 513 |
A) So far they are still GPL licensed rather than LGPL. |
| 514 |
|
| 515 |
Robert Maier promised a while back to LGPL them but has not yet. A pity |
| 516 |
ad it makes all the difference for linking in third party applications to |
| 517 |
EMBOSS. |
| 518 |
|
| 519 |
|
| 520 |
Q) I get error messages when I try to display X11 on my PC. |
| 521 |
I am running the Hummingbird Exceed X11 emulator. |
| 522 |
|
| 523 |
A) This should only affect versions of EMBOSS pre-5.0.0 |
| 524 |
The Hummingbird Exceed X11 emulator (and maybe other systems) use the |
| 525 |
'TrueColor' display by default. |
| 526 |
You should change the configuration settings so that it uses 'PseudoColor'. |
| 527 |
In version 6.1 of Hummingbird Exceed, this is done by clicking on the |
| 528 |
Exceed section of the Windows 98 tool bar at the bottom of the screen. |
| 529 |
Select 'Tools', then 'Configuration', then Screen Definition. |
| 530 |
A window will appear. |
| 531 |
In the 'Server Visual' popup menu on the left, select 'PseudoColor'. |
| 532 |
Click on 'OK'. |
| 533 |
|
| 534 |
|
| 535 |
SECTION D - Data Files |
| 536 |
====================== |
| 537 |
|
| 538 |
|
| 539 |
Q) How do I use my own private data file? |
| 540 |
|
| 541 |
A) You may wish to amend one of the standard EMBOSS data files. Some of |
| 542 |
the data files you might wish to alter are the translation table files. |
| 543 |
|
| 544 |
'transeq' has been written to only read in one of the standard |
| 545 |
translation files: |
| 546 |
|
| 547 |
EGC.0 |
| 548 |
EGC.1 |
| 549 |
EGC.2 |
| 550 |
EGC.3 |
| 551 |
EGC.4 |
| 552 |
EGC.5 |
| 553 |
EGC.6 |
| 554 |
EGC.9 |
| 555 |
EGC.10 |
| 556 |
EGC.12 |
| 557 |
EGC.11 |
| 558 |
EGC.13 |
| 559 |
EGC.14 |
| 560 |
EGC.15 |
| 561 |
|
| 562 |
These files are the only ones that you can specify to 'transeq'. |
| 563 |
|
| 564 |
If you wish to create your own specialised translation table, then you |
| 565 |
should pick one of them to amend. |
| 566 |
|
| 567 |
For instance you may decide that you will use the file EGC.15 as you |
| 568 |
would never want to otherwise use it. |
| 569 |
|
| 570 |
Use the program 'embossdata' to get a copy of this file: |
| 571 |
|
| 572 |
% embossdata -fetch -filename EGC.15 |
| 573 |
Finds or fetches the data files read in by the EMBOSS programs |
| 574 |
File '/fu/bar/emboss/data/EGC.15' has been copied successfully. |
| 575 |
|
| 576 |
Edit the file EGC.15 to suit your requirements. |
| 577 |
|
| 578 |
Specify '-table 15' when you run 'transeq' to use this altered file. |
| 579 |
'transeq' will then look for the file 'EGC.15' and will find it in your |
| 580 |
current directory before it finds the default one in the EMBOSS_DATA |
| 581 |
directory. It will therefore use your local copy. |
| 582 |
|
| 583 |
You may get confused with many copies of changed files floating about. |
| 584 |
To check which copy of a file is being used (the default EMBOSS_DATA |
| 585 |
one or a potential local copy) use 'embossdata': |
| 586 |
|
| 587 |
% embossdata -filename EGC.15 |
| 588 |
Finds or fetches the data files read in by the EMBOSS programs |
| 589 |
# The following directories can contain EMBOSS data files. |
| 590 |
# They are searched in the following order until the file is found. |
| 591 |
# If the directory does not exist, then this is noted below. |
| 592 |
# '.' is the UNIX name for your current working directory. |
| 593 |
|
| 594 |
File ./EGC.15 Exists |
| 595 |
File .embossdata/EGC.15 Does not exist |
| 596 |
File /home/joe/EGC.15 Does not exist |
| 597 |
File /home/joe/.embossdata/EGC.15 Does not exist |
| 598 |
File /usr/local/emboss/data/EGC.15 Exists |
| 599 |
|
| 600 |
This shows that a copy of EGC.15 exists in your current directory and so |
| 601 |
will be used in preference to the default one in the EMBOSS_DATA |
| 602 |
directory. |
| 603 |
|
| 604 |
|
| 605 |
SECTION E - Sequence Files and Formats |
| 606 |
====================================== |
| 607 |
|
| 608 |
Q) How do you write sequences to different files instead of writing them |
| 609 |
all to one file? |
| 610 |
|
| 611 |
A) EMBOSS is not good at writing multiple sequences to different files. |
| 612 |
You could try using 'nthseq' to pull out one sequence at a time. |
| 613 |
|
| 614 |
You should consider using the '-ossingle' qualifier. This writes |
| 615 |
sequences to separate FASTA files, but the file names depend on the |
| 616 |
sequence ID. This is rarely used. It is there because -ossingle is the |
| 617 |
default for GCG output format. The output filename is currently ignored |
| 618 |
when ossingle is used, and the filename depends on each individual |
| 619 |
sequence. |
| 620 |
|
| 621 |
|
| 622 |
Q) What sequence formats are supported? |
| 623 |
|
| 624 |
A) Tens of them(e.g.): |
| 625 |
|
| 626 |
gcg, embl, swissprot, fasta, ncbi, genbank, nbrf, codata, strider, |
| 627 |
clustal, phylip, acedb, msf, ig, staden, text, raw, asis |
| 628 |
|
| 629 |
|
| 630 |
Q) What is the difference between TEXT and RAW formats? |
| 631 |
|
| 632 |
A) TEXT accepts everything in the sequence file as sequence. |
| 633 |
RAW accepts only alphanumeric and whitespace characters and rejects |
| 634 |
anything else. |
| 635 |
|
| 636 |
|
| 637 |
Q) What is ASIS format? |
| 638 |
|
| 639 |
A) The "filename" is really the sequence. |
| 640 |
This is a quick and easy way of reading in a short fragment of |
| 641 |
sequence without having to enter it into a file. |
| 642 |
|
| 643 |
For example: |
| 644 |
% program -seq asis::ATGGTGAGGAGAGTTGTGATGAGA |
| 645 |
|
| 646 |
|
| 647 |
|
| 648 |
|
| 649 |
Q) I have some very short protein sequences that EMBOSS thinks are |
| 650 |
nucleic sequences. How do I force EMBOSS to treat them as nucleic acid |
| 651 |
sequences? |
| 652 |
|
| 653 |
For example: |
| 654 |
> cat seq1 |
| 655 |
A |
| 656 |
> cat seq2 |
| 657 |
I |
| 658 |
|
| 659 |
% water seq1 seq2 -stdout -auto |
| 660 |
Smith-Waterman local alignment. |
| 661 |
An error has been found: Sequence is not nucleic |
| 662 |
|
| 663 |
Here, 'water' automatically (and wrongly) thinks that A is adenosine |
| 664 |
instead of alanine and fails when it reads in seq2 and expects to |
| 665 |
find another nucleic acid sequence - but 'I' is not a valid base and |
| 666 |
so it fails. |
| 667 |
|
| 668 |
A) For many sequence formats there is no way to specify the sequence |
| 669 |
type in the file, so EMBOSS has to guess. |
| 670 |
|
| 671 |
There is a flag that can force EMBOSS programs to treat sequences as |
| 672 |
nucleic or protein. |
| 673 |
|
| 674 |
'water -help -verbose' |
| 675 |
shows the full list of sequence qualifiers. |
| 676 |
|
| 677 |
If you follow the sequence USA with '-sprotein' EMBOSS will check |
| 678 |
that it is a valid protein sequence and then treat it as such. |
| 679 |
|
| 680 |
If you need to force a sequence to be DNA, the qualifier is |
| 681 |
'-snucleotide' |
| 682 |
|
| 683 |
The qualifier must follow the sequence to apply to one sequence, or |
| 684 |
can go at the start of the command line to refer to all sequences, for |
| 685 |
example: |
| 686 |
|
| 687 |
'water -sprotein seq4 seq3 -stdout -auto' |
| 688 |
|
| 689 |
You can also use '-sprotein1' anywhere on the command line to refer |
| 690 |
to the first sequence and '-sprotein2' to refer to the second sequence. |
| 691 |
|
| 692 |
Of course, like all EMBOSS qualifiers, you can shorten them so long |
| 693 |
as they are still unique. In this case, '-sp' and '-sn' will work |
| 694 |
(or '-sp1' and '-sp2' if you need the numbers). |
| 695 |
|
| 696 |
|
| 697 |
SECTION F - Limits and contraints |
| 698 |
================================= |
| 699 |
|
| 700 |
Q) Is there a maximum size for sequences? |
| 701 |
|
| 702 |
A) The maximum size for any program depends only on how much memory your |
| 703 |
system has. |
| 704 |
|
| 705 |
Of course, some programs (and some program options) can take up too |
| 706 |
much memory, or simply run very slowly. |
| 707 |
|
| 708 |
You might have a constraint imposed on your usage of memory. |
| 709 |
Try using the Unix command 'limit' to look at such constraints. |
| 710 |
Try using the Unix command 'unlimit' or 'ulimit' to remove the constraints, |
| 711 |
eg: |
| 712 |
% unlimit stacksize |
| 713 |
% unlimit vmemoryuse |
| 714 |
|
| 715 |
|
| 716 |
Q) GCG has a somewhat arbitrary fragment length limit of 2500 bp for gel*. |
| 717 |
Is there a similar limit for MSE under EMBOSS? |
| 718 |
|
| 719 |
A) No. MSE has no limit, you are only limited by how much memory you |
| 720 |
have. |
| 721 |
|
| 722 |
|
| 723 |
SECTION G - Running under Web servers and from scripts |
| 724 |
====================================================== |
| 725 |
|
| 726 |
|
| 727 |
Q) I am trying to write a web interface for an emboss program |
| 728 |
and run apache. The program complains that there is no HOME |
| 729 |
directory set. |
| 730 |
|
| 731 |
A) Just put these at the top after your 'use CGI' ( whatever) statements. |
| 732 |
|
| 733 |
$ENV{HOME}=<web owner root> i.e. /usr/local/apache |
| 734 |
$ENV{EMBOSS_DATA}=<emboss data directory> |
| 735 |
|
| 736 |
These two are important, but you can also pass other "constants". |
| 737 |
|
| 738 |
|
| 739 |
SECTION H - Programs and options |
| 740 |
================================ |
| 741 |
|
| 742 |
Q) Plotting with pepwheel gives interesting output. |
| 743 |
pepwheel -turns=8 -send=30 sw:p77837 -auto |
| 744 |
gives a helical wheel plot but the residues are plotted so every two |
| 745 |
circles are sat on top of one another. |
| 746 |
|
| 747 |
A) That is the correct answer. |
| 748 |
|
| 749 |
Instead of 3.6 residues per turn, (5 turns in 18 steps) you seem to |
| 750 |
have a helix with 8 turns in 18 steps (4 in 9). |
| 751 |
|
| 752 |
Try -turns=4 -steps=9 ... but only if you are sure that is the |
| 753 |
way your helix goes. |
| 754 |
|
| 755 |
We could play with checking for common factors in pepwheel, |
| 756 |
but we don't know of any biologically meaningful setting that would |
| 757 |
cause problems. |
| 758 |
|
| 759 |
|
| 760 |
Q) In prettyplot, how do you specify an output file name for the plot file? |
| 761 |
|
| 762 |
A) prettyplot -auto ~/wordtest/globin-nogap.msf -graph ps |
| 763 |
Creates prettyplot.ps |
| 764 |
The name is generated automatically. To set this to something more |
| 765 |
discriptive use -goutfile .i.e |
| 766 |
|
| 767 |
prettyplot -auto ~/wordtest/globin-nogap.msf -graph ps -goutfile=hello |
| 768 |
Creates hello.ps |
| 769 |
|
| 770 |
|
| 771 |
Q) I'm using the editor 'mse', but I don't know how to save my edited sequences |
| 772 |
at the end of the editing session. |
| 773 |
|
| 774 |
A) Use Control-Z to get into command mode. |
| 775 |
Then use the SAVE command which will prompt for the file name. |
| 776 |
|
| 777 |
|
| 778 |
Q) I would like to know if EMBOSS can perform nucleotide contig assembly |
| 779 |
similar to the function that GCG gelproject/gelview has. And if yes, is |
| 780 |
there any size restriction on the number of basepair and the number of |
| 781 |
contigs? thank you. |
| 782 |
|
| 783 |
A) EMBOSS does not cover the sort of contig assembly you describe. We |
| 784 |
have provided an EMBOSS wrapper for the MIRA package. |