Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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!

  • #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


    • #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


      • #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


        • #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


          • #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

            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM
            • seqadmin
              Strategies for Sequencing Challenging Samples
              by seqadmin


              Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
              03-22-2024, 06:39 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            18 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            22 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            17 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            48 views
            0 likes
            Last Post seqadmin  
            Working...
            X