Bioinformatics ReviewBioinformatics Review
Notification Show More
Font ResizerAa
  •  Home
  • Docking
  • MD Simulation
  • Tools
  • More Topics
    • Softwares
    • Sequence Analysis
    • Algorithms
    • Bioinformatics Programming
    • Bioinformatics Research Updates
    • Drug Discovery
    • Phylogenetics
    • Structural Bioinformatics
    • Editorials
    • Tips & Tricks
    • Bioinformatics News
    • Featured
    • Genomics
    • Bioinformatics Infographics
  • Community
    • BiR-Research Group
    • Community Q&A
    • Ask a question
    • Join Telegram Channel
    • Join Facebook Group
    • Join Reddit Group
    • Subscription Options
    • Become a Patron
    • Write for us
  • About Us
    • About BiR
    • BiR Scope
    • The Team
    • Guidelines for Research Collaboration
    • Feedback
    • Contact Us
    • Recent @ BiR
  • Subscription
  • Account
    • Visit Dashboard
    • Login
Font ResizerAa
Bioinformatics ReviewBioinformatics Review
Search
Have an existing account? Sign In
Follow US
SoftwareTools

Installing SAMtools on Ubuntu

Tariq Abdullah
Last updated: August 3, 2024 6:26 pm
Tariq Abdullah
Share
2 Min Read
Install SAMtools on Ubuntu
SHARE

SAMtools is a software package for high-throughput sequencing data analysis [1]. It consists of three separate packages: SAMtools, BCFtools, and HTSlib. We are going to install SAMtools only on Ubuntu. For the installation tutorial of BCFtools, click here.

Contents
  • Preparing system
  • Installing Pre-requisites
  • Downloading SAMtools
  • Installing SAMtools
    • References

Preparing system

Open a terminal by pressing Ctrl+Alt+T. Update and upgrade your system using the following commands:

$ sudo apt-get update

$ sudo apt-get upgrade

Installing Pre-requisites

To install SAMtools, you need to install some libraries that are necessary. Paste the following command in the terminal.

$ sudo apt-get install -y libncurses-dev libbz2-dev liblzma-dev

Downloading SAMtools

Change to the directory where you want to download the software. Let’s say, Downloads. Download the latest release of SAMtools from here or use the following command:

$ cd Downloads/

$ wget https://github.com/samtools/samtools/releases/download/1.20/samtools-1.20.tar.bz2

Installing SAMtools

We are in the same directory (i.e., Downloads). Now extract the downloaded package using the following commands.

$ tar xvjf samtools-1.20.tar.bz2

Now, change to the newly created directory (samtools-1.20).

$ cd samtools-1.20/

Install using the following commands.

$ ./configure

$ make

$ sudo make install

Export to the path using the following command:

$ export PATH="$PATH:/home/user/Downloads/samtools-1.20"

Now, add it to the bashrc file as shown below.

  • open bashrc file
    $ sudo gedit ~/.bashrc
  • Add the following line at the end of the file:
    export PATH="$PATH:/home/user/Downloads/samtools-1.20"
  • Save and exit. After that paste the following command in the terminal:
    $ source ~/.bashrc

Now, SAMtools is successfully installed on your system. You can run it by typing $ samtools.


References

  1. Danecek, P., Bonfield, J. K., Liddle, J., Marshall, J., Ohan, V., Pollard, M. O., … & Li, H. (2020). Twelve years of SAMtools and BCFtools. arXiv preprint arXiv:2012.10295.
TAGGED:installationsamtoolssequencing data analysisubuntu
Share This Article
Facebook Copy Link Print
ByTariq Abdullah
Tariq is founder of Bioinformatics Review and Lead Developer at IQL Technologies. His areas of expertise include algorithm design, phylogenetics, MicroArray, Plant Systematics, and genome data analysis. If you have questions, reach out to him via his homepage.
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

How to visualize a 3D structure using Py3Dmol?
How to visualize a 3D structure using Py3Dmol?
Bioinformatics Programming Cheminformatics GitHub Python
ai tools vs traditional tools in bioinformatics
AI Tools vs Traditional Tools in Bioinformatics- Which one to select?
Algorithms Artificial Intelligence Machine Learning Software Tools
AI vs Physics in Molecular Docking
AI vs Physics in Molecular Docking: Towards Faster and More Accurate Pose Prediction
Artificial Intelligence Drug Discovery Machine Learning
10 years of Bioinformatics Review: From a Blog to a Bioinformatics Knowledge Hub!
Editorial

You Might Also Like

DockingSoftwareToolsVideo Tutorial

Video tutorial: How to install Autodock Vina on Ubuntu?

November 23, 2024
How to install DockingPie plugin on PyMOL?
DockingSoftwareTools

How to install the DockingPie plugin on PyMOL?

December 23, 2023
AlgorithmsBioinformatics NewsMolecular dynamicsSoftwareTools

A new high-level Python interface for MD simulation using GROMACS

May 20, 2020
AlgorithmsSequence AnalysisSoftware

Benchmark databases for multiple sequence alignment: An overview

May 20, 2020
Copyright 2024 IQL Technologies
  • Journal
  • Customer Support
  • Contact Us
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Cookie Policy
  • Sitemap
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?

Not a member? Sign Up