Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • deancastillo
    Junior Member
    • Sep 2014
    • 2

    Issues with Fst from vcftools

    I am having issues getting Fst values from vcftools that make sense (in range from 0 to 1). I think there is an issue with how alleles are being called (maybe issue with the vcf file?).
    I have 2 populations with 4 individuals from each population (8 lines total). I have vcf files of each population separately (4 individuals in each of 2 files) and then a vcf file with all 8 individuals. When I look at allele counts for all 8 individuals it is incorrect (not the sum of allele counts if I add counts from the 2 files that contain only 4 individuals)
    Below are allele counts for a single gene. Allele counts for pos 702 look correct to me and so do counts for pos 51 (assuming pop2 is all A), but the other two sites are not correct even though site 12 has variants in both populations.
    Does someone have an idea of what may be going wrong?
    Each vcf file was generated from mpileup with the exact same command just differing the number and identity of the sorted .bam files

    Pop1
    CHROM POS N_ALLELES N_CHR {ALLELE:COUNT}
    Dpse-Amy3-PA 12 2 8 T:3 G:5
    Dpse-Amy3-PA 51 2 8 A:0 G:8
    Dpse-Amy3-PA 702 2 8 T:4 C:4

    Pop2
    CHROM POS N_ALLELES N_CHR {ALLELE:COUNT}
    Dpse-Amy3-PA 10 2 8 A:3 C:5
    Dpse-Amy3-PA 12 2 8 T:3 G:5
    Dpse-Amy3-PA 702 2 8 T:2 C:6

    Both Pops
    CHROM POS N_ALLELES N_CHR {ALLELE:COUNT}
    Dpse-Amy3-PA 10 2 16 A:0 C:16
    Dpse-Amy3-PA 12 2 16 T:0 G:16
    Dpse-Amy3-PA 51 2 16 A:8 G:8
    Dpse-Amy3-PA 702 2 16 T:6 C:10
  • bio_informatics
    Senior Member
    • Nov 2013
    • 182

    #2
    If you do not get a reply here, you may use their [VCFtools'] mailing list for help. They will reply.
    Bioinformaticscally calm

    Comment

    • dschika
      Member
      • Mar 2010
      • 56

      #3
      I also think [VCFtools] mailing list is best for questions about VCFtools.

      Nevertheless, how were the vcf files generated? Did you merge your single individual vcf files into one containing all 8 individuals?
      Have you had a look at the vcf files to see what is reported there e.g. at position 12?

      Btw: Fst values calculated with VCFtools can be slightly negative.

      Comment

      • deancastillo
        Junior Member
        • Sep 2014
        • 2

        #4
        The bcf files were generated using samtools mpileup. In the mpileup command I listed all 8 bam files, one bam file per sample (or 4 for the two smaller vcf files). I then converted to vcf with bcftols -view.

        In the vcf files the allele counts are the same as the output from vcftools.
        At position 12 for the whole sample all individuals are 1/1 meaning they are homozygous for the "G" but this is not true according to the smaller vcf files

        I will also try the vcf mailing list, thank you both for this suggestion

        Comment

        • dschika
          Member
          • Mar 2010
          • 56

          #5
          In the vcf files the allele counts are the same as the output from vcftools.
          If the numbers in the vcf file are already different, you do not have issues with VCFtools.

          Do you apply any filters during vcf file generation, e.g. minimum coverage per individual?

          Comment

          • clarissaboschi
            Member
            • Apr 2010
            • 63

            #6
            no Fst result

            I am also having problems to analyze my vcf file with VCFtools (to get Fst statistics).

            I have one vcf file from samtools of multiple samples (2 different popultions, 28 samples)
            I used the command line:
            HTML Code:
            vcftools --vcf  inputfile.vcf --weir-fst-pop pop1_members.pop --weir-fst-pop pop2_members.pop
            But in my results there is no value for Fst, only "-nan"

            cat out.weir.fst | head
            CHROM POS WEIR_AND_COCKERHAM_FST
            Chr10 19 -nan
            Chr10 31 -nan
            Chr10 133 -nan
            Chr10 247 -nan
            ....

            What could be the issue? My vcf file seems ok.

            Comment

            • dschika
              Member
              • Mar 2010
              • 56

              #7
              Are the names of the samples in the vcf and the population files exactly the same?

              Comment

              • clarissaboschi
                Member
                • Apr 2010
                • 63

                #8
                Dear dschika,
                This was the issue!! Thanks very much for your help

                Clarissa

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                  by SEQadmin2


                  Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                  The systematic characterization of the human proteome has
                  ...
                  07-20-2026, 11:48 AM
                • SEQadmin2
                  Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                  by SEQadmin2



                  Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                  ...
                  07-09-2026, 11:10 AM
                • SEQadmin2
                  Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                  by SEQadmin2



                  Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                  There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                  07-08-2026, 05:17 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 07-24-2026, 12:17 PM
                0 responses
                18 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-23-2026, 11:41 AM
                0 responses
                18 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-20-2026, 11:10 AM
                0 responses
                25 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 07-13-2026, 10:26 AM
                0 responses
                38 views
                0 reactions
                Last Post SEQadmin2  
                Working...