This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Seperate males and females samples from trio.vcf

I have a file named trio_example.vcf and it contains 3 samples I am trying to follow the command to split the male and female sample out as I assume that all males are 0/1 and all females are 0/0.

bcftools view -f PASS -i 'GT~"0/0.*0/1.*0/1.*0/1.*0/1"' trio_example.vcf

But it does not work?After samples I want to use intersect command

vcf shell

0 answers

No answers yet.

Log in to answer this question.