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

[Tutorial] Installing HTSlib on Ubuntu (Linux).

Dr. Muniba Faiza
Last updated: March 13, 2025 8:55 pm
Dr. Muniba Faiza
Share
2 Min Read
[Tutorial] Installing HTSlib on Ubuntu (Linux).
SHARE

HTSlib is an open-source C library designed for handling high-throughput sequencing (HTS) data [1]. It provides the underlying functionality for manipulating various file formats commonly used in genomics, such as SAM (Sequence Alignment/Map), BAM (Binary Alignment/Map), CRAM (Compressed Reference-oriented Alignment Map), and VCF (Variant Call Format). In this article, we are installing on Ubuntu (Linux).

Contents
Preparing systemDownloading HTSlibInstalling PrerequisitesInstalling HTSlibVerify InstallationUpdate Library PathsReferences

Preparing system

It is good to update and upgrade your Ubuntu system first. Log into your Ubuntu system and open the terminal by pressing Ctrl+Alt+T altogether, and type the following commands:

$ sudo apt-get update
$ sudo apt-get upgrade

Downloading HTSlib

Change to the directory where you want to download (here, it is Downloads). Open a terminal and paste the following command to download HTSlib.

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

Installing Prerequisites

Install the following libraries before proceeding.

$ sudo apt-get install autoconf automake make gcc perl zlib1g-dev libbz2-dev liblzma-dev libcurl4-gnutls-dev libssl-dev libdeflate-dev

Installing HTSlib

Untar the package.

$ tar xvjf htslib-1.20.tar.bz2

Move inside the new HTSlib directory (htslib-1.20) and install it using the following commands

$ cd htslib-1.20/
$ ./configure
$ make
$ sudo make install

Verify Installation

You can check if HTSlib is installed correctly by running:

$ htsfile

This should display the usage information for HTSlib.

Update Library Paths

You might need to update your library paths to include the directory where HTSlib was installed. Paste the following command in the terminal.

$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

Now reload the profile as follows

$ source ~/.bashrc

References

  1. Bonfield, J. K., Marshall, J., Danecek, P., Li, H., Ohan, V., Whitwham, A., … & Davies, R. M. (2021). HTSlib: C library for reading/writing high-throughput sequencing data. Gigascience, 10(2), giab007.

slot 4d

situs gacor hari ini

situs slot gacor

toto slot

toto slot

toto slot

toto slot

situs toto

link slot gacor

slot gacor

TAGGED:htslibinstallationubuntu
Share This Article
Facebook Copy Link Print
ByDr. Muniba Faiza
Follow:
Dr. Muniba is a Bioinformatician based in New Delhi, India. She has completed her PhD in Bioinformatics from South China University of Technology, Guangzhou, China. She has cutting edge knowledge of bioinformatics tools, algorithms, and drug designing. When she is not reading she is found enjoying with the family. Know more about Muniba
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

Starting in Bioinformatics? Do This First!
Starting in Bioinformatics? Do This First!
Tips & Tricks
[Editorial] Is it ethical to change the order of authors’ names in a manuscript?
Editorial Opinion
Installing bbtools on Ubuntu
[Tutorial] Installing BBTools on Ubuntu (Linux).
Sequence Analysis Software Tools
wes_data_analysis Whole Exome Sequencing (WES) Data visualization Toolkit
wes_data_analysis: Whole Exome Sequencing (WES) Data visualization Toolkit
Bioinformatics Programming GitHub Python

You Might Also Like

Installing tophat2 on Ubuntu
RNA-seq analysisSoftwareTools

Installing TopHat2 on Ubuntu

March 12, 2021
How to install sdsorter on Ubuntu (Linux)?
SoftwareToolsVirtual Screening

How to install sdsorter on Ubuntu (Linux)?

April 13, 2023
Installing gromos96 on Ubuntu
MD SimulationSoftware

Installing GROMOS96 on Ubuntu

October 31, 2020
SoftwareTools

How to cluster peptide/protein sequences using cd-hit software?

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