sam to bam code example
Example: samtools convert bam to sam
# Basic syntax:
samtools view -S -b sample.sam > sample.bam
# Where
# -S specifies that the input is a sam file
# -b specified that the output should be written in bam format
# Basic syntax:
samtools view -S -b sample.sam > sample.bam
# Where
# -S specifies that the input is a sam file
# -b specified that the output should be written in bam format