Mercurial > repos > fubar > jbrowse2
annotate jb2_urlconf.py @ 63:ac00dcfb5d1d draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit f450a9a7bec7ae695a85a061bf59956b73196976
author | fubar |
---|---|
date | Thu, 28 Mar 2024 07:46:04 +0000 |
parents | 94264fe60478 |
children |
rev | line source |
---|---|
57
94264fe60478
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 4b5df41484f6bdf316edaf95b53c92d328ec1674-dirty
fubar
parents:
49
diff
changeset
|
1 inconf = open("config.json", "r").readlines() |
94264fe60478
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 4b5df41484f6bdf316edaf95b53c92d328ec1674-dirty
fubar
parents:
49
diff
changeset
|
2 with open("config.json.local", "w") as bak: |
94264fe60478
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 4b5df41484f6bdf316edaf95b53c92d328ec1674-dirty
fubar
parents:
49
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): |
57
94264fe60478
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 4b5df41484f6bdf316edaf95b53c92d328ec1674-dirty
fubar
parents:
49
diff
changeset
|
9 ispath = True |
94264fe60478
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 4b5df41484f6bdf316edaf95b53c92d328ec1674-dirty
fubar
parents:
49
diff
changeset
|
10 parth = row.split(utag)[1].strip().replace('"', "").replace("'", "") |
94264fe60478
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 4b5df41484f6bdf316edaf95b53c92d328ec1674-dirty
fubar
parents:
49
diff
changeset
|
11 inconf[i] = '%s "%s%s"' % (utag, urlbase, parth) |
94264fe60478
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 4b5df41484f6bdf316edaf95b53c92d328ec1674-dirty
fubar
parents:
49
diff
changeset
|
12 with open("config.json", "w") as outconf: |
94264fe60478
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 4b5df41484f6bdf316edaf95b53c92d328ec1674-dirty
fubar
parents:
49
diff
changeset
|
13 outconf.write("".join(inconf)) |