Seqanswers Leaderboard Ad

Collapse

Announcement

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

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

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


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


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


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

          Comment


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

            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin


              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
              Yesterday, 07:01 AM
            • 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

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            55 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            51 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            45 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            55 views
            0 likes
            Last Post seqadmin  
            Working...
            X