# HG changeset patch # User bornea # Date 1460487952 14400 # Node ID 876af85d782c901c790e774bcf2b93560da170fd # Parent c22c1209e65f175167f86c063ccd0a6e45b81899 Uploaded diff -r c22c1209e65f -r 876af85d782c SAINT_preprocessing.py --- a/SAINT_preprocessing.py Tue Apr 12 14:55:25 2016 -0400 +++ b/SAINT_preprocessing.py Tue Apr 12 15:05:52 2016 -0400 @@ -53,14 +53,9 @@ else: T_C = "T" bait_line = baits[i] + "\t" + baits[i+1] + "\t" + T_C + "\n" - read_infile = open(infile, "r") - for input_line in read_infile: - input_line = input_line.strip() - temp = input_line.split('\t') - bait_cache.append((number_bait, str(bait_line))) + bait_cach.append(str(bait_line)) i = i + 3 - bait_cache.sort() for cache_line in bait_cache: bait_file_tmp.write(cache_line[1])