Mercurial > repos > davidvanzessen > shm_csr
comparison shm_csr.py @ 43:77a7ac76c7b9 draft
Uploaded
| author | davidvanzessen |
|---|---|
| date | Tue, 11 Apr 2017 08:02:17 -0400 |
| parents | ca2512e1e3ab |
| children | 64711f461c8e |
comparison
equal
deleted
inserted
replaced
| 42:1cf60ae234b4 | 43:77a7ac76c7b9 |
|---|---|
| 78 cdr1LengthDic[ID] = int(cdr1Length) if cdr1Length != "X" else 0 | 78 cdr1LengthDic[ID] = int(cdr1Length) if cdr1Length != "X" else 0 |
| 79 cdr2LengthDic[ID] = int(cdr2Length) if cdr2Length != "X" else 0 | 79 cdr2LengthDic[ID] = int(cdr2Length) if cdr2Length != "X" else 0 |
| 80 | 80 |
| 81 IDlist += [ID] | 81 IDlist += [ID] |
| 82 | 82 |
| 83 print mutationList, linecount | 83 #print mutationList, linecount |
| 84 | 84 |
| 85 AALength = (int(max(mutationList, key=lambda i: int(i[4]) if i[4] else 0)[4]) + 1) # [4] is the position of the AA mutation, None if silent | 85 AALength = (int(max(mutationList, key=lambda i: int(i[4]) if i[4] else 0)[4]) + 1) # [4] is the position of the AA mutation, None if silent |
| 86 if AALength < 60: | 86 if AALength < 60: |
| 87 AALength = 64 | 87 AALength = 64 |
| 88 | 88 |
