skip to main | skip to sidebar

Lord's Lamb

Wednesday, June 18, 2014

2014-06-18

Converting SAM directly to a sorted BAM file

Like many Unix tools, SAMTools is able to read directly from a stream i.e. stdout.

samtools

samtools view -bS file.sam | samtools sort - file_sorted

1440  samtools view -bS DPB1_13\:01.report.bowtie2.sam | samtools sort - DPB1_13_01

 1442  samtools index DPB1_13_01.bam DPB1_13_01.bai


Posted by alexgator at 5:37 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2017 (14)
    • ►  November (2)
    • ►  July (3)
    • ►  June (2)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (3)
    • ►  January (1)
  • ►  2016 (3)
    • ►  October (1)
    • ►  January (2)
  • ►  2015 (24)
    • ►  November (1)
    • ►  October (4)
    • ►  September (2)
    • ►  June (5)
    • ►  May (7)
    • ►  February (3)
    • ►  January (2)
  • ▼  2014 (54)
    • ►  November (1)
    • ►  October (3)
    • ►  September (4)
    • ►  August (10)
    • ►  July (3)
    • ▼  June (3)
      • 2014-06-27       alleleCombination_list = choseAl...
      • 2014-06-26 Function: generateExonAlignmentInfo(sc...
      • 2014-06-18 Converting SAM directly to a sorted BA...
    • ►  May (2)
    • ►  April (4)
    • ►  March (14)
    • ►  February (5)
    • ►  January (5)
  • ►  2007 (1)
    • ►  December (1)

About Me

alexgator
View my complete profile