Code:
awk '{ for(i=1; i<=NF; i++) if($5 == "+" && $6 ~/CD/) { print index($6, "CD"),"\t",length($6),"\t",$0,"\t", "YCDY";} else if ($5 == "-" && $6 ~/CD/) { print index($6,"CD"),"\t",length($6),"\t",$0,"\t", "YDCY";} else if ($5 == "+" && $6 ~/DBCADB/) { print index($6,"DBCADB"),"\t",length($6),"\t",$0,"\t", "DBCADB";} else if ($5 == "-" && $6 ~/DBCADB/) { print index($6,"DBCADB"),"\t",length($6),"\t",$0,"\t", "BDACBD";} }' input1 |awk '{if ($7 == "+" && $9 == "DBCADB") print $3,"\t",$4+$1,"\t",($4+$1)+6,"\t",$0; else if ( $7 == "-" && $9 == "BDACBD") print $3,"\t", ($4+$1)-6,"\t",$4+$1,"\t",$0; else if ($7 == "+" && $9 == "YCDY") print $3,"\t",($4+$1)-2,"\t",($4+$1)+2,"\t",$0; else if ($7 == "-" && $9 == "YDCY") print $3,"\t",($4+$1)-2,"\t",($4+$1)+2,"\t",$0}'|awk '!a[$0]++'|awk '{print $1,"\t",$2,"\t",$3,"\t", $9,"\t",$10,"\t",$12,"\t",$11}'