Mercurial > repos > fubar > jbrowse2
comparison jb2_urlconf.py @ 47:3e53204c2419 draft
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
author | fubar |
---|---|
date | Wed, 06 Mar 2024 00:23:02 +0000 |
parents | |
children | 460d5b6c5d98 |
comparison
equal
deleted
inserted
replaced
46:4181e97c70a7 | 47:3e53204c2419 |
---|---|
1 inconf = open('config.json', 'r').readlines() | |
2 with open('config.json.local', 'w') as bak: | |
3 bak.write('\n'.join(inconf)) | |
4 urlbase = "https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/hum/" | |
5 utag = '"uri":' | |
6 for i, row in enumerate(inconf): | |
7 ispath = False | |
8 if row.strip().startswith(utag): | |
9 ispath = True | |
10 parth = row.split(utag)[1].strip() | |
11 inconf[i] = '%s%s' % (urlbase, parth) | |
12 with open('config.json', 'w') as outconf: | |
13 outconf.write('\n'.join(inconf)) | |
14 | |
15 | |
16 |