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
                    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
                  • seqadmin
                    Essential Discoveries and Tools in Epitranscriptomics
                    by seqadmin




                    The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
                    04-22-2024, 07:01 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, Yesterday, 06:35 AM
                  0 responses
                  15 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 05-09-2024, 02:46 PM
                  0 responses
                  21 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 05-07-2024, 06:57 AM
                  0 responses
                  18 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 05-06-2024, 07:17 AM
                  0 responses
                  19 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X