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
              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 on Modified Bases...
              Yesterday, 07:01 AM
            • 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

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            39 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            41 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            35 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            55 views
            0 likes
            Last Post seqadmin  
            Working...
            X