X BOL wishing you a very and Happy New year

Alternative content

History

Our Sponsors



Download BioinformaticsOnline(BOL) Apps in your chrome browser.




sam to bam conversion !!: Revision

sam to bam conversion !!

Last updated 2522 days ago by Jit

To do sam to bam conversion, follow the following commands :- 

Code:
$ samtools view -b -S file.sam > file.bam

Then you will need to use 

Code:
$ samtools sort file.bam file-sorted

followed by

Code:
$ samtools index  file-sorted.bam

in order to get an indexed file.

If you just type 

Code:
$ samtools

or samtools followed by the name of one of the samtools commands, you will get a few lines of help giving the correct syntax for that command,