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
                  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, 06-26-2026, 11:10 AM
                0 responses
                11 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-17-2026, 06:09 AM
                0 responses
                46 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-09-2026, 11:58 AM
                0 responses
                105 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-05-2026, 10:09 AM
                0 responses
                125 views
                0 reactions
                Last Post SEQadmin2  
                Working...