VEP annotated VCF has CHROM, POS, REF, ALT , INFO, FORMAT : genotype. I would like to convert this VCF as tab delimited file where I can get INFO column will be tab delimited
Like Chr Pos ID Ref Alt Filter INFO ALLELE Consequence IMPACT SYMBOL Gene Feature_type Feature BIOTYPE EXON INTRON HGVS HGVSp cDNA_position|CDS_position Protein_position Amino_acids Codons Existing_variation ALLELE_NUM DISTANCE STRAND FLAGS VARIANT CADD etc All colums values will be splitted as tab separated
You have tagged this with
bcftools
already. Have you read the documentation for the split-vep plugin?When I am doing with bcftools, it is showing only columns CHROM, REF, ALt etcc...I am not getting to split the other columns with headers like: ALLELE VARIANT FEATURE_type PROTEIN gnomADg_AF ....
I tried this bcftools +split-vep test/split-vep.vcf -f '%CHROM:%POS %CSQ\n' -d -A tab
But this command does not give any header information. I need header also like which column value belongs to which column.
The columns are in the same order that you specified them. Multiple values will be delimited by a comma unless you specify
--duplicate
which will generate one line per transcript.Should I apply into this: bcftools +split-vep test/split-vep.vcf -f -duplicate '%CHROM:%POS %CSQ\n' -d -A tab