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