Seqanswers Leaderboard Ad

Collapse

Announcement

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

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

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


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


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


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

          • 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
          25 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          27 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          24 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          52 views
          0 likes
          Last Post seqadmin  
          Working...
          X