-
Notifications
You must be signed in to change notification settings - Fork 11
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 phasing(phase_common):AC field is needed in file #23
Comments
I have encountered the same problem when using static v5.1.0. bcftools +fill-tags myVCF.vcf.gz|head -1000|bcftools view -Oz -o myVCF.filtag.vcf.gz phase_common_static --input myVCF.filtag.vcf.gz |
I found this is problem with v5.1.0. |
Hi,
Version 5.1 requires that ALL input VCF/BCF files have the fields AC and AN
present (main, scaffold and reference).
Of note the VCF header need to be correct too.
Adding this fields can be done using:
- bcftool +filltag (slow)
- bcftools view -c 0 (fast)
- A tool that is there (fast): https://github.com/odelaneau/otools fillfreq
I bet that if the software complains, it is because of the scaffold or the
reference in your case.
Best,
Olivier Delaneau
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Sans
virus.www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Le mar. 18 avr. 2023 à 13:04, VNakhonsri ***@***.***> a
écrit :
… I have encountered the same problem when using static v5.1.0.
I tried using BCFtools +fill-tag to add AC,AN,MAF to my VCF input file.
But the error still exists.
Here are my command;
bcftools +fill-tags myVCF.vcf.gz|head -1000|bcftools view -Oz -o
myVCF.filtag.vcf.gz
bcftools index myVCF.filtag.vcf.gz
phase_common_static --input myVCF.filtag.vcf.gz
--scaffold ${Scaffold}/myscaffold_${chr_no}.vcf.gz
--region $chr_no
--map ${map}/${chr_no}.b38.gmap.gz
--reference myRef.${chr_no}.vcf.gz
--output ~/target.phased.bcf
--thread 1
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD4XTIKKSUVG3WNSCLBZ7CLXBZYMTANCNFSM6AAAAAAWYL6FZQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi, |
Hi,
I'm using shapeit5 to phase HGDP chr14 VCF file and I get the following error:
Not entirely sure, where the AC field is missing. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: