Annotating Tabix Indexed Vcf
1
I would like to annotate a tabix indexed vcf. Thus, my input is a tabix file and my output should also be a tabix file. How can this be accomplished?
vcf
tabix
• 4.9k views
unzip your vcf, annotate it, sort, compress with bgzip and re-index with tabix.
gunzip -c yourfile.vcf.gz > tmp1.vcf
annotatetool1 tmp1.vcf > tmp2.vcf
annotatetool2 tmp2.vcf > tmp3.vcf
vcf-sort < tmp3.vcf | bgzip -c > annot.vcf.gz
tabix -p vcf annot.vcf.gz
If your tools use stdin and stdout, almost all the command lines below can fit into one pipeline
gunzip -c yourfile.vcf.gz | annotatetool1 | annotatetool2 | vcf-sort | bgzip -c > annot.vcf.gz && tabix -p vcf annot.vcf.gz
Login before adding your answer.