Question: Filtering vcf FORMAT?
3
gravatar for amber.zqt
21 months ago by
amber.zqt30
amber.zqt30 wrote:

I have a vcf file with contains GT:DS:GP for FORMAT field, how can i only keep the GT? The vcftools "--extract-FORMAT-info GT" command will at the same time filtering all other columns. But i wish to keep those.

snp vcf • 920 views
ADD COMMENTlink modified 21 months ago by Pierre Lindenbaum123k • written 21 months ago by amber.zqt30
3
gravatar for Pierre Lindenbaum
21 months ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum123k wrote:

https://samtools.github.io/bcftools/bcftools.html

... and "FORMAT" to remove all FORMAT tags except GT.

bcftools annotate -x 'FORMAT' in.vcf
ADD COMMENTlink modified 21 months ago • written 21 months ago by Pierre Lindenbaum123k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1718 users visited in the last hour