This page was last updated on Friday, 02-Dec-2016 09:17:00 CST
Installation notes for REAPR version v1.0.17 - July 12, 2013
Home Page
Prerequisites
- Note, REAPR comes with SMALT included
SMALT
is recommended to map the reads. REAPR has been tested using versions 0.6.4 and 0.7.0.1 of
SMALT, but we have noticed issues with writing a BAM file directly
(with the SMALT option -f bam). Please use -f samsoft when running SMALT, then
import to BAM with samtools or Picard.
- R installed and in your path (http://www.r-project.org/)
- The following Perl modules need to be installed:
- File::Basename
- File::Copy
- File::Spec
- File::Spec::Link
- Getopt::Long
- List::Util
$ sudo cpan File::Basename File::Copy File::Spec File::Spec::Link Getopt::Long List::Util
- Optionally, you might want to have Artemis installed
(http://www.sanger.ac.uk/resources/software/artemis/) to view the output.
It must be at least Artemis version 15.0.0.
- REAPR comes with its own versions of bamtools, cmake, samtools, snpomatic, and tabix.
There is no way to tell the installer if you already have some of these installed,
and the programs are hardcoded to use certain versions,
e.g. libbamtools.so.2.1.0.
Installation
- $ cd /programinstallers/
- $ ver="1.0.17"
- $ wget -N ftp://ftp.sanger.ac.uk/pub4/resources/software/reapr/Reapr_$ver.tar.gz
- $ wget -N ftp://ftp.sanger.ac.uk/pub4/resources/software/reapr/Reapr_$ver.test_data.tar.gz
- $ cd /usr/local/bin
- $ tar -zxvf /programinstallers/Reapr_$ver.tar.gz
- Make a version-independent symlink
$ ln -s Reapr_$ver Reapr
- $ cd Reapr
- $ cp -puv manual.pdf /programinstallers/web/reapr/ &&
cp -puv README /programinstallers/web/reapr/README.txt
- Compile source code
$ ./install.sh
- Add Reapr to the default PATH
$ sudo nano /etc/profile
...
PATH="$PATH:/usr/local/bin/Reapr"
...
- Test the installation. Log out and back in to have PATH set.
$ cd /programinstallers
- $ tar -zxvf Reapr_$ver.test_data.tar.gz
- $ cd Reapr_$ver.test_data
- Run the tests. Return code should be zero if no errors occur, otherwise consult the log file
$ ./test.sh &> test.log ; echo $?
0
- Cleanup
$ cd .. ; rm Reapr_$ver.test_data -rf
- $ tar -zxvf Reapr_$ver.tar.gz
- $ cd Reapr_$ver
- Copy files for web page
$ mkdir web/reapr
- $ cp -puv manual.pdf web/reapr/
← this file missing in version 1.0.17, was present in 1.0.16 and 1.0.18, see manual online at
ftp://ftp.sanger.ac.uk/pub/resources/software/reapr/Reapr_1.0.17.manual.pdf
- $ cp -puv README web/reapr/README.txt
- Compile
$ ./install.sh
- Manual installation without source code
$ cd /usr/local/bin
- $ mkdir Reapr_$ver
- $ ln -s Reapr_$ver Reapr
- Installation for ver 1.0.16 or 1.0.18 was
$ cp -puv /programinstallers/Reapr_$ver/src/{*pl,task_score,task_stats,task_break,bam2fragCov,bam2insert,bam2fcdEstimate,make_plots,fa2gaps,fa2gc,scaff2contig,n50,task_gapresize,task_fcdrate,bam2perfect} /usr/local/bin/Reapr/
`reapr.pl' -> `/usr/local/bin/reapr/reapr.pl'
`task_facheck.pl' -> `/usr/local/bin/reapr/task_facheck.pl'
`task_perfectfrombam.pl' -> `/usr/local/bin/reapr/task_perfectfrombam.pl'
`task_perfectmap.pl' -> `/usr/local/bin/reapr/task_perfectmap.pl'
`task_plots.pl' -> `/usr/local/bin/reapr/task_plots.pl'
`task_preprocess.pl' -> `/usr/local/bin/reapr/task_preprocess.pl'
`task_smaltmap.pl' -> `/usr/local/bin/reapr/task_smaltmap.pl'
`task_summary.pl' -> `/usr/local/bin/reapr/task_summary.pl'
`task_score' -> `/usr/local/bin/reapr/task_score'
`task_stats' -> `/usr/local/bin/reapr/task_stats'
`task_break' -> `/usr/local/bin/reapr/task_break'
`bam2fragCov' -> `/usr/local/bin/reapr/bam2fragCov'
`bam2insert' -> `/usr/local/bin/reapr/bam2insert'
`bam2fcdEstimate' -> `/usr/local/bin/reapr/bam2fcdEstimate'
`make_plots' -> `/usr/local/bin/reapr/make_plots'
`fa2gaps' -> `/usr/local/bin/reapr/fa2gaps'
`fa2gc' -> `/usr/local/bin/reapr/fa2gc'
`scaff2contig' -> `/usr/local/bin/reapr/scaff2contig'
`n50' -> `/usr/local/bin/reapr/n50'
`task_gapresize' -> `/usr/local/bin/reapr/task_gapresize'
`task_fcdrate' -> `/usr/local/bin/reapr/task_fcdrate'
`bam2perfect' -> `/usr/local/bin/reapr/bam2perfect'
- Also copy supplied already compiled SMALT to the REAPR directory
$ cp -puv /programinstallers/Reapr_$ver/third_party/smalt_x86_64 /usr/local/bin/Reapr/smalt
- This library is hard-coded into the programs
$ sudo cp -puv Reapr_1.0.18/third_party/bamtools/lib/libbamtools.so.2.1.0 /usr/local/lib/bamtools/
- Add Reapr to the default PATH
$ sudo nano /etc/profile
...
PATH="$PATH:/usr/local/bin/Reapr"
...
- To use our installed versions of bamtools, cmake, samtools, snpomatic, and tabix, we need to
make some links in the Reapr directory
$ cd /usr/local/bin/Reapr
- $ mkdir tabix && cd tabix &&
ln -s /usr/local/bin/tabix &&
ln -s /usr/local/bin/bgzip ; cd -
- $ ln -s /usr/local/bin/bamtools
- $ ln -s /usr/local/bin/samtools (Must be 0.x version of samtools)
- $ ln -s /usr/local/bin/findknownsnps
- This is so we can use reapr instead of reapr.pl
$ ln -s reapr.pl reapr
- For this way of installing, need to change line 11 of /usr/local/bin/Reapr/task_pipeline.pl
from
my $reapr_dir = abs_path(File::Spec->catfile($scriptdir, File::Spec->updir()));
to
my $reapr_dir = $scriptdir; #abs_path(File::Spec->catfile($scriptdir, File::Spec->updir()));
- Test the installation. Log out and back in to have PATH set.
$ cd /programinstallers
- $ tar -zxvf Reapr_$ver.test_data.tar.gz
- $ cd cd Reapr_$ver.test_data
- Run the test. Return code should be zero if no errors occur
$ ./test.sh &> test.log ; echo $?
0
- $ cd ..
- Cleanup
$ rm /programinstallers/{Reapr_$ver,Reapr_$ver.test_data} -rf