                     else:
                         chr1 = value_str
                         
-                    chr1, chr1_coord = chr1.split(':')
+                    chr1, chr1_coord = chr1.rsplit(':', 1)
                     chr1_left, chr1_right = chr1_coord.split('-')
                     chr1_left, chr1_right = int(chr1_left), int(chr1_right)
                     value_dic["chr1"] = chr1

                    value_dic["chr1_right"] = chr1_right
                    
                    if chr2:
                        chr2, chr2_coord = chr2.split(':')
                        chr2_left, chr2_right = chr2_coord.split('-')
                        chr2_left, chr2_right = int(chr2_left), int(chr2_right)
                        value_dic["chr2"] = chr2

            if line[0] == '@':
                if line[1:3] == 'SQ':
                    line = line[:-1].split('\t')
                    contig = line[1].split(':', 1)[1]
                    if contig not in contigs:
                        contigs[contig] = len(contigs)

