This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Converting SAM to BAM files

What is a simple command that I can use to convert SAM to BAM files without losing any reads info?

Thank you!

chipseq

Thank you! I have no bioinformatics background so this is very helpful!

1 answer

samtools view -o out.bam in.sam

Please read the samtools manual for details on pretty much any sam/bam manipulation, it's the gold standard tool.

Log in to answer this question.