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
                    16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                    by SEQadmin2




                    NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
                    Today, 06:46 AM
                  • 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

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 10-28-2026, 09:57 AM
                  0 responses
                  22 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-28-2026, 09:51 AM
                  0 responses
                  14 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-22-2026, 11:13 AM
                  0 responses
                  67 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-22-2026, 10:48 AM
                  0 responses
                  47 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...