Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • variant calling on a subsample of a BAM file..

    Hi,

    Can someone explain the following phenomenon. I ran bcftools (bcftools call -v -c )on a pileup created by samtools. This resulted in calling of a SNP. Next I extracted reads spanning the SNP, created the pileup and ran bcftools as before. I was expecting that bcftools would give me back the same result but was surprised when no SNP was predicted. Why does this happen?

  • #2
    Samtools does some filtering of the reads and bases that you probably didn't do manually. Also make sure that you handled overlapping ends of pairs.

    Comment


    • #3
      Hi @dpryan,

      What kind of filtering does samtools do: I used something like samtools view file.name chrY:XXXX-XXXX where XXXX is the SNP location. Would this not give all the reads used in calling the variant? does bcftools care about bases neighboring the SNP?

      Comment


      • #4
        Aside from adjusting the phred score on bases from overlapping pairs, it discards orphans, any bases with scores < 13 and any alignments marked as duplicate, secondary, or QC failed. So, samtools view is providing a superset of what mpileup would produce.

        Comment


        • #5
          Hi @dpryan,

          Thanks for the very detailed answer.
          But this still leaves me wondering, since I have the identical superset of reads spanning the SNPs, shouldnt mpileup and bcftools predict the same set of SNP for the whole BAM file and to the extracted reads? Only difference I can think of is that some reads do not have the paired read extracted.

          Comment


          • #6
            At least in the most recent versions of samtools, mpileup produced a gvcf, which includes basically everything. bcftools call then uses that as a source for calculating the more believable variants. Presumably it's this step that you're seeing.

            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...
              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
            59 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            57 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            48 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