Repository 'trinity'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/trinity

Changeset 17:199aa6821ca5 (2017-12-15)
Previous changeset 16:32b86cd8eb50 (2017-08-28) Next changeset 18:d3b1249af60c (2017-12-19)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/trinity commit 7f726b691ead726864f1b67230cb5d58e16b5f58
modified:
README.rst
macros.xml
trinity.xml
b
diff -r 32b86cd8eb50 -r 199aa6821ca5 README.rst
--- a/README.rst Mon Aug 28 16:53:46 2017 -0400
+++ b/README.rst Fri Dec 15 07:57:50 2017 -0500
b
@@ -9,22 +9,22 @@
 By default, this tool is configured to limit the memory consumption to 1G.
 You might need to lower this limit if the machine(s) executing the jobs have less memory available.
 If you have a lot of reads to assemble and a machine with enough memory, you can increase it.
-In both cases, you can set the TRINITY_MAX_MEMORY environmental variable in the destination section of the job_conf.xml file:
+In both cases, you can set the TRINITY_MAX_MEMORY environmental variable in the destination section of the job_conf.xml file::
 
-<?xml version="1.0"?>
-<!-- A sample job config that explicitly configures job running the way it is configured by default (if there is no explicit config). -->
-<job_conf>
-    <plugins>
-        <plugin id="local" type="runner" load="galaxy.jobs.runners.local:LocalJobRunner" workers="4"/>
-    </plugins>
-    <handlers>
-        <handler id="main"/>
-    </handlers>
-    <destinations>
-        <destination id="local" runner="local">
-            <env id="TRINITY_MAX_MEMORY">1G</env>
-        </destination>
-    </destinations>
-</job_conf>
+    <?xml version="1.0"?>
+    <!-- A sample job config that explicitly configures job running the way it is configured by default (if there is no explicit config). -->
+    <job_conf>
+        <plugins>
+            <plugin id="local" type="runner" load="galaxy.jobs.runners.local:LocalJobRunner" workers="4"/>
+        </plugins>
+        <handlers>
+            <handler id="main"/>
+        </handlers>
+        <destinations>
+            <destination id="local" runner="local">
+                <env id="TRINITY_MAX_MEMORY">1G</env>
+            </destination>
+        </destinations>
+    </job_conf>
 
 
b
diff -r 32b86cd8eb50 -r 199aa6821ca5 macros.xml
--- a/macros.xml Mon Aug 28 16:53:46 2017 -0400
+++ b/macros.xml Fri Dec 15 07:57:50 2017 -0500
b
@@ -9,6 +9,28 @@
 
     <token name="@WRAPPER_VERSION@">2.4.0</token>
 
+    <token name="@COMMAND_PAIRED_STRAND_JACCARD@">
+        #if $inputs.strand.is_strand_specific:
+            --SS_lib_type $inputs.strand.library_type
+        #end if
+
+        $inputs.jaccard_clip
+    </token>
+
+    <xml name="input_paired_strand_jaccard">
+        <conditional name="strand">
+            <param name="is_strand_specific" type="boolean" checked="false" label="Strand specific data"/>
+            <when value="false" />
+            <when value="true">
+                <param name="library_type" argument="--SS_lib_type" type="select" label="Strand-specific library type">
+                    <option value="FR">Forward-Reverse</option>
+                    <option value="RF">Reverse-Forward</option>
+                </param>
+            </when>
+        </conditional>
+        <param name="jaccard_clip" argument="--jaccard_clip" type="boolean" truevalue="--jaccard_clip" falsevalue="" checked="false" label="Jaccard Clip options" help="Set if you expect high gene density with UTR overlap"/>
+    </xml>
+
     <xml name="citation">
         <citations>
             <citation type="doi">10.1038/nbt.1883</citation>
