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

Error: failed loading target haplotypes #76

Open
TheRainInSpain opened this issue Jul 10, 2024 · 5 comments
Open

Error: failed loading target haplotypes #76

TheRainInSpain opened this issue Jul 10, 2024 · 5 comments

Comments

@TheRainInSpain
Copy link

Hi, I mmeet an error like below, I have no idea why this happens, I asked ChatGPT and it told me that in this position, it contains both haploid and diploid genotypes, But I checked the target.vcf file and found that in that position, it only contains diploid genotypes. Can anyone help me to solve the issue?

minimac4 -r Chr01 ref.msav target.vcf.gz -o imputed.vcf.gz
minimac v4.1.6

Imputing Chr01:1-1900000 ...
Loading target haplotypes ...
Error: Sample 009 changes ploidy at Chr01:135680
Error: failed loading target haplotypes

Thanks a lot.

@jonathonl
Copy link
Contributor

The error message is saying that sample 009 has a ploidy at position 135680 that is different than that sample's ploidy at the preceding variant.

@TheRainInSpain
Copy link
Author

Hi, which preceding variant is related to the ploidy. I did not find that in the help message after run command minimac4 -h

@jonathonl
Copy link
Contributor

You should be looking at the variant immediately preceding the one reported in the error message. A sample needs to have consistent ploidy for the entire region being imputed.

@TheRainInSpain
Copy link
Author

Thank you so much and I have solved that issue. But I meet another issue which is :
Error: not enough target variants are available to impute this chunk. The --min-ratio, --chunk, or --region options may need to be altered.
I wonder what caused this issue.

@jonathonl
Copy link
Contributor

The most likely cause is that your array data doesn't have have enough variants present in the chunk being imputed.

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