changeset 3:f46c581ca166 draft

Uploaded
author jackcurragh
date Fri, 23 Sep 2022 13:30:42 +0000
parents 1fd87301a4fb
children 686a1d619b96
files generate_custom_track/construct_custom_track.py generate_custom_track/generate_custom_track.xml
diffstat 2 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/generate_custom_track/construct_custom_track.py	Fri Sep 23 13:17:31 2022 +0000
+++ b/generate_custom_track/construct_custom_track.py	Fri Sep 23 13:30:42 2022 +0000
@@ -1,12 +1,11 @@
 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}
-        """)
+        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]
--- a/generate_custom_track/generate_custom_track.xml	Fri Sep 23 13:17:31 2022 +0000
+++ b/generate_custom_track/generate_custom_track.xml	Fri Sep 23 13:30:42 2022 +0000
@@ -1,4 +1,4 @@
-<tool id="generate-custom_track" name="Generate Custom Track" version="0.1">
+<tool id="generate_custom_track" name="Generate Custom Track" version="0.2">
     <description>Generates a Custom Track File for GWIPS-viz.</description>
     <command>
     python $__tool_directory__/construct_custom_track.py $input1 $input2 "$input3" "$input4" $input5 $output1
@@ -15,7 +15,7 @@
         <param name="input5" type="text" label="chromosome position" help="Get this from Gwips.ucc.ie. Hg38 example = chr9:136,848,259-136,851,600" />
     </inputs>
     <outputs>
-       <data name="output1" format="text"/>
+       <data name="output1" format="txt"/>
     </outputs>
 
     <help>