Erva Ulusoy commited on
Commit
2fe26d1
·
1 Parent(s): 28510ad

domain locations sorted working

Browse files
Files changed (1) hide show
  1. run_domain2go_app.py +0 -2
run_domain2go_app.py CHANGED
@@ -72,8 +72,6 @@ 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
- # 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]))
77
  entries[entry['accession']]['locations'] = sorted([i.split('-') for i in entries[entry['accession']]['locations']], key=lambda x: (int(x[0]), int(x[1])))
78
  entries[entry['accession']]['locations'] = ['-'.join(i) for i in entries[entry['accession']]['locations']]
79
  # entries[entry['accession']]['locations'] = '|'.join(entries[entry['accession']]['locations'])
 
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([i.split('-') for i in entries[entry['accession']]['locations']], key=lambda x: (int(x[0]), int(x[1])))
76
  entries[entry['accession']]['locations'] = ['-'.join(i) for i in entries[entry['accession']]['locations']]
77
  # entries[entry['accession']]['locations'] = '|'.join(entries[entry['accession']]['locations'])