Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Mark
    Member
    • Nov 2008
    • 54

    alignment view and vcf disagree

    I have a pacbio CCS fastq file that I have aligned to a small (5037 bp) reference which is part of a sequenced BAC clone. I have aligned this data with multiple aligners (minimap2 and smalt), called variants with multiple variant callers (bbmap, freebayes, and gatk) and viewed the bam file with multiple viewers (igv and tablet). All produce similar results. I will focus here on minimap2 and callvariants (bbmap), as the problem likely stems from the variant caller and seqanswers is the preferred avenue for support for bbmap.
    Here is what I did:

    Code:
    minimap2 -t 5 -ax asm20 reference.fa  sample.ccs.fastq > out.sam
    samtools view -O BAM -o out.bam out.sam && samtools sort -o out.sort.bam out.bam && samtools index out.sort.bam
    callvariants.sh ploidy=1 in=out.sort.bam ref=reference.fa vcf=out.vcf
    A partial reading of callvariants log output:
    Code:
    1 of 3311 variants passed primary filters (0.0302%).
    Type            Count   Rate    AD      Depth   AF      Score   Qual
    Substitutions:  0       0.0%    0.0     0.0     0.000   0.0     0.0
    Deletions:      1       100.0%  619.0   1000.0  0.619   23.0    34.0
    Insertions:     0       0.0%    0.0     0.0     0.000   0.0     0.0
    Variation Rate: 1/5037
    Homozygous:     1       100.0%
    The single called variant (a deletion at the site of a homopolymer) is reported in the vcf.
    Code:
    #CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO    FORMAT  out.sort
    reference       1401    .       Tc      T       23.66   PASS    SN=0;STA=1401;STO=1402;TYP=DEL;R1P=338;R1M=281;R2P=0;R2M=0;AD=619;DP=1000;MCOV=-1;PPC=0;AF=0.6190;RAF=0.6190;LS=2996497;MQS=37140;MQM=60;BQS=21455;BQM=41;EDS=956749;EDM=4467;IDS=617766;IDM=999;NVC=0;FLG=0;CED=601;HMP=6;SB=0.9997    GT:DP:AD:AF:RAF:NVC:FLG:SB:SC:PF        1:1000:619:0.6190:0.6190:0:0:0.9997:23.66:PASS
    To my interpretation of this, a single "c" has been lost from the poly-C which starts at this position. Moreover this deletions occurs in 619 of 1000 reads covering this position.
    Now the strange part. When I view the alignment (out.sort.bam) in IGV (or Tablet), I see at most 1-2% indels at our near this site while the rest of the sequence is largely free of indels. Why is there this large discrepancy between what is observed in an alignment viewer and what is called by the variant caller (i.e. there are many more variant reads called than are observed on the viewer?

    Thank you for your help
    Last edited by Mark; 09-28-2020, 11:37 AM. Reason: Added [code] tags
  • Mark
    Member
    • Nov 2008
    • 54

    #2
    Turns out the problem was, not surprisingly, in IGV. By default IGV will not show one base pair deletions for what it perceives as PacBio sequence. I had unchecked the "hide indels" box in the 'alignment' preferences but there is a equivalent checkbox in the ' Third Gen' preferences I had overlooked. Uncheck it and viola.

    Comment

    Latest Articles

    Collapse

    • 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.
      Today, 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
    • SEQadmin2
      From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
      by SEQadmin2


      Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


      The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
      ...
      06-02-2026, 10:05 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Yesterday, 05:37 AM
    0 responses
    7 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-26-2026, 11:10 AM
    0 responses
    17 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-17-2026, 06:09 AM
    0 responses
    51 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-09-2026, 11:58 AM
    0 responses
    110 views
    0 reactions
    Last Post SEQadmin2  
    Working...