Spaces:
Running
Running
Erva Ulusoy
commited on
Commit
·
505a4c6
1
Parent(s):
1a58b3c
domain locations working
Browse files- run_domain2go_app.py +2 -2
run_domain2go_app.py
CHANGED
|
@@ -73,8 +73,8 @@ def find_domains(email, sequence, name):
|
|
| 73 |
|
| 74 |
entries[entry['accession']]['locations'] = list(set(entries[entry['accession']]['locations']))
|
| 75 |
# sort locations by both start and end position
|
| 76 |
-
entries[entry['accession']]['locations'] = sorted(entries[entry['accession']]['locations'], key=lambda x: [int(i) for i in x.split('-')])
|
| 77 |
-
|
| 78 |
entries[entry['accession']]['locations'] = ';'.join(entries[entry['accession']]['locations'])
|
| 79 |
|
| 80 |
if entries:
|
|
|
|
| 73 |
|
| 74 |
entries[entry['accession']]['locations'] = list(set(entries[entry['accession']]['locations']))
|
| 75 |
# sort locations by both start and end position
|
| 76 |
+
# entries[entry['accession']]['locations'] = sorted(entries[entry['accession']]['locations'], key=lambda x: [int(i) for i in x.split('-')])
|
| 77 |
+
entries[entry['accession']]['locations'] = sorted(entries[entry['accession']]['locations'], key=lambda x: int(x.split('-')[0]))
|
| 78 |
entries[entry['accession']]['locations'] = ';'.join(entries[entry['accession']]['locations'])
|
| 79 |
|
| 80 |
if entries:
|