Mercurial > repos > iuc > ena_upload
comparison process_xlsx.py @ 6:4aab5ae907b6 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ena_upload commit 7eafac9d91b39e43fd3820ab1431cab1c930bb01"
author | iuc |
---|---|
date | Mon, 15 Nov 2021 11:47:13 +0000 |
parents | 26ccb678abc8 |
children |
comparison
equal
deleted
inserted
replaced
5:e1b3b37aa69f | 6:4aab5ae907b6 |
---|---|
12 | 12 |
13 def identify_action(entry_type, alias): | 13 def identify_action(entry_type, alias): |
14 ''' define action ['add' | 'modify'] that needs to be perfomed for this entry ''' | 14 ''' define action ['add' | 'modify'] that needs to be perfomed for this entry ''' |
15 query = {entry_type + '_alias': alias} | 15 query = {entry_type + '_alias': alias} |
16 remote_accessions = check_remote_entry(entry_type, query) | 16 remote_accessions = check_remote_entry(entry_type, query) |
17 if len(remote_accessions) > 0: | 17 if isinstance(remote_accessions, list) and len(remote_accessions) > 0: |
18 print(f'Found: {entry_type} entry with alias {alias}') | 18 print(f'Found: {entry_type} entry with alias {alias}') |
19 return 'modify' | 19 return 'modify' |
20 else: | 20 else: |
21 print(f'No {entry_type} entry found with alias {alias}') | 21 print(f'No {entry_type} entry found with alias {alias}') |
22 return 'add' | 22 return 'add' |