Mercurial > repos > bornea > saint_preprocessing
diff SAINT_preprocessing_mq_pep.py @ 36:bc9c7764cc2f draft
Uploaded
author | bornea |
---|---|
date | Thu, 19 May 2016 10:25:05 -0400 |
parents | 26cc583a4ae4 |
children | f988db1d36dc |
line wrap: on
line diff
--- 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: