# HG changeset patch # User bornea # Date 1463667905 14400 # Node ID bc9c7764cc2f60ad1ec37803cee860650f614a74 # Parent 26cc583a4ae481417ee638917e10b413dcea012a Uploaded diff -r 26cc583a4ae4 -r bc9c7764cc2f SAINT_preprocessing_mq_pep.py --- a/SAINT_preprocessing_mq_pep.py Thu May 19 10:02:48 2016 -0400 +++ b/SAINT_preprocessing_mq_pep.py Thu May 19 10:25:05 2016 -0400 @@ -253,6 +253,16 @@ errors = [] for e in err: errors.append(e[0]) + for a in proteins: + a = a.replace("\n", "") + # Remove \n for input into function. + a = a.replace("\r", "") + # Ditto for \r. + seq = get_info(a).seqlength + GN = get_info(a).genename + if seq != 'NA': + if GN != 'NA': + erros.append[a] with open('inter.txt', 'w') as input_file: l = 0; a = 0 for bb in bait: