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

          • GATTACAT
            Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by GATTACAT
            Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
            07-01-2026, 11:43 AM
          • SEQadmin2
            Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by SEQadmin2


            I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

            Here are nine questions we think about, in roughly the order they matter, before...
            06-18-2026, 07:11 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 11:08 AM
          0 responses
          6 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-30-2026, 05:37 AM
          0 responses
          11 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-26-2026, 11:10 AM
          0 responses
          19 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-17-2026, 06:09 AM
          0 responses
          53 views
          0 reactions
          Last Post SEQadmin2  
          Working...