biopython v1.71.0 Bio.PopGen.GenePop.Controller.GenePopController
Initializes the controller.
genepop_dir is the directory where GenePop is.
The binary should be called Genepop (capital G)
Link to this section Summary
Functions
Calculates isolation by distance statistics
Global Hardy-Weinberg test for heterozygote deficiency/excess
Hardy-Weinberg test for heterozygote deficiency/excess
Calculates allele and genotype frequencies per locus and per sample
Executes GenePop and gets Fst/Fis/Fit (all populations)
Calculates isolation by distance statistics for diploid data
Calculates isolation by distance statistics for haploid data
Global Hardy-Weinberg test for heterozygote deficiency
Global Hardy-Weinberg test for heterozygote excess
Hardy-Weinberg test for heterozygote deficiency
Hardy-Weinberg test for heterozygote deficiency
Hardy-Weinberg test based on probability
Link to this section Functions
Calculates isolation by distance statistics.
Global Hardy-Weinberg test for heterozygote deficiency/excess.
Returns a triple with:
- A list per population containing (pop_name, P-val, SE, switches). Some pops have a None if the info is not available. SE might be none (for enumerations).
- A list per loci containing (locus_name, P-val, SE, switches). Some loci have a None if the info is not available. SE might be none (for enumerations).
- Overall results (P-val, SE, switches).
Hardy-Weinberg test for heterozygote deficiency/excess.
Returns a population iterator containing a dictionary where dictionary[locus]=(P-val, SE, Fis-WC, Fis-RH, steps).
Some loci have a None if the info is not available. SE might be none (for enumerations).
Calculates allele and genotype frequencies per locus and per sample.
Parameters:
- fname - file name
Returns tuple with 2 elements:
Population iterator with
- population name
- Locus dictionary with key = locus name and content tuple as Genotype List with (Allele1, Allele2, observed, expected) (expected homozygotes, observed hm, expected heterozygotes, observed ht) Allele frequency/Fis dictionary with allele as key and (count, frequency, Fis Weir & Cockerham)
- Totals as a pair
- count
- Fis Weir & Cockerham,
- Fis Robertson & Hill
Locus iterator with
- Locus name
- allele list
Population list with a triple
- population name
- list of allele frequencies in the same order as allele list above
- number of genes
Will create a file called fname.INF
Executes GenePop and gets Fst/Fis/Fit (all populations)
Parameters:
- fname - file name
Returns:
- (multiLocusFis, multiLocusFst, multiLocus Fit),
- Iterator of tuples (Locus name, Fis, Fst, Fit, Qintra, Qinter)
Will create a file called fname.FST
.
This does not return the genotype frequencies.
Calculates isolation by distance statistics for diploid data.
See _calc_ibd for parameter details.
Note that each pop can only have a single individual and the individual name has to be the sample coordinates.
Calculates isolation by distance statistics for haploid data.
See _calc_ibd for parameter details.
Note that each pop can only have a single individual and the individual name has to be the sample coordinates.
Global Hardy-Weinberg test for heterozygote deficiency.
Returns a triple with:
- An list per population containing (pop_name, P-val, SE, switches). Some pops have a None if the info is not available. SE might be none (for enumerations).
- An list per loci containing (locus_name, P-val, SE, switches). Some loci have a None if the info is not available. SE might be none (for enumerations).
- Overall results (P-val, SE, switches).
Global Hardy-Weinberg test for heterozygote excess.
Returns a triple with:
- A list per population containing (pop_name, P-val, SE, switches). Some pops have a None if the info is not available. SE might be none (for enumerations).
- A list per loci containing (locus_name, P-val, SE, switches). Some loci have a None if the info is not available. SE might be none (for enumerations).
- Overall results (P-val, SE, switches)
Hardy-Weinberg test for heterozygote deficiency.
Returns a population iterator containing a dictionary wehre dictionary[locus]=(P-val, SE, Fis-WC, Fis-RH, steps).
Some loci have a None if the info is not available. SE might be none (for enumerations).
Hardy-Weinberg test for heterozygote deficiency.
Returns a population iterator containing a dictionary where dictionary[locus]=(P-val, SE, Fis-WC, Fis-RH, steps).
Some loci have a None if the info is not available. SE might be none (for enumerations).
Hardy-Weinberg test based on probability.
Returns 2 iterators and a final tuple:
Returns a loci iterator containing:
- A dictionary[pop_pos]=(P-val, SE, Fis-WC, Fis-RH, steps). Some pops have a None if the info is not available. SE might be none (for enumerations).
- Result of Fisher’s test (Chi2, deg freedom, prob).
Returns a population iterator containing:
- A dictionary[locus]=(P-val, SE, Fis-WC, Fis-RH, steps). Some loci have a None if the info is not available. SE might be none (for enumerations).
- Result of Fisher’s test (Chi2, deg freedom, prob).
- Final tuple (Chi2, deg freedom, prob).