Seperate males and females samples from trio.vcf
0
0
Entering edit mode
12 months ago
anasjamshed ▴ 120

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 • 418 views
ADD COMMENT

Login before adding your answer.

Traffic: 1255 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6