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(
|
|
7 f"""browser position {chromosome_position}
|
|
8 track type={track_type} name="{sample_name}" description="{sample_description}" bigDataUrl={url}""")
|
0
|
9
|
|
10 if __name__ == "__main__":
|
|
11 track_type = sys.argv[1]
|
|
12 url = sys.argv[2]
|
|
13 sample_name = sys.argv[3]
|
|
14 sample_description = sys.argv[4]
|
|
15 chromosome_position = sys.argv[5]
|
|
16 outpath = sys.argv[6]
|
|
17 main(track_type, url, sample_name, sample_description, chromosome_position, outpath)
|