Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • frankyue50
    Member
    • Nov 2008
    • 34

    exon coverage by coverageBed

    Hello everyone,

    So I just want to compute the average coverage per base for our exome-seq. First I collected all the exons in a bed file, say exon.bed and it looks like this:

    chr1 11873 12227
    chr1 12594 12721

    I also have an exam seq bam file, and what I did is:

    samtools view -b bamfile.bam | coverageBed -abam stdin -b exon.bed -d > report, which looks like this:
    chr1 161480623 161480746 1 0
    chr1 161480623 161480746 2 0
    chr1 161480623 161480746 3 0
    chr1 161480623 161480746 4 0
    chr1 161480623 161480746 5 0
    chr1 161480623 161480746 6 0

    But the thing is the last column is always zero. What did I do wrong? Thank you guys for your help!
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Your chromosome names seem to match between the bed file and bam file so that can't be the problem. That was not the case.

    Did you create/edit the bed file on a PC/Mac and then move it to unix server? I wonder if the file format differences is causing the problem you are seeing.
    Last edited by GenoMax; 02-19-2014, 11:17 AM.

    Comment

    • frankyue50
      Member
      • Nov 2008
      • 34

      #3
      this is from samtools view reads.bam:
      name 163 1 10001 29 39S25M37S = 10026 126 ...
      Looks like a normal bam file to me

      Originally posted by GenoMax View Post
      Your chromosome names seem to match between the bed file and bam file so that can't be the problem.

      Did you create/edit the bed file on a PC/Mac and then move it to unix server? I wonder if the file format differences is causing the problem you are seeing.

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Originally posted by frankyue50 View Post
        this is from samtools view reads.bam:
        name 163 1 10001 29 39S25M37S = 10026 126 ...
        Looks like a normal bam file to me
        Your reference file seems to have chromosome names as "1" as opposed to chr1. If all the chromosomes do not have "chr" in front then you could edit your bed file accordingly.

        Comment

        • frankyue50
          Member
          • Nov 2008
          • 34

          #5
          I guess that's the reason... I print out the bed file from bam and things worked out.

          Thanks, GenoMax!

          Originally posted by GenoMax View Post
          Your reference file seems to have chromosome names as "1" as opposed to chr1. If all the chromosomes do not have "chr" in front then you could edit your bed file accordingly.

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
            by SEQadmin2


            Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

            The systematic characterization of the human proteome has
            ...
            07-20-2026, 11:48 AM
          • SEQadmin2
            Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
            by SEQadmin2



            Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
            ...
            07-09-2026, 11:10 AM
          • SEQadmin2
            Cancer Drug Resistance: The Lingering Barrier to Rising Survival
            by SEQadmin2



            Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

            There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
            07-08-2026, 05:17 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 07-24-2026, 12:17 PM
          0 responses
          18 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-23-2026, 11:41 AM
          0 responses
          18 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-20-2026, 11:10 AM
          0 responses
          25 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-13-2026, 10:26 AM
          0 responses
          38 views
          0 reactions
          Last Post SEQadmin2  
          Working...