def convert_bed_coords_to_gff(interval):
 if isinstance(interval, GenomicInterval):
  interval.start += 1
  if isinstance(interval, GFFFeature):
   for subinterval in interval.intervals:
    convert_bed_coords_to_gff(subinterval)
 elif isinstance(interval, list):
  interval[0] += 1
 return interval

def convert_bed_coords_to_gff ( interval ) : if isinstance ( interval , GenomicInterval ) : interval . start += 1 if isinstance ( interval , GFFFeature ) : for subinterval in interval . intervals : convert_bed_coords_to_gff ( subinterval ) elif isinstance ( interval , list ) : interval [ 0 ] += 1 return interval
converts an interval objects coordinates from bed format to gff format .