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

setGT problem with phased genotypes #1844

Closed
VLoegler opened this issue Jan 6, 2023 · 1 comment
Closed

setGT problem with phased genotypes #1844

VLoegler opened this issue Jan 6, 2023 · 1 comment

Comments

@VLoegler
Copy link

VLoegler commented Jan 6, 2023

Hi,

I'm using setGT to change half missing genotypes (./1) to fully missing genotypes. The problem is that I have some phased genotypes (ex: 0|. 2|.) and setGT doesn't handle these one.

Here is the command I used:

bcftools +setGT -- -t ./x -n .

The possibility to have -t .|x would be very useful.

@pd3 pd3 closed this as completed in dfdb092 Jan 13, 2023
@pd3
Copy link
Member

pd3 commented Jan 13, 2023

The usage page suggests that both phased and unphased half-missing genotypes are supported

./x  .. partially missing (e.g., "./0" or ".|1" but not "./.")

however, it turns out that was not the case.

The bug is now fixed, thanks for reporting the issue.

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