b
diff -r 32b86cd8eb50 -r 199aa6821ca5 trinity.xml
--- a/trinity.xml Mon Aug 28 16:53:46 2017 -0400
+++ b/trinity.xml Fri Dec 15 07:57:50 2017 -0500
[
b'@@ -1,4 +1,4 @@\n-<tool id="trinity" name="Trinity" version="@WRAPPER_VERSION@.0">\n+<tool id="trinity" name="Trinity" version="@WRAPPER_VERSION@.1">\n     <description>de novo assembly of RNA-Seq data</description>\n     <macros>\n         <import>macros.xml</import>\n@@ -20,11 +20,20 @@\n                 --seqType fq\n             #end if\n \n-            #if $inputs.strand.is_strand_specific:\n-                --SS_lib_type $inputs.strand.library_type\n+            @COMMAND_PAIRED_STRAND_JACCARD@\n+\n+        #elif $inputs.paired_or_single == "paired_collection"\n+            --left ${ \',\'.join([\'"%s"\' % x.forward for x in $inputs.pair_input]) }\n+\n+            --right ${ \',\'.join([\'"%s"\' % x.reverse for x in $inputs.pair_input]) }\n+\n+            #if $inputs.pair_input[0].forward.is_of_type(\'fasta\'):\n+                --seqType fa\n+            #else:\n+                --seqType fq\n             #end if\n \n-            $inputs.jaccard_clip\n+            @COMMAND_PAIRED_STRAND_JACCARD@\n \n         #else:\n             --single ${ \',\'.join([\'"%s"\' % x for x in $inputs.input]) }\n@@ -74,27 +83,12 @@\n     <inputs>\n         <conditional name="inputs">\n             <param name="paired_or_single" type="select" label="Paired or Single-end data?">\n-                <option value="paired">Paired</option>\n-                <option value="single">Single</option>\n+                <option value="single">Single-end</option>\n+                <option value="paired" selected="true">Paired-end</option>\n+                <option value="paired_collection">Paired-end collection</option>\n             </param>\n-            <when value="paired">\n-                <param format="fasta,fastqsanger" argument="--left" name="left_input" multiple="true" type="data" label="Left/Forward strand reads" help=""/>\n-                <param format="fasta,fastqsanger" argument="--right" name="right_input" multiple="true" type="data" label="Right/Reverse strand reads" help=""/>\n-                <conditional name="strand">\n-                    <param name="is_strand_specific" type="boolean" checked="false" label="Strand specific data"/>\n-                    <when value="false">\n-                    </when>\n-                    <when value="true">\n-                        <param name="library_type" argument="--SS_lib_type" type="select" label="Strand-specific Library Type">\n-                            <option value="FR">Forward-Reverse</option>\n-                            <option value="RF">Reverse-Forward</option>\n-                        </param>\n-                    </when>\n-                </conditional>\n-                <param name="jaccard_clip" argument="--jaccard_clip" type="boolean" truevalue="--jaccard_clip" falsevalue="" checked="false" label="Jaccard Clip options" help="set if you expect high gene density with UTR overlap"/>\n-            </when>\n             <when value="single">\n-                <param format="fasta,fastqsanger" name="input" argument="--single" multiple="true" type="data" label="Single-end reads" help=""/>\n+                <param name="input" argument="--single" type="data" format="fasta,fastqsanger" multiple="true" label="Single-end reads" help=""/>\n                 <conditional name="strand">\n                     <param name="is_strand_specific" type="boolean" checked="false" label="Strand specific data"/>\n                     <when value="false">\n@@ -107,6 +101,15 @@\n                     </when>\n                 </conditional>\n             </when>\n+            <when value="paired">\n+                <param name="left_input" argument="--left" type="data" format="fasta,fastqsanger" multiple="true" label="Left/Forward strand reads" />\n+                <param name="right_input" argument="--right" type="data" format="fasta,fastqsanger" multiple="true" label="Right/Reverse strand reads" />\n+                <expand macro="input_paired_strand_jaccard" />\n+            </when>\n+            <when value="paired_collection">\n+                <param name="pair_input" type="d'..b'"Defaults to max. read coverage of 50."/>\n@@ -122,20 +125,19 @@\n                 <when value="no">\n                 </when>\n                 <when value="yes">\n-                    <param format="bam" name="genome_guided_bam" argument="--genome_guided_bam" type="data" label="Coordinate-sorted BAM file" />\n+                    <param name="genome_guided_bam" argument="--genome_guided_bam" type="data" format="bam" label="Coordinate-sorted BAM file" />\n                     <param name="genome_guided_min_coverage" argument="--genome_guided_min_coverage" type="integer" optional="true" value="1" min="1" label="Minimum read coverage for identifying an expressed region of the genome"/>\n                     <param name="genome_guided_min_reads_per_partition" argument="--genome_guided_min_reads_per_partition" type="integer" optional="true" value="10" min="1" label="Minimum number of reads per partition"/>\n                 </when>\n             </conditional>\n \n-            <param format="fasta" name="long_reads" argument="--long_reads" type="data" optional="true" label="Error-corrected or circular consensus (CCS) pac bio reads" help="Experimental feature! Long reads must be in the same orientation as short reads if they are strand specific"/>\n+            <param name="long_reads" argument="--long_reads" type="data" format="fasta" optional="true" label="Error-corrected or circular consensus (CCS) pac bio reads" help="Experimental feature! Long reads must be in the same orientation as short reads if they are strand specific"/>\n \n             <param name="min_kmer_cov" argument="--min_kmer_cov" type="integer" optional="true" value="1" min="1" label="Minimum count for K-mers to be assembled"/>\n         </section>\n     </inputs>\n     <outputs>\n-        <!--data format="txt" name="trinity_log" label="${tool.name} on ${on_string}: log" /-->\n-        <data format="fasta" name="assembled_transcripts" label="${tool.name} on ${on_string}: Assembled Transcripts" from_work_dir="trinity_out_dir/Trinity.fasta"/>\n+        <data name="assembled_transcripts" format="fasta" label="${tool.name} on ${on_string}: Assembled Transcripts" from_work_dir="trinity_out_dir/Trinity.fasta"/>\n     </outputs>\n     <tests>\n         <test>\n@@ -156,11 +158,34 @@\n             <param name="library_type" value="RF"/>\n             <output name="assembled_transcripts" file="norm/Trinity.fasta" compare="sim_size" delta="500" />\n         </test>\n+        <test>\n+            <param name="paired_or_single" value="paired_collection"/>\n+            <param name="pair_input">\n+                <collection type="list:paired">\n+                    <element name="pair1">\n+                        <collection type="paired">\n+                            <element name="forward" value="reads.left.fq" ftype="fastqsanger" />\n+                            <element name="reverse" value="reads.right.fq" ftype="fastqsanger"/>\n+                        </collection>\n+                    </element>\n+                    <element name="pair2">\n+                        <collection type="paired">\n+                            <element name="forward" value="reads.left.fq" ftype="fastqsanger" />\n+                            <element name="reverse" value="reads.right.fq" ftype="fastqsanger"/>\n+                        </collection>\n+                    </element>\n+                </collection>\n+            </param>\n+            <param name="is_strand_specific" value="true"/>\n+            <param name="norm" value="true"/>\n+            <param name="library_type" value="RF"/>\n+            <output name="assembled_transcripts" file="norm/Trinity.fasta" compare="sim_size" delta="500" />\n+        </test>\n     </tests>\n     <help>\n-        Trinity_ assembles transcript sequences from Illumina RNA-Seq data.\n+Trinity_ assembles transcript sequences from Illumina RNA-Seq data.\n \n-        .. _Trinity: http://trinityrnaseq.github.io\n+.. _Trinity: http://trinityrnaseq.github.io\n     </help>\n \n     <expand macro="citation" />\n'