Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The numbers of SNPs are not consistent #26

Open
JingjingBai2021 opened this issue May 11, 2023 · 1 comment
Open

The numbers of SNPs are not consistent #26

JingjingBai2021 opened this issue May 11, 2023 · 1 comment

Comments

@JingjingBai2021
Copy link

Hi , I am using Hibag for HLA imputation. My dataset is GSA genotyped data.

I found when I use the function "hlaBED2Geno" to import the genotype data, there are around 8000 SNPS in the MHC region. But when I use plink to extract MHC region from my genotype data, there are around 40,000 SNPs.

I am wondering where the discrepancy comes from. And for the HLA Manhattan plot, I am trying to merge the SNPs in the MHC region with imputed HLA alleles. Is there any function that I can use in HIBAG to accomplish that?

Thank you in advance!

@zhengxwen
Copy link
Owner

     hlaBED2Geno(bed.fn, fam.fn, bim.fn, rm.invalid.allele=FALSE,
         import.chr="xMHC", assembly="auto", verbose=TRUE)

Set import.chr="6", try it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants