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

AKT PCA....Bad genotypes #41

Open
gaochengPRC opened this issue Jul 4, 2022 · 6 comments
Open

AKT PCA....Bad genotypes #41

gaochengPRC opened this issue Jul 4, 2022 · 6 comments

Comments

@gaochengPRC
Copy link

Hi,

When I used akt pca, I got such message


MAF lower bound: 0
Thin: 1
Number principle components: 20
Reading data...
984 samples
Bad genotypes at 1:758351


Ca you explain to me what does "Bad genotype" mean in the message? How should I handle with this issue?

Thank you!

@jaredo
Copy link
Contributor

jaredo commented Jul 5, 2022

It could not parse the genotype filed at that position. What does bcftools view -H -r 1:758351 look like in your data?

@gaochengPRC
Copy link
Author

1 758351 1:693731 A G . PASS AF=0.12008;MAF=0.12008;R2=0.57058;AN=6762;AC=1299 DS 0.037 0.766 0.036 0.078 ......

It looks normal, so I am very confused!!!

@jaredo
Copy link
Contributor

jaredo commented Jul 5, 2022

The software requires the FORMAT/GT field to be present, it cannot use imputed dosages (FORMAT/DS).

@jaredo
Copy link
Contributor

jaredo commented Jul 5, 2022

You could convert your dosages to hard genotypes but I think you would be better off running PCA on the microarray genotypes rather than imputed ones.

@gaochengPRC
Copy link
Author

One way I am doing is to convert vcf dosage file to plink format, but it will lose some information because it will round dosage values to 0,1,2. I do not know whether there is a better way..... Thank you so much!

@jaredo
Copy link
Contributor

jaredo commented Jul 5, 2022

PLINK1.9 also has fast randomized PCA routines these days and may be a better choice.

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