diff onto_macros.xml @ 0:298c8cdaf536 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/onto-toolkit commit 9422f839ae354d4c26b02d4494abdeaad518d0e6
author iuc
date Fri, 10 Nov 2017 11:30:27 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/onto_macros.xml	Fri Nov 10 11:30:27 2017 -0500
@@ -0,0 +1,37 @@
+<macros>
+    <token name="@VERSION@">1.45</token>
+    <xml name="requirements">
+        <requirements>
+            <requirement type="package" version="@VERSION@">perl-onto-perl</requirement>
+            <yield />
+        </requirements>
+    </xml>
+    <xml name="input_ontology">
+        <param name="input" format="obo" type="data" label="Ontology file"/>
+    </xml>
+    <xml name="term_id">
+        <param name="term_id" type="text" value="" label="Term ID">
+            <expand macro="sanitize_ids" />
+        </param>
+    </xml>
+    <xml name="rel_id">
+        <param name="rel_id" type="text" value="" label="Relationship ID">
+            <expand macro="sanitize_ids" />
+        </param>
+    </xml>
+    <xml name="citations">
+        <citations>
+            <citation type="doi">10.1186/1471-2105-11-S12-S8</citation>
+        </citations>
+    </xml>
+    <xml name="sanitize_ids">
+        <sanitizer invalid_char="">
+            <valid initial="string.letters,string.digits"><add value="_" /><add value=":" /> </valid>
+        </sanitizer>
+    </xml>
+    <xml name="sanitize_urls">
+        <sanitizer invalid_char="">
+            <valid initial="string.letters,string.digits"><add value="_" /><add value=":" /><add value="/" /></valid>
+        </sanitizer>
+    </xml>
+</macros>