Unconfigured Ad

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

    #1

    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
                  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, Yesterday, 11:13 AM
                0 responses
                17 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, Yesterday, 10:48 AM
                0 responses
                18 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
                42 views
                0 reactions
                Last Post SEQadmin2  
                Working...