I made improved version of script.
I have a several questions to someone who know how dindel work:
1. Can we replace INV on DEL+INS?
2. Can we do the same for RPL and TD?
3. Do we need to change coordinates (say +1 for INS or DELS)?
Improved code is here:
Code:
cat XXXX_D.vcf XXXX_INV.vcf XXXX_SI.vcf XXXX_TD.vcf | awk '/DEL/ {pos=$2+1; print $1,"\t",pos,"\t-"substr($4,2)}; /RPL|INV/ {pos=$2+1; print $1,"\t",pos,"\t-"substr($4,2)"\n"$1,"\t",pos,"\t+"substr($5,2)}; /INS/ {pos=$2+1; print $1"\t"pos"\t+"substr($5,2)}' > XXXX-all.pindel.dindel
Leave a comment: