0
|
1 <tool id="trinityrnaseq" name="Trinity" version="r20140717">
|
|
2
|
|
3 <!-- Written by Jeremy Goecks -->
|
|
4 <!-- Modified by Anmol J. Hemrom -->
|
|
5
|
|
6 <description>De novo assembly of RNA-Seq data Using Trinity</description>
|
|
7 <requirements>
|
|
8 <requirement type="package" version="r20140717">trinityrnaseq</requirement>
|
7
|
9 <requirement type="package" version="0.12.7">bowtie</requirement>
|
0
|
10 </requirements>
|
|
11 <command>
|
|
12 Trinity --JM $JM --CPU $CPU
|
|
13
|
|
14 ## Inputs.
|
|
15 #if str($inputs.paired_or_single) == "paired":
|
|
16 --left $inputs.left_input --right $inputs.right_input
|
|
17 #if $inputs.left_input.ext == 'fa':
|
|
18 --seqType fa
|
|
19 #else:
|
|
20 --seqType fq
|
|
21 #end if
|
|
22 #if str($inputs.library_type) != "None":
|
|
23 --SS_lib_type $inputs.library_type
|
|
24 #end if
|
|
25 --group_pairs_distance $inputs.group_pairs_distance
|
|
26 #else:
|
|
27 --single $inputs.input
|
|
28 #if str($inputs.input.ext) == 'fa':
|
|
29 --seqType fa
|
|
30 #else:
|
|
31 --seqType fq
|
|
32 #end if
|
|
33 #if str($inputs.library_type) != "None":
|
|
34 --SS_lib_type $inputs.library_type
|
|
35 #end if
|
|
36 #end if
|
|
37
|
|
38 ## Additional parameters.
|
|
39 #if str($additional_params.use_additional) == "yes":
|
|
40 --min_kmer_cov $inputs.min_kmer_cov --max_reads_per_graph $inputs.max_reads_per_graph --bflyHeapSpaceMax $input.bflyHeapSpaceMax
|
|
41 #if $inputs.bfly_opts != 'None':
|
|
42 --bfly_opts " $inputs.bfly_opts "
|
|
43 #end if
|
|
44 #end if
|
|
45
|
|
46
|
|
47 ## direct to output
|
|
48 > $trinity_log 2>&1
|
|
49
|
|
50 </command>
|
|
51 <inputs>
|
|
52 <param name="JM" type="select" label="JM" help="Amount of memory to allocate to Jellyfish for Kmer catalog construction">
|
|
53 <option value="1G">1G</option>
|
|
54 <option value="10G">10G</option>
|
|
55 <option value="50G">50G</option>
|
|
56 <option value="100G">100G</option>
|
|
57 <option value="200G">200G</option>
|
|
58 <option value="500G">500G</option>
|
|
59 </param>
|
|
60
|
|
61 <param name="CPU" type="integer" value="2" min="1" label="CPU" help="Number of CPUs to use by Trinity" />
|
|
62
|
|
63
|
|
64 <conditional name="inputs">
|
|
65 <param name="paired_or_single" type="select" label="Paired or Single-end data?">
|
|
66 <option value="paired">Paired</option>
|
|
67 <option value="single">Single</option>
|
|
68 </param>
|
|
69 <when value="paired">
|
|
70 <param format="fasta,fastq" name="left_input" type="data" label="Left/Forward strand reads" help=""/>
|
|
71 <param format="fasta,fastq" name="right_input" type="data" label="Right/Reverse strand reads" help=""/>
|
|
72 <param name="library_type" type="select" label="Strand-specific Library Type">
|
|
73 <option value="None">None</option>
|
|
74 <option value="FR">FR</option>
|
|
75 <option value="RF">RF</option>
|
|
76 </param>
|
|
77 <param name="group_pairs_distance" type="integer" value="500" min="1" label="Group pairs distance" help="Maximum length expected between fragment pairs"/>
|
|
78 <param name="path_reinforcement_distance" type="integer" value="75" min="1" label="Path reinforcement distance" help="Minimum read overlap required for path extension in the graph" />
|
|
79
|
|
80 </when>
|
|
81 <when value="single">
|
|
82 <param format="fasta,fastq" name="input" type="data" label="Single-end reads" help=""/>
|
|
83 <param name="library_type" type="select" label="Strand-specific Library Type">
|
|
84 <option value="None">None</option>
|
|
85 <option value="F">F</option>
|
|
86 <option value="R">R</option>
|
|
87 </param>
|
|
88 <param name="path_reinforcement_distance" type="integer" value="40" min="1" label="Path reinforcement distance" help="Minimum read overlap required for path extension in the graph" />
|
|
89 </when>
|
|
90 </conditional>
|
|
91
|
|
92 <conditional name="additional_params">
|
|
93 <param name="use_additional" type="select" label="Use Additional Params?">
|
|
94 <option value="no">No</option>
|
|
95 <option value="yes">Yes</option>
|
|
96 </param>
|
|
97 <when value="no">
|
|
98 </when>
|
|
99 <when value="yes">
|
|
100 <param name="min_kmer_cov" type="integer" value="1" min="1" label="inchworm_min_kmer_cov" help="Minimum kmer coverage required by Inchworm for initial contig construction" />
|
|
101 <param name="max_reads_per_graph" type="integer" value="20000000" min="10000" label="chrysalis_max_reads_per_graph" help="Maximum number of reads to be anchored within each transcript graph by Chrysalis" />
|
|
102
|
|
103
|
|
104 <param name="bfly_opts" type="text" value="None" label="bfly_opts" help="Options to pass on to Butterfly" />
|
|
105 <param name="bflyHeapSpaceMax" type="select" label="bflyHeapSpaceMax" help="Java heap space maximum value for Butterfly">
|
|
106 <option value="1G">1G</option>
|
|
107 <option value="2G">2G</option>
|
|
108 <option value="4G" selected="true">4G</option>
|
|
109 <option value="10G">10G</option>
|
|
110 <option value="20G">20G</option>
|
|
111 </param>
|
|
112
|
|
113 <param name="min_contig_length" type="integer" value="200" min="1" label="Minimum Contig Length" help=""/>
|
|
114 </when>
|
|
115 </conditional>
|
|
116
|
|
117
|
|
118 </inputs>
|
|
119 <outputs>
|
|
120 <data format="txt" name="trinity_log" label="${tool.name} on ${on_string}: log" />
|
|
121 <data format="fasta" name="assembled_transcripts" label="${tool.name} on ${on_string}: Assembled Transcripts" from_work_dir="trinity_out_dir/Trinity.fasta"/>
|
|
122 </outputs>
|
|
123 <tests>
|
|
124 </tests>
|
|
125 <help>
|
|
126 Trinity is a de novo transcript assembler that uses RNA-seq data as input. This tool runs all Trinity_ commands--Inchworm, Chrysalis, and Butterfly--in a single pass.
|
|
127
|
|
128 .. _Trinity: http://trinityrnaseq.sourceforge.net
|
|
129 </help>
|
|
130 </tool>
|