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

HATCHet fails with new version of bcftools 1.21 #227

Open
simozacca opened this issue Oct 12, 2024 · 0 comments
Open

HATCHet fails with new version of bcftools 1.21 #227

simozacca opened this issue Oct 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@simozacca
Copy link
Contributor

simozacca commented Oct 12, 2024

The new version of bcftools 1.21 requires to specify that the AD field is in INFO in the query command used by HATCHet in

https://github.com/raphael-group/hatchet/blob/783058042cc3ef78b3f46ff7478edb5b6dfd9f44/src/hatchet/utils/count_alleles.py#L236C22-L236C53

Specifically, the following command of bcftools called by HATCHet fails and hang with the new version of bcftools 1.21:

bcftools mpileup ${BAM} -Ou -f ${REF} --skip-indels -a INFO/AD -q 13 -Q 13 -d 30 | bcftools query -f '%CHROM\\t%POS\\t%REF,%ALT\\t%AD\\n' -i 'SUM(AD)<=1000 & SUM(AD)>=1' > output

failing with the message:

[mpileup] 1 samples in 1 input files
Error: ambiguous filtering expression, both INFO/AD and FORMAT/AD are defined in the VCF header.

The temporary solution is to install HATCHet with a previous version of samtools/bcftools, like 1.19, after correct setting up of bioconda channells:

conda config --add channels bioconda
conda config --add channels conda-forge
conda config --set channel_priority strict

conda create -n hatchet hatchet "bcftools==1.19" "samtools==1.19"

In the meanwhile, @mmyers1 can we please fix this by making the bcftools command compatible, or changing bioconda recipe of HATCHet to only use a compatible version of bcftools/samtools please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants