ClipCrop Installation on Linux Mint 16 nvm, Node, npm Included
By Güngör Budak
- 2 minutes read - 376 wordsClipCrop is a tool for detecting structural variations from SAM files. And it’s built with Node.js.
ClipCrop uses two softwares internally so they should be installed first.
Install SHRiMP2
SHRiMP is a software package for aligning genomic reads against a target genome.
1$ mkdir ~/software
2$ cd ~/software
3$ wget http://compbio.cs.toronto.edu/shrimp/releases/SHRiMP_2_2_3.lx26.x86_64.tar.gz
4$ tar xzvf SHRiMP_2_2_3.lx26.x86_64.tar.gz
5$ cd SHRiMP_2_2_3
6$ file bin/gmapper
7$ export SHRIMP_FOLDER=$PWD
Install BWA
BWA is a software package for mapping low-divergent sequences against a large reference genome.
BWA requires zlib so install it first
1$ sudo apt-get install zlib1g-dev
Download latest BWA software from SourceForge
1$ cd ~/Downloads
2$ tar xjvf bwa-0.7.7.tar.bz2
3$ cd bwa-0.7.7
4$ make
5$ sudo mv ~/Downloads/bwa-0.7.7 /usr/local/bin
6$ sudo ln -s /usr/local/bin/bwa-0.7.7 /usr/local/bin/bwa
7$ sudo nano /etc/profile
Copy-paste this at the end the document
PATH="$PATH:/usr/local/bin/bwa"
Save it pressing CTRL + X, then Y and hit ENTER
Now, NVM and Node should be installed but before there are some dependencies.
1$ sudo apt-get install build-essential
2$ sudo apt-get install libssl-dev curl
Install NVM
NVM is Node Version Manager and allows you to use different versions of Node.js
1$ git clone git://github.com/creationix/nvm.git ~/.nvm
2$ source ~/.nvm/nvm.sh
3$ nvm install v0.6.1
4$ nvm use v0.6.1
5Now using node v0.6.1
This installation also sets up Node.js v0.6.1, check:
1$ node -v
2v0.6.1
To install ClipCrop we need one last thing which is NPM - Node Package Manager.
Install NPM
1$ sudo apt-get install -y python-software-properties python g++ make
2$ sudo add-apt-repository ppa:richarvey/nodejs
3$ sudo apt-get update
4$ sudo apt-get install nodejs npm
5$ node -v
6v0.10.21
This last step will also install a Node.js version but before using ClipCrop, using NVM, Node.js version will be set to v0.6.1 like this:
1$ nvm use v0.6.1
2Now using node v0.6.1
If it says No command 'nvm' found
:
1$ source ~/.nvm/nvm.sh
Install ClipCrop
1$ cd ~
2$ npm install clipcrop
3$ cd ~/node_modules/clipcrop
4$ npm link
Run
1$ clipcrop
This will tell you how to use the package and what options it has. More is available here.
Some pages to refer
Installation notes for BWA version 0.7.5a-r405, http://www.vcru.wisc.edu/simonlab/bioinformatics/programs/install/bwa.htm
Installing Node.js using NVM on Ubuntu, http://achinth.com/post/58263924087/installing-node-js-using-nvm-on-ubuntu
How to install node.js and npm in ubuntu or mint, http://developwithguru.com/how-to-install-node-js-and-npm-in-ubuntu-or-mint/
Installing Node.js via package manager, https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
npm documentation, https://www.npmjs.org/doc/