I want to manipulate (acutally add information to) the vcf file and its header information. I tried using sed in linux but just couldn't understand it.
It original vcf file looks like:
CHROM POS REF ALT
1 69 A G
1 75 C T
1 85 G A
I want to add the "ID" field after the 2nd column and replace the value for this field with "." Additionally I want to add other fields "QUAL", "FILTER" and "INFO" after the last column. All the columns should be tab separated and finally should look like.
CHROM POS ID REF ALT QUAL FILTER INFO
1 69 . A C . . .
1 75 . G A . . .
1 87 . C A . . .
1 88 . T C . . .
Thanks much in advance !