Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ElMichael
    Member
    • Jun 2009
    • 31

    #1

    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.
  • adamdeluca
    Member
    • Jul 2010
    • 95

    #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

    • drio
      Senior Member
      • Oct 2008
      • 323

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

      Comment

      • ElMichael
        Member
        • Jun 2009
        • 31

        #4
        adamdeluca, drio, thanks a lot!

        Comment

        • ElMichael
          Member
          • Jun 2009
          • 31

          #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

          • 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
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          27 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-13-2026, 09:56 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-09-2026, 11:14 AM
          0 responses
          28 views
          0 reactions
          Last Post SEQadmin2  
          Working...