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

cannot determine the root allele #12

Open
coopergrace opened this issue Jul 7, 2020 · 0 comments
Open

cannot determine the root allele #12

coopergrace opened this issue Jul 7, 2020 · 0 comments

Comments

@coopergrace
Copy link

I've come across an issue when trying to convert .acf to .beta for use with BetaScan.

I can generate acf files using the command:
glactools vcfm2acf --onlyGT --fai ref.fai pops.chr9.vcf > pops.chr9.acf

and the format looks fine, e.g.

#chr    coord   REF,ALT   root       anc     pop1    pop2    pop3    pop4
9       5895    G,T       0,0:0      0,0:0   49,60:0 0,0:0   0,0:0   0,0:0
9       5929    A,G       0,0:0      0,0:0   0,0:0   14,16:0 0,0:0   0,0:0
9       5979    T,G       1,26:0    1,26:0   0,0:0   0,0:0   0,0:0   77,5:0

where each population was extracted from a multi sample vcf with the vcftools flag --mac 1. I then merged the samples into the populations and set the root and anc as detailed in the README.

Converting from acf to beta:
glactools acf2betascan --useroot pops.rooted.chr9.acf.gz | gzip > pops.rooted.chr9.beta.txt.gz

is when I receive the error for the majority of positions:
Cannot determine the root allele for 9 5979 T,G 1,26:0 1,26:0 0,0:0 0,0:0 0,0:0 77,5:0

But then it reports:
Program ACF2BETASCAN looked at 1227 records, terminated gracefully

Yet the resulting beta.txt files are empty. Any ideas please?

Cheers

Cooper

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

1 participant