Header Leaderboard Ad

Collapse

convert BAM -> SAM?

Collapse

Announcement

Collapse

SEQanswers June Challenge Has Begun!

The competition has begun! We're giving away a $50 Amazon gift card to the member who answers the most questions on our site during the month. We want to encourage our community members to share their knowledge and help each other out by answering questions related to sequencing technologies, genomics, and bioinformatics. The competition is open to all members of the site, and the winner will be announced at the beginning of July. Best of luck!

For a list of the official rules, visit (https://www.seqanswers.com/forum/sit...wledge-and-win)
See more
See less
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • convert BAM -> SAM?

    how can one convert from BAM to SAM
    I can use samtools to go from SAM to BAM but not other way. samtools only outputs BAM format, does anyone know? Thanks in advance!

  • #2
    samtools -b -S in.sam > out.bam

    Comment


    • #3
      Originally posted by lvaruzza View Post
      samtools -b -S in.sam > out.bam
      is this not sam to bam? I want to go the other way (bam to sam). thanks!

      Comment


      • #4
        Read the samtools manual page at http://samtools.sourceforge.net/samtools.shtml

        samtools view in.bam > out.bam

        Comment


        • #5
          Originally posted by zee View Post
          Read the samtools manual page at http://samtools.sourceforge.net/samtools.shtml
          Thank you zee.
          By the way, the header section would be absent.
          Last edited by Daniel Su; 06-30-2010, 03:14 AM.

          Comment

          Latest Articles

          Collapse

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Today, 07:33 AM
          0 responses
          7 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, Yesterday, 07:50 AM
          0 responses
          4 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-26-2023, 09:22 AM
          0 responses
          8 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-24-2023, 09:49 AM
          0 responses
          20 views
          0 likes
          Last Post seqadmin  
          Working...
          X