0
|
1 import sys
|
|
2
|
|
3 def main(track_type, url, sample_name, sample_description, chromosome_position, outpath):
|
3
|
4
|
0
|
5 with open(outpath, 'w') as f:
|
3
|
6 f. write(
|
4
|
7 f"""# copy this text into the dialog box at https://https://gwips.ucc.ie/cgi-bin/hgCustom
|
|
8 # or download the file and uplaod to GWIPS on the same page
|
|
9 browser position {chromosome_position}
|
3
|
10 track type={track_type} name="{sample_name}" description="{sample_description}" bigDataUrl={url}""")
|
0
|
11
|
|
12 if __name__ == "__main__":
|
|
13 track_type = sys.argv[1]
|
|
14 url = sys.argv[2]
|
|
15 sample_name = sys.argv[3]
|
|
16 sample_description = sys.argv[4]
|
|
17 chromosome_position = sys.argv[5]
|
|
18 outpath = sys.argv[6]
|
|
19 main(track_type, url, sample_name, sample_description, chromosome_position, outpath)
|