Repository 'cuffcompare'
hg clone https://toolshed.g2.bx.psu.edu/repos/devteam/cuffcompare

Changeset 11:ad5d061fbdf2 (2024-10-05)
Previous changeset 10:f648e5180e40 (2020-06-16)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffcompare commit 80b06e80066b32ad53ed418628992f056444256f
modified:
cuff_macros.xml
cuffcompare_wrapper.xml
b
diff -r f648e5180e40 -r ad5d061fbdf2 cuff_macros.xml
--- a/cuff_macros.xml Tue Jun 16 12:59:38 2020 -0400
+++ b/cuff_macros.xml Sat Oct 05 11:15:49 2024 +0000
[
b'@@ -1,91 +1,96 @@\n <macros>\n-  <token name="@VERSION@">2.2.1</token>\n+    <token name="@TOOL_VERSION@">2.2.1</token>\n+    <token name="@PROFILE@">23.1</token>\n \n-  <xml name="requirements">\n-    <requirements>\n-      <requirement type="package" version="2.2.1">cufflinks</requirement>\n-      <yield />\n-    </requirements>\n-  </xml>\n+    <xml name="requirements">\n+        <requirements>\n+            <requirement type="package" version="@TOOL_VERSION@">cufflinks</requirement>\n+            <yield />\n+        </requirements>\n+    </xml>\n+\n+    <xml name="conditions_repeat" token_format="">\n+        <repeat name="conditions" title="Condition" min="2">\n+            <param name="name" label="Condition name" type="text">\n+                <validator type="empty_field" message="You must provide a condition name" />\n+                <validator type="expression" message="Commas are not allowed in condition names">value and "," not in value</validator>\n+            </param>\n+            <param name="samples" label="Replicates" type="data" format="@FORMAT@" multiple="true"/>\n+        </repeat>\n+    </xml>\n \n-  <xml name="condition_inputs">\n-    <!-- DEFAULT : use BAM/SAM files -->\n-    <conditional name="in_type">\n-        <param name="set_in_type" type="select" label="Input data type"\n-            help="CuffNorm supports either CXB (from cuffquant) or SAM/BAM input files. Mixing is not supported. Default: SAM/BAM">\n-            <option value="BAM">SAM/BAM</option>\n-            <option value="CXB">Cuffquant (CXB)</option>\n-            <option value="CONDITION_LIST">List of single replicate conditions</option>\n-            <option value="CONDITION_REPLICATE_LIST">List of multiple replicate conditions</option>\n-        </param>\n-        <when value="BAM">\n-            <repeat name="conditions" title="Condition" min="2">\n-                <param name="name" label="Condition name" type="text"/>\n-                <param name="samples" label="Replicates" type="data" format="sam,bam" multiple="true"/>\n-            </repeat>\n-        </when>\n-        <when value="CXB">\n-            <repeat name="conditions" title="Condition" min="2">\n-                <param name="name" label="Condition name" type="text"/>\n-                <param name="samples" label="Replicates" type="data" format="cxb" multiple="true"/>\n-            </repeat>\n-        </when>\n-        <when value="CONDITION_LIST">\n-            <param name="conditions" label="List of Conditions" type="data_collection" collection_type="list" />\n-        </when>\n-        <when value="CONDITION_REPLICATE_LIST">\n-            <param name="conditions" label="List of Conditions" type="data_collection" collection_type="list:list" />\n-        </when>\n-    </conditional>\n-  </xml>\n-  <token name="@CONDITION_SAMPLES@">\n-            #if $in_type.set_in_type in [\'BAM\', \'CXB\']\n-                #for $condition in $in_type.conditions:\n-                    #set samples = \',\'.join( [ str( $sample ) for $sample in $condition.samples ] )\n-                    \'$samples\'\n-                #end for\n-            #elif $in_type.set_in_type == \'CONDITION_LIST\'\n-                #for $sample in $in_type.conditions:\n-                    \'$sample\'\n-                #end for\n-            #elif $in_type.set_in_type == \'CONDITION_REPLICATE_LIST\'\n-                #for $condition_list in $in_type.conditions:\n-                    #set samples = \',\'.join( [ str( $sample ) for $sample in $condition_list ] )\n-                    \'$samples\'\n-                #end for\n-            #end if\n-  </token>\n-  <token name="@CONDITION_LABELS@">\n-            #import re\n-            #if $in_type.set_in_type in [\'BAM\', \'CXB\']\n-                #set labels = \'\\\'\' + \'\\\',\\\'\'.join( [ str( $condition.name ) for $condition in $in_type.conditions ] ) + \'\\\'\'\n-            #elif $in_type.set_in_type in [\'CONDITION_LIST\', \'CONDITION_REPLICATE_LIST\']\n-                #set labels = \'\\\'\' + \'\\\',\\\'\'.join( map(lambda x: re.sub(\'[^\\w\\-_]\', \'_\', x), $in_type.conditions.keys'..b's\n-  </token>\n-  <xml name="cufflinks_gtf_inputs">\n-    <param format="gtf" name="inputs" type="data" label="GTF file(s) produced by Cufflinks" help="" multiple="true" />\n-  </xml>\n-  <token name="@CUFFLINKS_LINK_GTF_INPUTS@"><![CDATA[\n-            ## Inputs.\n-            #for $i, $input_file in enumerate($inputs):\n-                ln -s \'${input_file}\' input_$i &&\n-            #end for\n-  ]]></token>\n-  <token name="@CUFFLINKS_GTF_INPUTS@">\n-            ## Inputs.\n-            #for $i, $input_file in enumerate($inputs):\n-                \'input_$i\'\n-            #end for\n-  </token>\n-  <token name="@HAS_MULTIPLE_INPUTS@">getattr(inputs, "__len__", [].__len__)() >= 2</token>\n+    <xml name="condition_inputs">\n+        <!-- DEFAULT : use BAM/SAM files -->\n+        <conditional name="in_type">\n+            <param name="set_in_type" type="select" label="Input data type"\n+                help="CuffNorm supports either CXB (from cuffquant) or SAM/BAM input files. Mixing is not supported. Default: SAM/BAM">\n+                <option value="BAM">SAM/BAM</option>\n+                <option value="CXB">Cuffquant (CXB)</option>\n+                <option value="CONDITION_LIST">List of single replicate conditions</option>\n+                <option value="CONDITION_REPLICATE_LIST">List of multiple replicate conditions</option>\n+            </param>\n+            <when value="BAM">\n+                <expand macro="conditions_repeat" format="sam,bam" />\n+            </when>\n+            <when value="CXB">\n+                <expand macro="conditions_repeat" format="cxb" />\n+            </when>\n+            <when value="CONDITION_LIST">\n+                <param name="conditions" label="List of Conditions" type="data_collection" collection_type="list" />\n+            </when>\n+            <when value="CONDITION_REPLICATE_LIST">\n+                <param name="conditions" label="List of Conditions" type="data_collection" collection_type="list:list" />\n+            </when>\n+        </conditional>\n+    </xml>\n+    <token name="@CONDITION_SAMPLES@"><![CDATA[\n+#if $in_type.set_in_type in [\'BAM\', \'CXB\']\n+    #for $condition in $in_type.conditions:\n+        #set samples = \',\'.join([str($sample) for $sample in $condition.samples])\n+        \'$samples\'\n+    #end for\n+#elif $in_type.set_in_type == \'CONDITION_LIST\'\n+    #for $sample in $in_type.conditions:\n+        \'$sample\'\n+    #end for\n+#elif $in_type.set_in_type == \'CONDITION_REPLICATE_LIST\'\n+    #for $condition_list in $in_type.conditions:\n+        #set samples = \',\'.join([str($sample) for $sample in $condition_list])\n+        \'$samples\'\n+    #end for\n+#end if\n+    ]]></token>\n+    <token name="@CONDITION_LABELS@"><![CDATA[\n+#import re\n+#if $in_type.set_in_type in [\'BAM\', \'CXB\']\n+    #set labels = "\',\'".join([str($condition.name) for $condition in $in_type.conditions])\n+#elif $in_type.set_in_type in [\'CONDITION_LIST\', \'CONDITION_REPLICATE_LIST\']\n+    #set labels = "\',\'".join([str($condition).replace(\',\', \'_\') for $condition in $in_type.conditions.keys()])\n+#end if\n+--labels \'$labels\'\n+    ]]></token>\n+    <xml name="cufflinks_gtf_inputs">\n+        <param format="gtf" name="inputs" type="data" label="GTF file(s) produced by Cufflinks" help="" multiple="true" />\n+    </xml>\n+    <token name="@CUFFLINKS_LINK_GTF_INPUTS@"><![CDATA[\n+## Inputs.\n+#for $i, $input_file in enumerate($inputs):\n+    ln -s \'${input_file}\' input_$i &&\n+#end for\n+    ]]></token>\n+    <token name="@CUFFLINKS_GTF_INPUTS@"><![CDATA[\n+## Inputs.\n+#for $i, $input_file in enumerate($inputs):\n+    \'input_$i\'\n+#end for\n+    ]]></token>\n+    <token name="@HAS_MULTIPLE_INPUTS@">getattr(inputs, "__len__", [].__len__)() >= 2</token>\n \n-  <xml name="citations">\n-    <citations>\n-        <citation type="doi">10.1038/nbt.1621</citation>\n-        <yield/>\n-    </citations>\n-  </xml>\n+    <xml name="citations">\n+        <citations>\n+            <citation type="doi">10.1038/nbt.1621</citation>\n+            <yield/>\n+        </citations>\n+    </xml>\n \n </macros>\n'
b
diff -r f648e5180e40 -r ad5d061fbdf2 cuffcompare_wrapper.xml
--- a/cuffcompare_wrapper.xml Tue Jun 16 12:59:38 2020 -0400
+++ b/cuffcompare_wrapper.xml Sat Oct 05 11:15:49 2024 +0000
b
@@ -1,4 +1,4 @@
-<tool id="cuffcompare" name="Cuffcompare" version="@VERSION@.2">
+<tool id="cuffcompare" name="Cuffcompare" version="@TOOL_VERSION@.3" profile="@PROFILE@">
     <description>compare assembled transcripts to a reference annotation and track Cufflinks transcripts across multiple experiments</description>
     <macros>
       <import>cuff_macros.xml</import>