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 phasing(phase_common):AC field is needed in file #23

Closed
jikhashkya opened this issue Apr 9, 2023 · 4 comments
Closed

Error phasing(phase_common):AC field is needed in file #23

jikhashkya opened this issue Apr 9, 2023 · 4 comments

Comments

@jikhashkya
Copy link

Hi,

I'm using shapeit5 to phase HGDP chr14 VCF file and I get the following error:

Reading genotype data:
  * VCF/BCF scanning ...
ESC[31mERROR: ESC[0mAC field is needed in file

Not entirely sure, where the AC field is missing. Any help would be appreciated.

@VNakhonsri
Copy link

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

@VNakhonsri
Copy link

I found this is problem with v5.1.0.
I tried downloading SHAPEIT5_phase_common_static_v1.0.0 and it works just fine with my data.

@odelaneau
Copy link
Owner

odelaneau commented Apr 22, 2023 via email

@GiulioCentorame
Copy link

Hi,
Thank you for writing this! I was just wondering: how is AC and AN used by SHAPEIT5? I am asking as I am interested in phasing only a subset of individuals, and I am unsure whether to annotate before or after filtering by samples.
Thank you in advance for the information!

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

4 participants