how to remove FORMAT field in vcf field
1
0
Entering edit mode
10 months ago
Karibu • 0

Hello everyone

I wish to remove genotypes, or FORMAT field, and individual sample ID columns, or names from the vcf file. It is possible to do it with bcftools. I tried to find a specific command for this task but failed. I would appreciate it if you could assist with which command I can use to remove individual sample ID, not variants ID, and FORMAT Field in vcf files.

Many thanks

genotypes vcf • 835 views
ADD COMMENT
1
Entering edit mode
10 months ago
bcftools annotate -x 'FORMAT/ABCD' 

bcftools view --samples [^]LIST             Comma separated list of samples to include (or exclude with "^" prefix).
ADD COMMENT
0
Entering edit mode

Hi Pierre Lindenbaum. I appreciate your help. – the command you shared above worked.

I was able to remove that information.

ADD REPLY

Login before adding your answer.

Traffic: 1486 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