Python API#
Import admix-kit as:
import admix
Association testing#
Marginal association testing for one SNP at a time |
Genetic correlation across local ancestry#
Note
For genetic correlation analyis, because of involvement of multiple steps, it is recommended to use the command line interface admix genet-cor
to perform the analysis. See here for details.
Calculate the admix GRM for a given pfile |
|
Merge multiple GRM matrices |
|
Estimate genetic correlation |
Polygenic scoring#
Given a vector of polygenic score weights, calculate polygenic scores with regard to every ancestry backgrounds for each individual. |
Data structures: admix.Dataset
#
Data structure to contain genotype and local ancestry. |
Simulation: admix.simulate
#
Simulate admixed genotype |
|
Simulate continuous phenotype of admixed individuals [continuous] |
|
Simulate under liability threshold. |
|
Simulate quantative phenotype for a single population [continuous] |
|
Simulate continuous phenotype of admixed individuals [continuous] using GRM |
Data management: admix.data
#
Get allele count per ancestry |
|
Calculate allele frequency per ancestry |
Input and output: admix.io
#
Read a dataset from a directory. |
|
Read local ancestry with .lanc format |
|
Assign local ancestry to a dataset. |
External tools: admix.tools
#
Lift over a plink file to another genome. |
Plot: admix.plot
#
Plot local ancestry. |
|
Plot admixture. |
|
Manhatton plot of p-values |
|
qq plot of p-values |