Unconfigured Ad

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

    #1

    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

          • kinpict.com
            Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by kinpict.com
            The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
            Today, 06:37 PM
          • SEQadmin2
            16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by SEQadmin2





            NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
            10-30-2026, 06:46 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 11-12-2026, 07:59 AM
          0 responses
          26 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-05-2026, 09:25 AM
          0 responses
          35 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-03-2026, 11:54 AM
          2 responses
          56 views
          0 reactions
          Last Post kinpict.com  
          Started by SEQadmin2, 10-28-2026, 09:57 AM
          0 responses
          175 views
          0 reactions
          Last Post SEQadmin2  
          Working...