| 1 |
This is a Perl interface to the SAMtools sequence alignment |
| 2 |
interface. It ONLY works on versions of Samtools up to 0.1.17. It does |
| 3 |
not work on version 1.0 or higher due to major changes in the library |
| 4 |
structure. |
| 5 |
|
| 6 |
See http://samtools.sourceforge.net/ for samtools documentation. |
| 7 |
|
| 8 |
* ONE-STEP INSTALLATION |
| 9 |
|
| 10 |
In the root directory of this distribution you will find the script |
| 11 |
INSTALL.pl. Running this will download the latest versions of this |
| 12 |
module and SamTools into a temporary directory, compile them, test and |
| 13 |
install. Simply run: |
| 14 |
|
| 15 |
perl INSTALL.pl |
| 16 |
|
| 17 |
* MULTI-STEP INSTALLATION |
| 18 |
|
| 19 |
The more traditional install requires you to separately download, |
| 20 |
unpack and compile SAMtools 0.1.10 through 0.1.17 in some accessible |
| 21 |
directory. Typing "make" in the samtools directory will usually |
| 22 |
work. SAMtools versions 0.1.18 and higher do not work with this |
| 23 |
library. |
| 24 |
|
| 25 |
Then set the environment variable SAMTOOLS to point to this directory. |
| 26 |
|
| 27 |
You will also need to install Bio::Perl from CPAN. |
| 28 |
|
| 29 |
Now run: |
| 30 |
|
| 31 |
perl Build.PL |
| 32 |
./Build |
| 33 |
./Build test |
| 34 |
(sudo) ./Build install |
| 35 |
|
| 36 |
TROUBLESHOOTING: |
| 37 |
|
| 38 |
If you encounter problems during compiling, you may need to edit |
| 39 |
Build.PL so that extra_compiler_flags matches the CFLAGS and DFLAGS |
| 40 |
settings in the Samtools Makefile. Here are some common problems: |
| 41 |
|
| 42 |
1. When building this module, you get an error like the following: |
| 43 |
relocation R_X86_64_32 against `a local symbol' can not be used when |
| 44 |
making a shared object; recompile with -fPIC |
| 45 |
|
| 46 |
To fix this, edit the Makefile in the Samtools distribution by adding |
| 47 |
"-fPIC" to the CFLAGS line. While you're at it, you may also wish to |
| 48 |
get rid of a bunch of unused variable warnings that appears under |
| 49 |
recent versions of gcc. The modified CFLAGS will look like this |
| 50 |
|
| 51 |
CFLAGS= -g -Wall -Wno-unused -Wno-unused-result -O2 -fPIC #-m64 #-arch ppc |
| 52 |
|
| 53 |
Then do "make clean; make" in the Samtools directory to recompile the |
| 54 |
library. After this you should be able to build this module without |
| 55 |
errors. |
| 56 |
|
| 57 |
2. When building this module, you get an error about a missing math |
| 58 |
library. |
| 59 |
|
| 60 |
To fix this, follow the recipe in (1) except add -m64 to CFLAGS so it |
| 61 |
looks like this: |
| 62 |
|
| 63 |
CFLAGS= -g -Wall -O2 -fPIC #-m64 #-arch ppc |
| 64 |
|
| 65 |
TESTING AND CONTRIBUTING: |
| 66 |
|
| 67 |
You can obtain the most recent development version of this module via |
| 68 |
its GitHub site at https://github.com/GMOD/GBrowse-Adaptors. Please |
| 69 |
feel free to submit bug reports, patches, etc. via GitHub. |
| 70 |
|
| 71 |
AUTHOR: |
| 72 |
|
| 73 |
Lincoln D. Stein <[email protected]> |
| 74 |
|
| 75 |
Copyright (c) 2009-2015 Ontario Institute for Cancer Research |
| 76 |
|
| 77 |
This package and its accompanying libraries are free software; you can |
| 78 |
redistribute it and/or modify it under the terms of the Artistic |
| 79 |
License 2.0, the Apache 2.0 License, or the GNU General Public License |
| 80 |
(version 1 or higher). Refer to LICENSE for the full license text. |