Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sfh838t
    Member
    • Apr 2014
    • 29

    #1

    more samtools SNP calling questions

    I have used the samtools/bcftools/vcfutils pipeline to do variant calling.
    step1:
    samtools mpileup -uf reference.fa align-file1.bam align-file2.bam | bcftools view -bvcg >unfiltered-variants.bcf
    step2:
    bcftools view unfiltered-variants.bcf | vcfutils.pl varFilter -D100 >filtered-variants.vcf

    This gives me about 30 variants in a format I can open in a spreadsheet.

    However, I would also like to see the unfiltered variant list, so it needs to be in vcf format. I should be able to do this by changing the first step bcftools arguments to -vcg and the output file name to *.vcf. Actually this works up to certain point and I get partial output which matches the filtered variants, but it crashes at a certain line and I get sync error the number of fields does not match.
    is there another way to just convert the bcf file into vcf to see all variants?

    my other concern is that just about ALL variants found are indels. I have used IGV to look at the aligned contigs and I clearly see a number of SNPs.
    I am trying to decipher the arguments it seems to me that the -c switch in bcftools should list SNPs?
    I have seen a number of pages and read other posts, some of which are similar but just not quite the answer I need.
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    1) It looks like you are using the pre-version 1 of samtools/bcftools. I don't blame you since samtools v.1 changed a bunch. I am still getting use to it. That said if you want to see a lot of SNPs using the old method then you could use the 'flat' prior via the switch '-P flat'

    2) GATK give you better SNP calls.

    Comment

    • sfh838t
      Member
      • Apr 2014
      • 29

      #3
      Thanks Rick. I have no training and I do not use any of these assorted tools often, so it is always new for me. I also dread the installation process of a program/tool more than anything! I guess the new version came out between the last time I was fiddling with this and now. I will see if I can find/work with GATK.
      Not sure what you mean by 'flat'?

      Comment

      • westerman
        Rick Westerman
        • Jun 2008
        • 1104

        #4
        Since I am not a statistician I would stumble trying to explain a 'prior' so I refer you to Wikipedia:



        Also quoting from Heng Li on the Samtools list from 2010:

        With any Bayesian SNP callers, you need a prior. Full is the standard Wright-Fisher infinite site prior. Flat is a flat prior and cond2 is the prior distribution conditional on hets discovered in two chromosomes, assuming Wright-Fisher.
        As mentioned above the old bcftools had three different set priors. The new bcftools using the 'call' option has a more variable set of priors as per:

        -P, --prior <float> mutation rate (use bigger for greater sensitivity)

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
          by SEQadmin2



          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
          ...
          10-14-2026, 09:55 AM
        • SEQadmin2
          New Genomics Technologies Take Aim at Long-Standing Limits
          by SEQadmin2


          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
          ...
          09-28-2026, 10:25 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        20 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        36 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        43 views
        0 reactions
        Last Post SEQadmin2  
        Working...