Mercurial > repos > fubar > jbrowse2
view jb2_urlconf.py @ 54:d6b0feb22584 draft
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 53aab6394c715dc2d7fdd9188d6c9834e0516b5c
author | fubar |
---|---|
date | Thu, 14 Mar 2024 00:59:36 +0000 |
parents | 7e867ff86e44 |
children | 94264fe60478 |
line wrap: on
line source
inconf = open('config.json', 'r').readlines() with open('config.json.local', 'w') as bak: bak.write(''.join(inconf)) urlbase = "https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/hum/" utag = '"uri":' for i, row in enumerate(inconf): ispath = False if row.strip().startswith(utag): ispath = True parth = row.split(utag)[1].strip().replace('"','').replace("'",'') inconf[i] = '%s "%s%s"' % (utag, urlbase, parth) with open('config.json', 'w') as outconf: outconf.write(''.join(inconf))