Mercurial > repos > yating-l > gonramp_apollo_tools
comparison apolloUserManager.py @ 2:4be6fcac4bf2 draft default tip
planemo upload for repository https://github.com/Yating-L/suite_gonramp_apollo.git commit 5367a00befb467f162d1870edb91f9face72e894
| author | yating-l |
|---|---|
| date | Wed, 29 Nov 2017 15:39:32 -0500 |
| parents | 78af01d73add |
| children |
comparison
equal
deleted
inserted
replaced
| 1:78af01d73add | 2:4be6fcac4bf2 |
|---|---|
| 46 logging.debug('JSON parameters: %s\n\n', json.dumps(reader.args)) | 46 logging.debug('JSON parameters: %s\n\n', json.dumps(reader.args)) |
| 47 | 47 |
| 48 # Set up apollo | 48 # Set up apollo |
| 49 apollo = ApolloInstance(apollo_host, apollo_admin_user, toolDirectory) | 49 apollo = ApolloInstance(apollo_host, apollo_admin_user, toolDirectory) |
| 50 apollo.manageApolloUser(operations_dictionary) | 50 apollo.manageApolloUser(operations_dictionary) |
| 51 | 51 outHtml(outputFile, apollo_host) |
| 52 logging.info('#### Apollo User Manager: Congratulation! ####\n') | 52 logging.info('#### Apollo User Manager: Congratulation! ####\n') |
| 53 | 53 |
| 54 def outHtml(outputFile, host_name): | |
| 55 with open(outputFile, 'w') as htmlfile: | |
| 56 htmlstr = 'The Apollo User Manager has done with operations on Apollo: <br>' | |
| 57 jbrowse_hub = '<li><a href = "%s" target="_blank">View JBrowse Hub on Apollo</a></li>' % host_name | |
| 58 htmlstr += jbrowse_hub | |
| 59 htmlfile.write(htmlstr) | |
| 54 | 60 |
| 55 | 61 |
| 56 if __name__ == "__main__": | 62 if __name__ == "__main__": |
| 57 main(sys.argv) | 63 main(sys.argv) |
