# HG changeset patch # User jackcurragh # Date 1663938697 0 # Node ID aedc582b98aa92be4b437d0acbff656de47b18aa Uploaded diff -r 000000000000 -r aedc582b98aa generate_custom_track/construct_custom_track.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/generate_custom_track/construct_custom_track.py Fri Sep 23 13:11:37 2022 +0000 @@ -0,0 +1,18 @@ +import sys + +def main(track_type, url, sample_name, sample_description, chromosome_position, outpath): + + with open(outpath, 'w') as f: + f. write(f""" + browser position {chromosome_position} + track type={track_type} name="{sample_name}" description="{sample_description}" bigDataUrl={url} + """) + +if __name__ == "__main__": + track_type = sys.argv[1] + url = sys.argv[2] + sample_name = sys.argv[3] + sample_description = sys.argv[4] + chromosome_position = sys.argv[5] + outpath = sys.argv[6] + main(track_type, url, sample_name, sample_description, chromosome_position, outpath) diff -r 000000000000 -r aedc582b98aa generate_custom_track/generate_custom_track.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/generate_custom_track/generate_custom_track.xml Fri Sep 23 13:11:37 2022 +0000 @@ -0,0 +1,35 @@ + + Generates a Custom Track File for GWIPS-viz. + + python construct_custom_track.py $input1 $input2 "$input3" "$input4" + + + + + + + + + + + + + + + + + + + + + + + +**What it does** + +Generates a custom track file for GWIPS-viz. + +This is facilitates easy exploration of data processed on RiboGalaxy at a Genome wide scale. + + + \ No newline at end of file