Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Base coverage from Bam

    Hi,
    I wonder if there is any option in, e.g., samtools to display regions (positions) with the base coverage >= given threshold. Something opposite to the mpileup option (when we have positions and want to see base coverage and quality). I have very small number of reads mapped to the genome and I want to see those tens or hundreds regions covered by, at least, 10-15 reads.
    Thanks.

  • #2
    you could use genomeCoverageBed/Bam from bedtools with the -bg option to produce a bedgraph file, that can be filtered easily: awk '($4>-10)'

    Comment


    • #3
      Assuming you used (-c):
      Code:
      $ awk '{if ($8>4) print}' my.pileup
      -drd

      Comment


      • #4
        adamdeluca, drio, thanks a lot!

        Comment


        • #5
          I ran genomeCoverageBed from the bedtools and it was fine. However, I noticed rather strange detail. To run genomeCoverageBed you need to provide a genome file in the following format:
          <chromName><TAB><chromSize>

          I work with a masked reference genome. Firstly, I provided actual sizes (number of unmasked bases + number of Ns (masked)). In addition, I also made a genome file with sizes without masked bases.
          After running genomeCoverageBed with these two different genome files I got the same results.
          E.g.,
          chr_name 100 102 37
          (that is, bases at the positions 101 and 102 on the given chr are covered with 37 reads).
          I checked results using IGV, and found out they are true: the count for the bases 101 and 102 is really 37.
          The question is: what is the purpose of the genome file, and why the chromSize value doesn't influence on the output (at least, it's my, perhaps, wrong impression)?

          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...
            Today, 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, Today, 07:17 AM
          0 responses
          11 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-02-2024, 08:06 AM
          0 responses
          19 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-30-2024, 12:17 PM
          0 responses
          20 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-29-2024, 10:49 AM
          0 responses
          28 views
          0 likes
          Last Post seqadmin  
          Working...
          X