Tools (written in C using htslib) for manipulating next-generation sequencing data
Permalink
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Add issue templates for bug reports and feature requests. May 4, 2018
.travis Fix travis to use owner/htslib <branch> or samtools/htslib HEAD Mar 16, 2018
doc Add a few details about using a BED file with the multi-region iterator. Nov 7, 2018
examples Update 00README.txt Mar 9, 2015
lz4 Simplify lz4 build Dec 6, 2017
m4 Stop samtools configure from always trying to configure htslib Mar 9, 2017
misc Improve plot-bamstats merge Sep 4, 2018
test Add samtools split functional test Nov 2, 2018
win32 * samtools-0.1.5-22 (r432) Aug 1, 2009
.appveyor.yml AppVeyor: remove limitation of develop branch only Dec 5, 2017
.gitattributes Prevent export of .appveyor.yml [minor] Mar 29, 2018
.gitignore Added Windows Mingw/MSYS support. Sep 25, 2017
.travis.yml Add back a default gcc test case. Oct 17, 2018
AUTHORS Remove razip source code and remaining vestiges May 28, 2014
ChangeLog.old Removed SVN ChangeLog; merged my private github Log to ChangeLog.old Mar 9, 2012
INSTALL Additional installation hints for dependencies. Jul 12, 2018
LICENSE Update date range in LICENSE file Jul 5, 2018
Makefile Add samtools split functional test Nov 2, 2018
Makefile.mingw for WIN32 compatibility Jul 7, 2011
NEWS Change how unaccounted_header_name is passed into samtools split Nov 2, 2018
README Release 1.9 Jul 18, 2018
README.md Download and status buttons Oct 17, 2018
bam.c Fix warnings from adding HTS_RESULT_USED to htslib prototypes. Mar 8, 2016
bam.h Merge version number bump and NEWS file from master Jul 18, 2018
bam2bcf.c HTSlib now provides errmod_cal() etc Apr 25, 2016
bam2bcf.h HTSlib now provides errmod_cal() etc Apr 25, 2016
bam2bcf_indel.c Improvements for C99/XOPEN compliance. Apr 7, 2017
bam2depth.c Add check on fclose() in samtools depth; also update man page Sep 3, 2018
bam_addrprg.c Fixed very minor memory leaks. Aug 30, 2018
bam_aux.c Add #include <config.h> to all *.c source files [minor] Jan 28, 2016
bam_cat.c Fix samtools cat error message. Jun 22, 2018
bam_color.c Add #include <config.h> to all *.c source files [minor] Jan 28, 2016
bam_endian.h Canonicalise whitespace -- USE -b/-w TO DIFF/BLAME ACROSS THIS COMMIT Aug 1, 2014
bam_flags.c Add #include <config.h> to all *.c source files [minor] Jan 28, 2016
bam_import.c Add #include <config.h> to all *.c source files [minor] Jan 28, 2016
bam_index.c Make samtools idxstats work on SAM and CRAM files. Apr 30, 2018
bam_lpileup.c Add missing Makefile dependencies Jul 5, 2018
bam_lpileup.h Canonicalise whitespace -- USE -b/-w TO DIFF/BLAME ACROSS THIS COMMIT Aug 1, 2014
bam_markdup.c Add a few missing memory checks in bam_mark_duplicates Aug 30, 2018
bam_mate.c Check return values in samtools fixmate. Mar 27, 2018
bam_md.c Add quiet mode to calmd Feb 12, 2018
bam_plbuf.c Add #include <config.h> to all *.c source files [minor] Jan 28, 2016
bam_plbuf.h Canonicalise whitespace -- USE -b/-w TO DIFF/BLAME ACROSS THIS COMMIT Aug 1, 2014
bam_plcmd.c Add checks on return value of bam_hdr_write, bam_write1 Jul 30, 2018
bam_quickcheck.c Add option to quickcheck to allow unmapped data Aug 14, 2018
bam_reheader.c Don't output BAM to stdout if the user askes for in-place reheader. Aug 31, 2018
bam_rmdup.c Improved multi-threading support for many more samtools commands. Feb 9, 2017
bam_rmdupse.c Various tidying up and segfault fixes Apr 14, 2016
bam_sort.c Fixed very minor memory leaks. Aug 30, 2018
bam_split.c Change how unaccounted_header_name is passed into samtools split Nov 2, 2018
bam_stat.c Improved multi-threading support for many more samtools commands. Feb 9, 2017
bam_tview.c Improved multi-threading support for many more samtools commands. Feb 9, 2017
bam_tview.h Widen tview "goto position" text entry box Oct 25, 2018
bam_tview_curses.c Make bam_tview_curses.c deal more gracefully with missing headers Jan 22, 2018
bam_tview_html.c Add #include <config.h> to all *.c source files [minor] Jan 28, 2016
bamshuf.c Add a fast paired collate option. May 3, 2018
bamtk.c Allow singular and plural forms for *stats and flags subcommands Aug 30, 2018
bedcov.c Remove trailing whitespace and fix test.pl perl warning Jun 28, 2018
bedidx.c Update / add bedidx.[ch] copyright boilerplate. Jul 5, 2018
bedidx.h Update / add bedidx.[ch] copyright boilerplate. Jul 5, 2018
config.mk.in Use htslib_static.mk to get static link flags Mar 2, 2017
configure.ac Fix incorrect macro definition on Windows Oct 1, 2018
cut_target.c Avoid a gcc 7.1 warning. Jan 12, 2018
dict.c Fixed very minor memory leaks. Aug 30, 2018
faidx.c Make /rc the default faidx/fqidx --mark-strand option Jun 28, 2018
install-sh Add configure.ac script Dec 15, 2015
padding.c Fixed very minor memory leaks. Aug 30, 2018
phase.c Remove the unnecessary argument request. May 18, 2018
sam.c Various tidying up and segfault fixes Apr 14, 2016
sam.h Improvements for C99/XOPEN compliance. Apr 7, 2017
sam_header.c Fix stray spaces [minor] Jan 26, 2018
sam_header.h Canonicalise whitespace -- USE -b/-w TO DIFF/BLAME ACROSS THIS COMMIT Aug 1, 2014
sam_opts.c Improved multi-threading support for many more samtools commands. Feb 9, 2017
sam_opts.h Improved multi-threading support for many more samtools commands. Feb 9, 2017
sam_utils.c Fix --version when built from a Git repository (PR #844) May 22, 2018
sam_view.c Document fastq/fasta default compression level. Aug 14, 2018
sample.c Add #include <config.h> to all *.c source files [minor] Jan 28, 2016
sample.h Canonicalise whitespace -- USE -b/-w TO DIFF/BLAME ACROSS THIS COMMIT Aug 1, 2014
samtools.h Fix --version when built from a Git repository (PR #844) May 22, 2018
stats.c Implement a better separation between first, last and other reads. Sep 25, 2018
stats_isize.c Add #include <config.h> to all *.c source files [minor] Jan 28, 2016
stats_isize.h Canonicalise whitespace -- USE -b/-w TO DIFF/BLAME ACROSS THIS COMMIT Aug 1, 2014
tmp_file.c Changed a memory check to catch buffer overflow. Aug 15, 2018
tmp_file.h Changed a memory check to catch buffer overflow. Aug 15, 2018
version.sh Release 1.9 Jul 18, 2018

README.md

samtools

Build Status Build status Github All Releases

This is the official development repository for samtools.

The original samtools package has been split into three separate but tightly coordinated projects:

  • htslib: C-library for handling high-throughput sequencing data
  • samtools: mpileup and other tools for handling SAM, BAM, CRAM
  • bcftools: calling and other tools for handling VCF, BCF

See also http://github.com/samtools/

Building Samtools

See INSTALL for complete details. Release tarballs contain generated files that have not been committed to this repository, so building the code from a Git repository requires extra steps:

autoheader            # Build config.h.in (this may generate a warning about
                      # AC_CONFIG_SUBDIRS - please ignore it).
autoconf -Wno-syntax  # Generate the configure script
./configure           # Needed for choosing optional functionality
make
make install

By default, this will build against an HTSlib source tree in ../htslib. You can alter this to a source tree elsewhere or to a previously-installed HTSlib by configuring with --with-htslib=DIR.