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
              Recent Advances in Sequencing Analysis Tools
              by seqadmin


              The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
              Today, 07:48 AM
            • 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...
              04-22-2024, 07:01 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 07:17 AM
            0 responses
            6 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-02-2024, 08:06 AM
            0 responses
            19 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-30-2024, 12:17 PM
            0 responses
            20 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-29-2024, 10:49 AM
            0 responses
            28 views
            0 likes
            Last Post seqadmin  
            Working...
            X