Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • pm2012
    Member
    • Apr 2012
    • 18

    Reads identifiers of reads spanning a SNP

    Hi

    I am using Samtools to call SNPs in number of samples. Is there any way I can extract the reads (read Ids) and specify how many reads support the SNP an how many don't? Any help is appreciated as I am a newbie.
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    Originally posted by pm2012 View Post
    Hi

    I am using Samtools to call SNPs in number of samples. Is there any way I can extract the reads (read Ids) and specify how many reads support the SNP an how many don't? Any help is appreciated as I am a newbie.
    Something like
    Code:
    samtools view file.bam chr3:1234567-1234567 > SNP.sam
    Will get you just the .bam entries that cross the SNP at 1234567

    Comment

    • pm2012
      Member
      • Apr 2012
      • 18

      #3
      Thanks for your reply. Yes I am able to isolate/identify all the reads at a specific position. However, not all the reads spanning the SNP position will have the SNP (e.g in heterologous SNPs, where half of reads will have SNP and half of them won't). I was asking if it would be possible to isolate all the reads (read IDs) spanning the SNP loci and identify which ones have the SNP and which ones don't.
      Last edited by pm2012; 04-08-2013, 08:51 AM. Reason: more clarification added

      Comment

      • vivek_
        PhD Student
        • Jul 2012
        • 164

        #4
        You could likely do that with a short script after dumping the reads into a file using the command that swbarnes provided.

        However the SNP caller might still not consider some reads as supporting evidence of a SNP depending on the mapping quality, base quality at that position in a read etc, so it gets complicated at this point.

        Comment

        • swbarnes2
          Senior Member
          • May 2008
          • 910

          #5
          If you make a vcf, the DP4 value will tell you how many high quality reads support the reference or alternate letter.

          Comment

          • pm2012
            Member
            • Apr 2012
            • 18

            #6
            Thanks all for your replies. I might have to just write a script to do this as I don't see a way to parse out read id from the mpileup output. In my case I want to identify the exact reads (their read ids) that support or not support SNPs.

            Comment

            Latest Articles

            Collapse

            • 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...
              Today, 05:17 AM
            • 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, Today, 10:08 AM
            0 responses
            6 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, Yesterday, 11:05 AM
            0 responses
            7 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-02-2026, 11:08 AM
            0 responses
            31 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-30-2026, 05:37 AM
            0 responses
            28 views
            0 reactions
            Last Post SEQadmin2  
            Working...