BCFTools Query: Avoid grouping Alt Alleles
0
0
Entering edit mode
5.6 years ago
jon.klonowski ▴ 210

I am trying to query my vcf but I am running into a problem, the output looks like this:

chr17 61615660 chr17:61615660:T:TG,TC T TG,TC

where the columns are

Chr Pos ID REF ALT

and the line of code is:

bcftools query File_Name.vcf.gz -f'%CHROM\t %POS\t %ID\t %REF\t %ALT\n' -i'GT="alt"' | bgzip >  output.txt.gz

Is there a way to tell bcftools query not to group the alt alleles?

Thank you in advance.

bcftools vcf 1000genomes annotation • 1.5k views
ADD COMMENT
0
Entering edit mode

I imagine iteratting over each sample would solve this

bcftools query File_Name.vcf.gz -f'%CHROM\t %POS\t %ID\t %REF\t [%ALT]\n' | bgzip >  output.txt.gz

wrong

ADD REPLY

Login before adding your answer.

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