Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hthl85
    Junior Member
    • Oct 2014
    • 9

    #1

    How to convert CRAM back to BAM using samtools

    Hello everyone,

    I just installed samtools v1.0 and want to test CRAM feature. I converted .BAM file to .CRAM and It was successful. Now I want to convert back .CRAM to .BAM but don't know how to do that. Does anyone know how to do that? Please show me. Thank you.
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    It's the same command, just use the -b option instead of -C.

    Comment

    • hthl85
      Junior Member
      • Oct 2014
      • 9

      #3
      Originally posted by dpryan View Post
      It's the same command, just use the -b option instead of -C.
      Thank you for your quick response. I will try and let you know the result.

      Comment

      • hthl85
        Junior Member
        • Oct 2014
        • 9

        #4
        Originally posted by dpryan View Post
        It's the same command, just use the -b option instead of -C.
        Hello Devon Ryan,
        Can you please help me check my command is correct or not?
        samtools view -T <fasta_path> -b -o <bam_file_path> <cram_file_path>.

        I ran this command and got the error 'Servname not supported for ai_socktype'

        Thank you for your time.

        Comment

        • dpryan
          Devon Ryan
          • Jul 2011
          • 3478

          #5
          Are you running this on amazon e3 or something like that? This error message will normally only happen if there's some issue regarding networking (generally receiving an IP when a name is expected or vice versa).

          Comment

          • hthl85
            Junior Member
            • Oct 2014
            • 9

            #6
            Originally posted by dpryan View Post
            Are you running this on amazon e3 or something like that? This error message will normally only happen if there's some issue regarding networking (generally receiving an IP when a name is expected or vice versa).
            I will contact with my admin to fix this problem. Thank you very much.

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
              by SEQadmin2



              CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

              Despite this, “CRISPR helped turn genome editing from a specialized technique into
              ...
              07-31-2026, 11:01 AM
            • SEQadmin2
              Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
              by SEQadmin2


              Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

              The systematic characterization of the human proteome has
              ...
              07-20-2026, 11:48 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Today, 12:22 PM
            0 responses
            12 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 08-11-2026, 10:35 AM
            0 responses
            11 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 08-06-2026, 07:41 AM
            0 responses
            30 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 08-03-2026, 10:13 AM
            0 responses
            48 views
            0 reactions
            Last Post SEQadmin2  
            Working...