SkillAgentSearch skills...

KAML

:bicyclist: Kinship Adjusted Multi-Loci Best Linear Unbiased Prediction

Install / Use

/learn @YinLiLin/KAML
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

KAML <img alt="Hits" src="https://hits.sh/github.com/YinLiLin/KAML.svg?view=today-total&label=Today%2FTotal%20Visitors&extraCount=4872"/>

Kinship Adjusted Multiple Loci Best Linear Unbiased Prediction

Contents


OVERVIEW

KAML is designed to predict genetic values using genome-wide or chromosome-wide SNPs for either simple traits that controlled by a limited number of major genes or complex traits that influenced by many polygenes with minor effects. In brief, KAML provides a flexible assumption to accommodate traits of various genetic architectures and incorporates pseudo-QTNs as fixed effect terms and a trait-specific random effect term under the LMM framework. The model parameters are optimized using the information of bootstrap strategy based GWAS results in a parallel accelerated machine learning procedure combing cross-validation, grid search and bisection algorithms. For more statistical methods under the BLUP Framework please see our developed package HIBLUP (https://www.hiblup.com).

<!-- <p align="center"> <a target="_blank" href="https://camo.githubusercontent.com/6af206ddeaf9b5fdd9b944e82e7b5d698f29ccbf/687474703a2f2f6c617465782e636f6465636f67732e636f6d2f6769662e6c617465783f253742793d58622b253742253543636f6c6f7225374252656425374451712537442b5a253742253543636f6c6f722537425265642537442535436d752537442b653b2535436d7525354373696d2537424e25374428302c253742253543636f6c6f722537425265642537444b2537442535437369676d612535452537423225374429253744"><img src="https://camo.githubusercontent.com/6af206ddeaf9b5fdd9b944e82e7b5d698f29ccbf/687474703a2f2f6c617465782e636f6465636f67732e636f6d2f6769662e6c617465783f253742793d58622b253742253543636f6c6f7225374252656425374451712537442b5a253742253543636f6c6f722537425265642537442535436d752537442b653b2535436d7525354373696d2537424e25374428302c253742253543636f6c6f722537425265642537444b2537442535437369676d612535452537423225374429253744" alt="equation" data-canonical-src="http://latex.codecogs.com/gif.latex?%7By=Xb+%7B%5Ccolor%7BRed%7DQq%7D+Z%7B%5Ccolor%7BRed%7D%5Cmu%7D+e;%5Cmu%5Csim%7BN%7D(0,%7B%5Ccolor%7BRed%7DK%7D%5Csigma%5E%7B2%7D)%7D" style="max-width:100%;"> </a> </p> <p align="center"> <a target="_blank" href="https://camo.githubusercontent.com/9f1a2f99488778d874d22d6720f1a5bd946cccf1/687474703a2f2f6c617465782e636f6465636f67732e636f6d2f6769662e6c617465783f2537424b5f253742696a2537443d25354366726163253742312537442537426d25374425354373756d5f2537426b3d312537442535452537426d25374425354366726163253742284d5f253742696b2537442d32705f2537426b25374429253742253543636f6c6f7225374252656425374425354378695f2537426b253744253744284d5f2537426a6b2537442d32705f2537426b2537442925374425374232705f2537426b25374428312d705f2537426b25374429253744253744"><img src="https://camo.githubusercontent.com/9f1a2f99488778d874d22d6720f1a5bd946cccf1/687474703a2f2f6c617465782e636f6465636f67732e636f6d2f6769662e6c617465783f2537424b5f253742696a2537443d25354366726163253742312537442537426d25374425354373756d5f2537426b3d312537442535452537426d25374425354366726163253742284d5f253742696b2537442d32705f2537426b25374429253742253543636f6c6f7225374252656425374425354378695f2537426b253744253744284d5f2537426a6b2537442d32705f2537426b2537442925374425374232705f2537426b25374428312d705f2537426b25374429253744253744" alt="equation" data-canonical-src="http://latex.codecogs.com/gif.latex?%7BK_%7Bij%7D=%5Cfrac%7B1%7D%7Bm%7D%5Csum_%7Bk=1%7D%5E%7Bm%7D%5Cfrac%7B(M_%7Bik%7D-2p_%7Bk%7D)%7B%5Ccolor%7BRed%7D%5Cxi_%7Bk%7D%7D(M_%7Bjk%7D-2p_%7Bk%7D)%7D%7B2p_%7Bk%7D(1-p_%7Bk%7D)%7D%7D" style="max-width:100%;"> </a> </p> <p align="center"> <a target="_blank" href="https://camo.githubusercontent.com/844a26b674cc2acbc1f0c3ef08dd55c074ffb475/687474703a2f2f6c617465782e636f6465636f67732e636f6d2f6769662e6c617465783f25374225354378695f2537426b2537442535436d696428253543616c7068612c253543626574612925354373696d253543626567696e25374263617365732537443126253543746578742537423b253744312d25354362657461264c6f675f253742253543616c70686125374428505f2537426d253543626574612b31253744292d4c6f675f253742253543616c70686125374428505f2537426d253543626574612537442926253543746578742537423b25374425354362657461253543656e642537426361736573253744253744"><img src="https://camo.githubusercontent.com/844a26b674cc2acbc1f0c3ef08dd55c074ffb475/687474703a2f2f6c617465782e636f6465636f67732e636f6d2f6769662e6c617465783f25374225354378695f2537426b2537442535436d696428253543616c7068612c253543626574612925354373696d253543626567696e25374263617365732537443126253543746578742537423b253744312d25354362657461264c6f675f253742253543616c70686125374428505f2537426d253543626574612b31253744292d4c6f675f253742253543616c70686125374428505f2537426d253543626574612537442926253543746578742537423b25374425354362657461253543656e642537426361736573253744253744" alt="equation" data-canonical-src="http://latex.codecogs.com/gif.latex?%7B%5Cxi_%7Bk%7D%5Cmid(%5Calpha,%5Cbeta)%5Csim%5Cbegin%7Bcases%7D1&amp;%5Ctext%7B;%7D1-%5Cbeta&amp;Log_%7B%5Calpha%7D(P_%7Bm%5Cbeta+1%7D)-Log_%7B%5Calpha%7D(P_%7Bm%5Cbeta%7D)&amp;%5Ctext%7B;%7D%5Cbeta%5Cend%7Bcases%7D%7D" style="max-width:100%;"> </a> </p> -->

KAML is developed by Lilin Yin with the help of Haohao Zhang, and Xiaolei Liu* at the Huazhong(Central China) Agricultural University.

If you have any bug reports or questions, please feed back :point_right:here:point_left:, or send email to xiaoleiliu@mail.hzau.edu.cn


CITATION

Yin, L., Zhang, H., Zhou, X. et al. KAML: improving genomic prediction accuracy of complex traits using machine learning determined parameters. Genome Biol 21, 146 (2020). https://doi.org/10.1186/s13059-020-02052-w


:toolbox: RELEVANT SOFTWARE TOOLS FOR GENETIC ANALYSES AND GENOMIC BREEDING

<table> <tr> <td><g-emoji class="g-emoji" alias="mailbox" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4eb.png">📫</g-emoji> <strong><a href="https://www.hiblup.com/" rel="nofollow">HIBLUP</a></strong>: Versatile and easy-to-use GS toolbox.</td> <td><g-emoji class="g-emoji" alias="four_leaf_clover" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f340.png">🍀</g-emoji> <strong><a href="https://github.com/xiaolei-lab/SIMER">SIMER</a></strong>: data simulation for life science and breeding.</td> </tr> <tr> <td><g-emoji class="g-emoji" alias="swimmer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f3ca.png">🏊</g-emoji> <strong><a href="https://github.com/YinLiLin/hibayes">hibayes</a></strong>: A Bayesian-based GWAS and GS tool.</td> <td><g-emoji class="g-emoji" alias="mountain_snow" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f3d4.png">🏔️</g-emoji> <strong><a href="http://ianimal.pro/" rel="nofollow">IAnimal</a></strong>: an omics knowledgebase for animals.</td> </tr> <tr> <td><g-emoji class="g-emoji" alias="postbox" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4ee.png">📮</g-emoji> <strong><a href="https://github.com/xiaolei-lab/rMVP">rMVP</a></strong>: Efficient and easy-to-use GWAS tool.</td> <td><g-emoji class="g-emoji" alias="bar_chart" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4ca.png">📊</g-emoji> <strong><a href="https://github.com/YinLiLin/CMplot">CMplot</a></strong>: A drawing tool for genetic analyses.</td> </tr> </table>

GETTING STARTED

KAML is written in R language, it is recommended to link MKL (Math Kernel Library) or OpenBLAS with R for fast computing with big data (see how to link MKL with R), because the BLAS/LAPACK library can be accelerated automatically in multi-threads, which would significantly reduce computational time.

Installation

(1) KAML can be installed with "devtools" by using the following R codes:

#if "devtools" isn't installed, please "install.packages(devtools)" first.
devtools::install_github("YinLiLin/KAML")

(2) If you get trouble in installing "devtools", try to install it locally as following:

# install required packages first
R> pkg <- c("RcppArmadillo", "RcppEigen", "RcppProgress", "bigmemory", "gaston", "RhpcBLASctl")
R> new.pkg <- pkg[!(pkg %in% installed.packages()[,"Package"])]
R> if(length(new.pkg)) install.packages(new.pkg)
shell$ git clone https://github.com/YinLiLin/KAML
shell$ R CMD INSTALL KAML

After installed successfully, the KAML package can be loaded by typing

library(KAML)

Typing ?KAML could get the details of all parameter

Related Skills

View on GitHub
GitHub Stars47
CategoryEducation
Updated1mo ago
Forks13

Languages

R

Security Score

95/100

Audited on Feb 11, 2026

No findings