Skip to content

tszfungc/HAMSTA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3fb345c · Sep 6, 2023
Oct 24, 2022
Jul 11, 2023
Sep 6, 2023
Apr 11, 2023
Nov 30, 2021
Jan 19, 2023
Nov 30, 2021
Oct 19, 2022
Nov 30, 2021
Nov 30, 2021
Nov 30, 2021
Nov 30, 2021
Nov 30, 2021
Jun 8, 2023
Sep 2, 2022
Nov 30, 2021
Oct 24, 2022
Oct 24, 2022
Sep 2, 2022
Aug 30, 2022
Oct 24, 2022

Repository files navigation

Documentation status

HAMSTA

Heritability estimation from Admixture Mapping Summary STAtistics

HAMSTA is a python package that estimate heritability explained by local ancestry using summary statistics from admixture mapping studies. It also quantifies inflation in test statistics that is not contributed by local ancestry effects, and determines significance threshold for admixture mapping.

Documentation

For API and detailed documentation, please check out http://tszfungc.github.io/HAMSTA/

Installation

git clone https://github.com/tszfungc/HAMSTA.git
cd HAMSTA
pip install -r requirement.txt
python setup.py install

Example

Perform SVD on local ancestry and regress out global ancestry in RFMIX output format.

hamsta preprocess \
    --rfmixfb example.fb.tsv AFR \
    --global-ancestry example.rfmix.Q \
    --out example

Estimate heritability explained by local ancestry using admixture mapping results (e.g. PLINK2 glm) and SVD results.

hamsta infer \
    --sumstat example.pheno.glm.linear \
    --svd example.U.npy example.S.npy \
    --out example.hamsta_result.txt

Reference

Chan, T.F., Rui, X., Conti, D.V., Fornage, M., Graff, M., Haessler, J., Haiman, C., Highland, H.M., Jung, S.Y., Kenny, E., et al. (2023). Estimating heritability explained by local ancestry and evaluating stratification bias in admixture mapping from summary statistics. bioRxiv. 10.1101/2023.04.10.536252

Releases

No releases published

Packages

No packages published

Languages