# takes two lists of segments for two genes, check if the first list is an inversion of the second one (if the segments in common are on the opposite strand)
defdetect_feature_inversion(list_1,list_2):
# target_dict=dict.fromkeys(target_list,"")
# convert list into dict with unstranded segment id as key and strand as value