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

Problems defining ploidy with bcftools call #2351

Open
amankowski opened this issue Jan 7, 2025 · 1 comment
Open

Problems defining ploidy with bcftools call #2351

amankowski opened this issue Jan 7, 2025 · 1 comment

Comments

@amankowski
Copy link

Hello,

I am trying to run a combination of bcftools pileup and call, defining --ploidy 1. This however fails.

Command:
bcftools mpileup -a AD,DP,SP -Ou -f ${ref}.fasta ./${lib}.bam | bcftools call -f GQ,GP -cO z -o ${lib}.vcf.gz --ploidy 1
Error:
[mpileup] 1 samples in 1 input files
Failed to open -: unknown file type

During the first run, I didn't specify --ploidy and it ran through as expected.

Any help is highly appreciated.
Thanks a lot!
Anna

@pd3
Copy link
Member

pd3 commented Jan 25, 2025

Mmm, it does not seem like a problem with the --ploidy option. The error message suggests that the call command did not receive a valid BCF on input. The best way to check is to run the two commands sequentially

bcftools mpileup ... -Ou -o step1.bcf
bcftools call ... step1.bcf -o output.bcf

In case the problem really is with the --ploidy option, can you provide a small test case to reproduce the problem?

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