Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pm2012
    Member
    • Apr 2012
    • 18

    #1

    Saving results of samtools fillmd option

    Hi

    This is a very naive question but I am stuck here.
    How do I save a file of samtools fillmd results. The results are displayed on the screen but I am trying to save it to a file. I have tried output redirection to a file but it gives me a segmentation fault error and only gives truncated file.

    Any help is appreciated.

    Thanks
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Have you tried "-o filename" to see if that saves a file instead of output redirection?

    Comment

    • pm2012
      Member
      • Apr 2012
      • 18

      #3
      The -o option is not available.

      Comment

      • chadn737
        Senior Member
        • Jan 2009
        • 392

        #4
        Maybe try the -u option and then try output redirection. The -u gives an uncompressed bam for piping, so if you use this I would think that it would work.

        Comment

        • EmmaB
          Junior Member
          • Jun 2011
          • 7

          #5
          fillmd

          Did anyone work out how to get the fillmd command to output to a file rather than the screen?

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Unless anyone has a better idea this seems to work.
            Code:
            $ samtools fillmd file.bam ref.fa | tee file.sam

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              Wouldn't it be simpler to just
              Code:
              samtools fillmd file.bam ref.fa > file.sam
              or do people want the output printed to screen too?

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                @Devon: Person who started this thread had noted that simple redirection led to seg fault and a truncated file (though that may have been the case only for a specific older version of samtools).

                In theory simple redirection should work as you show above but I did not test it today (with v.0.1.19).

                Comment

                • dpryan
                  Devon Ryan
                  • Jul 2011
                  • 3478

                  #9
                  Ah, apparently I skipped over that part. "tee" makes vastly more sense then.

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                    by SEQadmin2



                    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                    ...
                    10-14-2026, 09:55 AM
                  • SEQadmin2
                    New Genomics Technologies Take Aim at Long-Standing Limits
                    by SEQadmin2


                    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                    ...
                    09-28-2026, 10:25 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 10-22-2026, 11:13 AM
                  0 responses
                  26 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-22-2026, 10:48 AM
                  0 responses
                  20 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-15-2026, 10:52 AM
                  0 responses
                  36 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-14-2026, 05:39 AM
                  0 responses
                  43 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...