[seg,chrom,start,stop,strand]=[line[3][1:],line[0],int(line[1])+1,int(line[2]),line[3][0:1]]# +1 in the start to convert the bed 0-based coordinate to a 1-based system
if (first_seg!=''):# if the feature is not completly absent # add the else, output absent features
[variation,list_segfeat_source_genome,list_segfeat_target_genome]=create_var(feat,first_seg,last_seg,paths,target_genome_name)# removes the strands in the segment lists
[variation,list_segfeat_source_genome,list_segfeat_target_genome]=create_var(feat,first_seg,last_seg,paths,paths_index,target_genome_name)# removes the strands in the segment lists