Erva Ulusoy commited on
Commit
1a58b3c
·
1 Parent(s): be15ab3

sorted value error fix

Browse files
Files changed (1) hide show
  1. run_domain2go_app.py +1 -1
run_domain2go_app.py CHANGED
@@ -73,7 +73,7 @@ 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(x.split('-')[0]), int(x.split('-')[1])))
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
 
 
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