Monday, 5 May 2014

Installing bedtools on centOS

1. Download bedtools from
https://github.com/arq5x/bedtools2/releases

2. Save it to a local folder (eg: softwares folder)
3. Untar it using below command
    
# tar xvzf bedtools-2.19.1.tar.gz

4. You can find all the bedtools function in bedtools-2.19.1/bin folder
5. You have to set the PATH environmental variable for bedtools so that OS can locate the bedtools program,  even if it is not in the current directory

Setting PATH environmental variable for bedtools

1. Open /etc/profile.d
2. Create a document and name it as bedtools.sh
3. Add the below line in bedtools.sh
    export PATH = $PATH:/softwares/bedtools-2.19.1/bin
4. Save it and close bedtools.sh
5. If you want to load the environment variables within bedtools.sh without having to restart the machine, you can use the source command as in
     # source bedtools.sh