script to write intersected bed files into gff format