Spaces:
Running
Running
Erva Ulusoy commited on
Commit ·
8fa6245
1
Parent(s): 4bd44bb
Update run_domain2go_app.py
Browse files72 unmodified lines737475767778798072 unmodified linesentries[entry['accession']]['locations'] = list(set(entries[entry['accession']]['locations']))# sort locations by both start and end position# entries[entry['accession']]['locations'] = sorted(entries[entry['accession']]['locations'], key=lambda x: [int(i) for i in x.split('-')])entries[entry['accession']]['locations'] = sorted(entries[entry['accession']]['locations'], key=lambda x: int(x.split('-')[0]))entries[entry['accession']]['locations'] = '|'.join(entries[entry['accession']]['locations'])if entries:72 unmodified lines73747576777879808172 unmodified linesentries[entry['accession']]['locations'] = list(set(entries[entry['accession']]['locations']))# sort locations by both start and end position# entries[entry['accession']]['locations'] = sorted(entries[entry['accession']]['locations'], key=lambda x: int(x.split('-')[0]))entries[entry['accession']]['locations'] = sorted([i.split('-') for i in entries[entry['accession']]['locations']], key=lambda x: (int(x[0]), int(x[1])))entries[entry['accession']]['locations'] = ['-'.join(i) for i in entries[entry['accession']]['locations']]entries[entry['accession']]['locations'] = '|'.join(entries[entry['accession']]['locations'])if entries:
run_domain2go_app.py+3-2