API reference¶
I/O module¶
|
Read a given BGEN file. |
|
Read a BIMBAM phenotype file. |
|
Read a CSV file. |
|
Read GEN files into Pandas data frames. |
|
Read the HDF5 limix file format. |
|
Read NumPy arrays saved in a file. |
|
Read PLINK files into Pandas data frames. |
Quality control¶
Box-Cox transformation for normality conformance. |
|
Compute minor allele frequencies. |
|
Count the number of missing values per column. |
|
|
Determine pair-wise independent variants. |
|
Impute |
|
Zero-mean and one-deviation normalisation. |
|
Variance rescaling of covariance matrix 𝙺. |
|
Normalize a sequence of values via rank and Normal c.d.f. |
|
Remove dependent columns. |
Filters out variants with the same genetic profile. |
Statistics¶
|
Mixture of 𝜒² distributions. |
|
Allele expectation. |
Compute allele frequency from its expectation. |
|
|
Compute dosage from allele expectation. |
|
Provide a couple of scores based on the idea of windows around genetic markers. |
|
Function to compute empirical p-values. |
|
Estimate Kinship matrix via linear kernel. |
|
Compute p-values from likelihood ratios. |
|
Test results and p-value correction for multiple tests. |
|
Draw random samples from a multivariate normal distribution. |
|
Principal component analysis. |
Heritability estimation¶
|
Estimate the so-called narrow-sense heritability. |
Variance decomposition¶
|
Variance decompositon through GLMMs. |
Quantitative trait loci¶
|
Multi-trait association and interaction testing via linear mixed models. |
|
Single-trait association with interaction test via generalized linear mixed models. |
Plotting & Graphics¶
|
Change to box aspect considering the plotted points. |
Consolidate multiple curves in a single one. |
|
|
Show an image. |
|
Plot heatmap of a kinship matrix. |
|
Example datasets. |
|
Produce a manhattan plot. |
|
Plot a fit of a normal distribution to the data in x. |
|
Plot the first two principal components of a design matrix. |
|
Plot number of hits across significance levels. |
|
Quantile-Quantile plot of observed p-values versus theoretical ones. |
|
Show an image. |
Get |
|
Shell utilities¶
|
Compute sha256 from a given file. |
|
Download file. |
|
Extract a compressed file. |
|
Remove file. |