Installation and use of BWA and Samtools under Linux

Source: Internet
Author: User


installation process for BWA
The installation of the software requires the following two software installation tasks:
1) BWA
2) Samtools

Installation of 1.BWA
A. Download BWA (download from BWA Source Forge)

Http://bio-bwa.sourceforge.net/bwa.shtml
B. Installing BWA
$ TAR-JXVF bwa-*.tar.bz2
C. Compiling BWA
$ make

Installation of 2.Samtools
A. Download Samtools (download from Samtools Source Forge)

Http://samtools.sourceforge.net/samtools.shtml
B. Installing Samtools
$ TAR-JXVF samtools-*.tar.bz2
C. Compiling Samtools
$ make


BWA Flow of Use
1. Create Index
Create Index File According to reference genome data (e.g. REFERENCE.FA)
$ BWA index-a BWTSW HUMAN_HG18_REF.FA (Human reference genome 19)
2. Mapping the Reads
If it is pair-end data (LEFTREAD.FASTQ and RIGHTREAD.FASTQ) two files are processed separately
$ BWA AlN Reference.fa LEFTREAD.FASTQ Leftread.sai
$ BWA AlN Reference.fa RIGHTREAD.FASTQ Rightread.sai
If the data is Single-end, the
$ BWA AlN Reference.fa SINGLEREAD.FASTQ Singleread.sai
3. Process the mapping output file *.sai into *.sam
If it's pair-end data
$ BWA sampe-f pair-end.sam reference.fa leftread.sai rightread.sai leftread.fastq RIGHTREAD.FASTQ
If it's single-end data
$ BWA samse-f single.sam reference.fa Single.sai SINGLE.FASTQ

REF:

Http://www.cnblogs.com/emanlee/p/4316581.html

Http://www.cnblogs.com/emanlee/p/4316587.html

Http://www.plob.org/2014/01/26/7112.html

Http://www.nikest.com/web/free/2014/1014/93144.html

Installation and use of BWA and Samtools under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.