Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • the ways to count number of tags from bam file

    Hi guys,

    Could you please provide some ways to count the number of tags in bam file?

    The view of the bam file (partial) is showed as the following pic:


    I need the tag count result as the following format:


    Thanks in advance.

  • #2
    It seems that "samtools mpileup" can do similar counting, but it seems that tags will be counted more than once.

    Comment


    • #3
      need the per base or per 2 base read counts. any idea? thanks.

      Comment


      • #4


        or samtools depth option.

        Comment


        • #5
          You can take your bam file convert it to samformat using bamtools then sort it by position, then use Unix uniq command with -c option on position column.

          Comment


          • #6
            Originally posted by GenoMax View Post
            Thank you! you don't get what i need.

            Comment


            • #7
              Originally posted by rnaeye View Post
              You can take your bam file convert it to samformat using bamtools then sort it by position, then use Unix uniq command with -c option on position column.
              Thanks! that's a way. but how to get the per 2 base read counts? in addition, how to filter out some reads which have low mapping quality by this way?

              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, 05-10-2024, 06:35 AM
              0 responses
              16 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
              19 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 05-06-2024, 07:17 AM
              0 responses
              21 views
              0 likes
              Last Post seqadmin  
              Working...
              X