Erva Ulusoy commited on
Commit
726f57d
·
1 Parent(s): f07264d

sort domain locations 2nd try

Browse files
Files changed (1) hide show
  1. run_domain2go_app.py +1 -1
run_domain2go_app.py CHANGED
@@ -72,7 +72,7 @@ def find_domains(email, sequence, name):
72
  entries[entry['accession']]['locations'].extend(location_list)
73
 
74
  entries[entry['accession']]['locations'] = list(set(entries[entry['accession']]['locations']))
75
- entries[entry['accession']]['locations'] = sorted(entries[entry['accession']]['locations'], key=lambda x: x[0])
76
  entries[entry['accession']]['locations'] = [f'{i[0]}-{i[1]}' for i in entries[entry['accession']]['locations']]
77
  entries[entry['accession']]['locations'] = ';'.join(entries[entry['accession']]['locations'])
78
 
 
72
  entries[entry['accession']]['locations'].extend(location_list)
73
 
74
  entries[entry['accession']]['locations'] = list(set(entries[entry['accession']]['locations']))
75
+ # entries[entry['accession']]['locations'] = sorted(entries[entry['accession']]['locations'], key=lambda x: x[0])
76
  entries[entry['accession']]['locations'] = [f'{i[0]}-{i[1]}' for i in entries[entry['accession']]['locations']]
77
  entries[entry['accession']]['locations'] = ';'.join(entries[entry['accession']]['locations'])
78