Samtools Installation On A Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS
samtools
Maintainer: Debian Med Packaging Team
Email: [email protected] .
Website: http://www.htslib.org/
Section: science
Install samtools
-
Debian
apt-get install samtoolsClick to copy -
Ubuntu
apt-get install samtoolsClick to copy -
Kali Linux
apt-get install samtoolsClick to copy -
Fedora
dnf install samtoolsClick to copy -
Raspbian
apt-get install samtoolsClick to copy -
macOS
brew install samtoolsClick to copy
Tools for handling high-throughput sequencing (genomics) data. Used for reading/writing/editing/indexing/viewing of data in SAM/BAM/CRAM format.
How to use samtools?
Below are few example commands for samtools that you can use in the terminal.
Convert a SAM input file to BAM stream and save to file:samtools view -S -b input.sam > output.bamClick to copyTake input from stdin (-) and print the SAM header and any reads overlapping a specific region to stdout:other_command | samtools view -h - chromosome:start-endClick to copySort file and save to BAM (the output format is automatically determined from the output file's extension):samtools sort input -o output.bamClick to copyIndex a sorted BAM file (creates {{sorted_input.bam.bai}}):samtools index sorted_input.bamClick to copyPrint alignment statistics about a file:samtools flagstat sorted_inputClick to copyCount alignments to each index (chromosome / contig):samtools idxstats sorted_indexed_inputClick to copyMerge multiple files:samtools merge output input1 input2 …Click to copySplit input file according to read groups:samtools split merged_inputClick to copy
Install the latest version of samtools in Debian, Ubuntu, Kali, Fedora, Raspbian and macOS from terminal. To install the samtools just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of samtools from the respository and install it in your computer/server.




