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
              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
            18 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            22 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            17 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            49 views
            0 likes
            Last Post seqadmin  
            Working...
            X