Mercurial > repos > fubar > jbrowse2
annotate jb2_urlconf.py @ 48:460d5b6c5d98 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 10:37:49 +0000 |
parents | 3e53204c2419 |
children | 7e867ff86e44 |
rev | line source |
---|---|
47
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
1 inconf = open('config.json', 'r').readlines() |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
2 with open('config.json.local', 'w') as bak: |
48
460d5b6c5d98
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
47
diff
changeset
|
3 bak.write(''.join(inconf)) |
47
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
4 urlbase = "https://galaxy.genomicsvl-students.cloud.edu.au/jbrowse/hum/" |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
5 utag = '"uri":' |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
6 for i, row in enumerate(inconf): |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
7 ispath = False |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
8 if row.strip().startswith(utag): |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
9 ispath = True |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
10 parth = row.split(utag)[1].strip() |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
11 inconf[i] = '%s%s' % (urlbase, parth) |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
12 with open('config.json', 'w') as outconf: |
48
460d5b6c5d98
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
47
diff
changeset
|
13 outconf.write(''.join(inconf)) |
47
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
14 |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
15 |
3e53204c2419
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 3a43e9e0ffce0966101203102e769d1ced28618a-dirty
fubar
parents:
diff
changeset
|
16 |