Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shmibble
    Member
    • May 2015
    • 23

    #1

    Target region coverage

    Hi,
    I am performing an alignment and am interested in several target regions. I am interested in finding out the minimum and maximum coverage in each region (meaning the base with the minimum coverage and the base with the maximum coverage in each region) for quality control purposes. I already have a sorted bam file.
    Does anyone know how I can do this? Is there a program that can help?

    Thanks!
  • amitm
    Member
    • Feb 2011
    • 52

    #2
    hi,
    Using bedtools coverageBed with the -hist option would give you base level coverage. (contiguous bases with same depth would be collapsed in one entry though)

    Comment

    • shmibble
      Member
      • May 2015
      • 23

      #3
      Thanks for the reply.
      I don't really understand what I need file B for. How do I get a histogram of the coverage of file A (a sorted bam file)?

      Thanks again.

      Comment

      • amitm
        Member
        • Feb 2011
        • 52

        #4
        hi,
        You would need two things -
        1) Post-alignment, coord. sorted BAM
        2) BED file of your target regions

        Then for each of your target region (or sub-parts of it if there are different depth areas in a given target) you would get the number of reads (which is depth or coverage) aligned.

        A BED file at its simples is a tab-delimited 3 col. file having Chr. Start & End coords

        Comment

        • shmibble
          Member
          • May 2015
          • 23

          #5
          Hi,

          Thanks for the reply and sorry it took me a while to respond.
          It still doesn't seem to work for me... Here's the command I type:

          bedtools coverage -abam -a aligned_sorted.bam -b ref.bed

          It says ERROR: Unrecognized Parameter: aligned_sorted.bam

          If I remove the -abam option I get a different error: "Unexpected file format. Please use tab-delimited BED, GFF or VCf. Perhaps you have non-integer starts or ends at line 1?"
          I'm not really sure what this means. My bed file is a 3 column tab delimited file. Each line looks like "chr10 123456789 234567891".

          Any advice?

          Thanks again

          Comment

          • amitm
            Member
            • Feb 2011
            • 52

            #6
            hi,
            Quickly -
            The -abam and -a parameter are mutually xclusive. Use one.
            If you have two BED files, say, and you want to calculate coverage of one over other. Then its like
            -a First.bed -b Second.bed

            Else if you have a BAM file and a BED file, then
            -abam Input.bam -b Sorted.bed

            Hope that clears it.

            My first guess for the 2nd error is that that the chromosome name format in your BAM and BED don't match.
            Check using
            samtools view -H Input.bam

            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-22-2026, 11:13 AM
            0 responses
            26 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 10:48 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            36 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            43 views
            0 reactions
            Last Post SEQadmin2  
            Working...