numCores = 4 gapScore = 0.4 maxDel = 500 # An upper bound on the number of expected deletions. Set to -1 if not wanted. m1P = 100 # Number of horizontal partitions. m2P = 100 # Number of vertical partitions. seq1 = [] seq2 = [] sequences = [[file1, seq1], [file2, seq2]] f = open(file1, 'r') for line in f: lineSplit = line.split(" ") seq1.append( ppyClasses.DataPoint(lineSplit[14], int(lineSplit[16]), int(lineSplit[17]))) f.close() f = open(file2, 'r') for line in f: lineSplit = line.split(" ") seq2.append( ppyClasses.DataPoint(lineSplit[14], int(lineSplit[16]), int(lineSplit[17]))) f.close() m1 = len(seq1) m2 = len(seq2) # Append dummy points to have m1P|m1 and m2P|m2 dummyPoint = ppyClasses.DataPoint('QQ', -1, -1)
maxDel = 300 # An upper bound on the number of expected deletions. Set to -1 if not wanted. m1P = 100 # Number of horizontal partitions. m2P = 100 # Number of vertical partitions. seq1 = [] seq2 = [] sequences = [[file1, seq1], [file2, seq2]] for seq in sequences: f = open(path + seq[0], 'r') for line in f: # lineSplit = line.split(",") lineSplit = line.split(" ") # seq[1].append(ppyClasses.DataPoint(lineSplit[0], int(lineSplit[1]), int(lineSplit[2]))) seq[1].append(ppyClasses.DataPoint(lineSplit[18], int(lineSplit[16]), int(lineSplit[17]))) f.close() m1 = len(seq1) m2 = len(seq2) # Append dummy points to have m1P|m1 and m2P|m2 dummyPoint = ppyClasses.DataPoint('QQ', -1, -1) while m1 % float(m1P) != 0: sequences[0][1].append(dummyPoint) m1 += 1 while m2 % float(m2P) != 0: sequences[1][1].append(dummyPoint) m2 += 1
file2 = "Test1-Pat2.txt" numCores = 4 gapScore = 0.4 maxDel = 500 # An upper bound on the number of expected deletions. Set to -1 if not wanted. seq1 = [] seq2 = [] sequences = [[file1, seq1], [file2, seq2]] for seq in sequences: f = open(path + seq[0], 'r') for line in f: lineSplit = line.split(",") seq[1].append( ppyClasses.DataPoint(lineSplit[0], int(lineSplit[1]), int(lineSplit[2]))) f.close() m1 = len(seq1) m2 = len(seq2) # Number of horizontal and vertical partitions. m1P = 2 m2P = 2 # Append dummy points to have m1P|m1 and m2P|m2 dummyPoint = ppyClasses.DataPoint('QQ', -1, -1) while m1 % float(m1P) != 0: sequences[0][1].append(dummyPoint) m1 += 1
file2 = sys.argv[1] numCores = 4 gapScore = 0.4 maxDel = 500 # An upper bound on the number of expected deletions. Set to -1 if not wanted. m1P = 100 # Number of horizontal partitions. m2P = 100 # Number of vertical partitions. seq1 = [] seq2 = [] sequences = [[file1, seq1], [file2, seq2]] f = open(file1, 'r') for line in f: lineSplit = line.split(" ") seq1.append(ppyClasses.DataPoint(lineSplit[14], int(lineSplit[16]), int(lineSplit[17]))) f.close() f = open(file2, 'r') for line in f: lineSplit = line.split(" ") seq2.append(ppyClasses.DataPoint(lineSplit[14], int(lineSplit[16]), int(lineSplit[17]))) f.close() m1 = len(seq1) m2 = len(seq2) # Append dummy points to have m1P|m1 and m2P|m2 dummyPoint = ppyClasses.DataPoint('QQ', -1, -1) while m1 % float(m1P) != 0: sequences[0][1].append(dummyPoint)