Mercurial > repos > jackcurragh > ribogalaxy_generate_custom_track
comparison generate_custom_track/construct_custom_track.py @ 0:aedc582b98aa draft
Uploaded
author | jackcurragh |
---|---|
date | Fri, 23 Sep 2022 13:11:37 +0000 |
parents | |
children | f46c581ca166 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:aedc582b98aa |
---|---|
1 import sys | |
2 | |
3 def main(track_type, url, sample_name, sample_description, chromosome_position, outpath): | |
4 | |
5 with open(outpath, 'w') as f: | |
6 f. write(f""" | |
7 browser position {chromosome_position} | |
8 track type={track_type} name="{sample_name}" description="{sample_description}" bigDataUrl={url} | |
9 """) | |
10 | |
11 if __name__ == "__main__": | |
12 track_type = sys.argv[1] | |
13 url = sys.argv[2] | |
14 sample_name = sys.argv[3] | |
15 sample_description = sys.argv[4] | |
16 chromosome_position = sys.argv[5] | |
17 outpath = sys.argv[6] | |
18 main(track_type, url, sample_name, sample_description, chromosome_position, outpath) |