Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

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

    Comment


    • #3
      The -o option is not available.

      Comment


      • #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


        • #5
          fillmd

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

          Comment


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

            Comment


            • #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


              • #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


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

                  Comment

                  Latest Articles

                  Collapse

                  • seqadmin
                    Latest Developments in Precision Medicine
                    by seqadmin



                    Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

                    Somatic Genomics
                    “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
                    05-24-2024, 01:16 PM
                  • seqadmin
                    Recent Advances in Sequencing Analysis Tools
                    by seqadmin


                    The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
                    05-06-2024, 07:48 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, 06-03-2024, 06:55 AM
                  0 responses
                  12 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 05-30-2024, 03:16 PM
                  0 responses
                  24 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 05-29-2024, 01:32 PM
                  0 responses
                  29 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 05-24-2024, 07:15 AM
                  0 responses
                  215 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X