Welcome to the Genome Toolbox! I am glad you navigated to the blog and hope you find the contents useful and insightful for your genomic needs. If you find any of the entries particularly helpful, be sure to click the +1 button on the bottom of the post and share with your colleagues. Your input is encouraged, so if you have comments or are aware of more efficient tools not included in a post, I would love to hear from you. Enjoy your time browsing through the Toolbox.
Showing posts with label compile. Show all posts
Showing posts with label compile. Show all posts

Friday, May 10, 2013

Install Samtools on UNIX System

Samtools is a very useful tool for manipulating and visualizing .bam files.  Here is a quick guide on how to install Samtools.  First download the most current version from the Samtools website.  Unzip the file using either tar xvjf or the extract command.  Go into the newly created directory and compile the code by typing "make".  Your code should look something like this.

The next step is then to modify your .bashrc file so that when you type "samtools" it calls the program.  To do this open your .bashrc file and add the following line of code, where directory is equal to the directory that you have installed Samtools in.

Make sure as a final step to source the .bashrc file by entering source .bashrc into the command line.