Skip to the content.

UMI Scripts - Install

Home Install Usage Applications

Standard installation

This package can by installed using the standard Perl Module::Build incantation.

perl ./Build.PL
./Build
./Build installdeps   # if necessary
./Build install

Otherwise, a Perl package manager may be used, such as CPAN or CPAN Minus. If you have downloaded this package from GitHub, use one of the following inside the package directory.

cpan  .
cpanm .
cpanp .

This installation will allow the scripts to work with Fastq files. However, to use the scripts with bam files, specifically bam_umi_dedup.pl, follow the Advanced installation, below.

Advanced installation

The bam_umi_dedup application requires the installation of the Bio::DB::HTS Perl adapter, which in turn requires the external HTSlib library to be installed.

While Bio::DB::HTS may be installed from CPAN, there are two prerequisites which should be installed first. These are listed below.

Once these two prerequisites are installed, the remaining Perl modules can be installed. These are listed as recommendations in Build.PL and are not installed automatically as dependencies. Most Perl package managers, such as CPANMinus, CPANPlus, or CPAN can be used here. Use one of the following, as appropriate:

cpan  -i Bio::DB::HTS Parallel::ForkManager List::MoreUtils
cpanm -i Bio::DB::HTS Parallel::ForkManager List::MoreUtils
cpanp -i Bio::DB::HTS Parallel::ForkManager List::MoreUtils

If you are installing from the downloaded package directory and using CPANMinus, you could alternatively invoke the following

cpanm --installdeps --with-recommends .

If htslib is in a non-standard location, you may have to specify this manually or run the installer interactively. The Build.PL script in Bio::DB::HTS accepts the --htslib <PATH> option to specify the location. If you’re using cpanm, you could pass the path directly with the option --configure-args="--htslib <PATH>".