annotate trinityrnaseq.xml @ 0:d0c258caafaf draft

Uploaded
author nate
date Tue, 01 Sep 2015 16:15:38 -0400
parents
children 976e99dd3c2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d0c258caafaf Uploaded
nate
parents:
diff changeset
1 <tool id="trinity_psc" name="Trinity" version="0.0.1">
d0c258caafaf Uploaded
nate
parents:
diff changeset
2
d0c258caafaf Uploaded
nate
parents:
diff changeset
3 <!-- Written by Jeremy Goecks, now maintained here by bhaas and additional
d0c258caafaf Uploaded
nate
parents:
diff changeset
4 modifications by Nate Coraor -->
d0c258caafaf Uploaded
nate
parents:
diff changeset
5 <description>(Beta) De novo assembly of RNA-Seq data Using Trinity on PSC's Greenfield</description>
d0c258caafaf Uploaded
nate
parents:
diff changeset
6 <requirements>
d0c258caafaf Uploaded
nate
parents:
diff changeset
7 <!-- These are versions available as modules on Greenfield -->
d0c258caafaf Uploaded
nate
parents:
diff changeset
8 <requirement type="package" version="1.1.1">bowtie</requirement>
d0c258caafaf Uploaded
nate
parents:
diff changeset
9 <requirement type="package" version="1.1">samtools</requirement>
d0c258caafaf Uploaded
nate
parents:
diff changeset
10 <requirement type="package" version="jre7">java</requirement>
d0c258caafaf Uploaded
nate
parents:
diff changeset
11 <requirement type="package" version="2.0.6">trinity</requirement>
d0c258caafaf Uploaded
nate
parents:
diff changeset
12 </requirements>
d0c258caafaf Uploaded
nate
parents:
diff changeset
13 <command>
d0c258caafaf Uploaded
nate
parents:
diff changeset
14 MEM=`expr "\${GALAXY_SLOTS:-15}" \* 50 - 16` ;
d0c258caafaf Uploaded
nate
parents:
diff changeset
15 Trinity --max_memory "\${MEM}G"
d0c258caafaf Uploaded
nate
parents:
diff changeset
16 --CPU "\${GALAXY_SLOTS:-16}"
d0c258caafaf Uploaded
nate
parents:
diff changeset
17 --bflyHeapSpaceMax "\${MEM}G"
d0c258caafaf Uploaded
nate
parents:
diff changeset
18
d0c258caafaf Uploaded
nate
parents:
diff changeset
19 ## Inputs.
d0c258caafaf Uploaded
nate
parents:
diff changeset
20 #if str($inputs.paired_or_single) == "paired":
d0c258caafaf Uploaded
nate
parents:
diff changeset
21 --left $inputs.left_input --right $inputs.right_input
d0c258caafaf Uploaded
nate
parents:
diff changeset
22 #if $inputs.left_input.ext == 'fa':
d0c258caafaf Uploaded
nate
parents:
diff changeset
23 --seqType fa
d0c258caafaf Uploaded
nate
parents:
diff changeset
24 #else:
d0c258caafaf Uploaded
nate
parents:
diff changeset
25 --seqType fq
d0c258caafaf Uploaded
nate
parents:
diff changeset
26 #end if
d0c258caafaf Uploaded
nate
parents:
diff changeset
27 #if str($inputs.library_type) != "undefined":
d0c258caafaf Uploaded
nate
parents:
diff changeset
28 --SS_lib_type $inputs.library_type
d0c258caafaf Uploaded
nate
parents:
diff changeset
29 #end if
d0c258caafaf Uploaded
nate
parents:
diff changeset
30 --group_pairs_distance $inputs.group_pairs_distance
d0c258caafaf Uploaded
nate
parents:
diff changeset
31 #else:
d0c258caafaf Uploaded
nate
parents:
diff changeset
32 --single $inputs.input
d0c258caafaf Uploaded
nate
parents:
diff changeset
33 #if str($inputs.input.ext) == 'fa':
d0c258caafaf Uploaded
nate
parents:
diff changeset
34 --seqType fa
d0c258caafaf Uploaded
nate
parents:
diff changeset
35 #else:
d0c258caafaf Uploaded
nate
parents:
diff changeset
36 --seqType fq
d0c258caafaf Uploaded
nate
parents:
diff changeset
37 #end if
d0c258caafaf Uploaded
nate
parents:
diff changeset
38 #if str($inputs.library_type) != "undefined":
d0c258caafaf Uploaded
nate
parents:
diff changeset
39 --SS_lib_type $inputs.library_type
d0c258caafaf Uploaded
nate
parents:
diff changeset
40 #end if
d0c258caafaf Uploaded
nate
parents:
diff changeset
41 #end if
d0c258caafaf Uploaded
nate
parents:
diff changeset
42
d0c258caafaf Uploaded
nate
parents:
diff changeset
43 ## Additional parameters.
d0c258caafaf Uploaded
nate
parents:
diff changeset
44 #if str($additional_params.use_additional) == "yes":
d0c258caafaf Uploaded
nate
parents:
diff changeset
45 --min_kmer_cov $additional_params.min_kmer_cov --max_reads_per_graph $additional_params.max_reads_per_graph
d0c258caafaf Uploaded
nate
parents:
diff changeset
46 #if $additional_params.bfly_opts != 'None':
d0c258caafaf Uploaded
nate
parents:
diff changeset
47 --bfly_opts " $additional_params.bfly_opts "
d0c258caafaf Uploaded
nate
parents:
diff changeset
48 #end if
d0c258caafaf Uploaded
nate
parents:
diff changeset
49 #end if
d0c258caafaf Uploaded
nate
parents:
diff changeset
50
d0c258caafaf Uploaded
nate
parents:
diff changeset
51 ## direct to output
d0c258caafaf Uploaded
nate
parents:
diff changeset
52 > $trinity_log 2>&amp;1
d0c258caafaf Uploaded
nate
parents:
diff changeset
53
d0c258caafaf Uploaded
nate
parents:
diff changeset
54 ## if Trinity fails, output the end of the log to stderr for Galaxy, and touch the output file for Pulsar
d0c258caafaf Uploaded
nate
parents:
diff changeset
55 || (ec=\$? ; cat $trinity_log >&amp;2 ; mkdir -p trinity_out_dir ; touch trinity_out_dir/Trinity.fasta ; exit \$ec)
d0c258caafaf Uploaded
nate
parents:
diff changeset
56
d0c258caafaf Uploaded
nate
parents:
diff changeset
57 </command>
d0c258caafaf Uploaded
nate
parents:
diff changeset
58 <stdio>
d0c258caafaf Uploaded
nate
parents:
diff changeset
59 <exit_code range="1:" level="fatal" description="Program failed" />
d0c258caafaf Uploaded
nate
parents:
diff changeset
60 <exit_code range=":-1" level="fatal" description="DRM killed job" />
d0c258caafaf Uploaded
nate
parents:
diff changeset
61 </stdio>
d0c258caafaf Uploaded
nate
parents:
diff changeset
62 <inputs>
d0c258caafaf Uploaded
nate
parents:
diff changeset
63 <conditional name="inputs">
d0c258caafaf Uploaded
nate
parents:
diff changeset
64 <param name="paired_or_single" type="select" label="Paired or Single-end data?">
d0c258caafaf Uploaded
nate
parents:
diff changeset
65 <option value="paired">Paired</option>
d0c258caafaf Uploaded
nate
parents:
diff changeset
66 <option value="single">Single</option>
d0c258caafaf Uploaded
nate
parents:
diff changeset
67 </param>
d0c258caafaf Uploaded
nate
parents:
diff changeset
68 <when value="paired">
d0c258caafaf Uploaded
nate
parents:
diff changeset
69 <param format="fasta,fastq" name="left_input" type="data" label="Left/Forward strand reads" help=""/>
d0c258caafaf Uploaded
nate
parents:
diff changeset
70 <param format="fasta,fastq" name="right_input" type="data" label="Right/Reverse strand reads" help=""/>
d0c258caafaf Uploaded
nate
parents:
diff changeset
71 <param name="library_type" type="select" label="Strand-specific Library Type">
d0c258caafaf Uploaded
nate
parents:
diff changeset
72 <option value="undefined">Not set</option>
d0c258caafaf Uploaded
nate
parents:
diff changeset
73 <option value="FR">FR</option>
d0c258caafaf Uploaded
nate
parents:
diff changeset
74 <option value="RF">RF</option>
d0c258caafaf Uploaded
nate
parents:
diff changeset
75 </param>
d0c258caafaf Uploaded
nate
parents:
diff changeset
76 <param name="group_pairs_distance" type="integer" value="500" min="1" label="Group pairs distance" help="Maximum length expected between fragment pairs"/>
d0c258caafaf Uploaded
nate
parents:
diff changeset
77 <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" />
d0c258caafaf Uploaded
nate
parents:
diff changeset
78 </when>
d0c258caafaf Uploaded
nate
parents:
diff changeset
79 <when value="single">
d0c258caafaf Uploaded
nate
parents:
diff changeset
80 <param format="fasta,fastq" name="input" type="data" label="Single-end reads" help=""/>
d0c258caafaf Uploaded
nate
parents:
diff changeset
81 <param name="library_type" type="select" label="Strand-specific Library Type">
d0c258caafaf Uploaded
nate
parents:
diff changeset
82 <option value="undefined">Not set</option>
d0c258caafaf Uploaded
nate
parents:
diff changeset
83 <option value="F">F</option>
d0c258caafaf Uploaded
nate
parents:
diff changeset
84 <option value="R">R</option>
d0c258caafaf Uploaded
nate
parents:
diff changeset
85 </param>
d0c258caafaf Uploaded
nate
parents:
diff changeset
86 <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" />
d0c258caafaf Uploaded
nate
parents:
diff changeset
87 </when>
d0c258caafaf Uploaded
nate
parents:
diff changeset
88 </conditional>
d0c258caafaf Uploaded
nate
parents:
diff changeset
89
d0c258caafaf Uploaded
nate
parents:
diff changeset
90 <conditional name="additional_params">
d0c258caafaf Uploaded
nate
parents:
diff changeset
91 <param name="use_additional" type="select" label="Use Additional Params?">
d0c258caafaf Uploaded
nate
parents:
diff changeset
92 <option value="no">No</option>
d0c258caafaf Uploaded
nate
parents:
diff changeset
93 <option value="yes">Yes</option>
d0c258caafaf Uploaded
nate
parents:
diff changeset
94 </param>
d0c258caafaf Uploaded
nate
parents:
diff changeset
95 <when value="no">
d0c258caafaf Uploaded
nate
parents:
diff changeset
96 </when>
d0c258caafaf Uploaded
nate
parents:
diff changeset
97 <when value="yes">
d0c258caafaf Uploaded
nate
parents:
diff changeset
98 <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" />
d0c258caafaf Uploaded
nate
parents:
diff changeset
99 <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" />
d0c258caafaf Uploaded
nate
parents:
diff changeset
100 <param name="bfly_opts" type="text" value="None" label="bfly_opts" help="Options to pass on to Butterfly" />
d0c258caafaf Uploaded
nate
parents:
diff changeset
101 <param name="min_contig_length" type="integer" value="200" min="1" label="Minimum Contig Length" help=""/>
d0c258caafaf Uploaded
nate
parents:
diff changeset
102 </when>
d0c258caafaf Uploaded
nate
parents:
diff changeset
103 </conditional>
d0c258caafaf Uploaded
nate
parents:
diff changeset
104 </inputs>
d0c258caafaf Uploaded
nate
parents:
diff changeset
105 <outputs>
d0c258caafaf Uploaded
nate
parents:
diff changeset
106 <data format="txt" name="trinity_log" label="${tool.name} on ${on_string}: log" />
d0c258caafaf Uploaded
nate
parents:
diff changeset
107 <data format="fasta" name="assembled_transcripts" label="${tool.name} on ${on_string}: Assembled Transcripts" from_work_dir="trinity_out_dir/Trinity.fasta"/>
d0c258caafaf Uploaded
nate
parents:
diff changeset
108 </outputs>
d0c258caafaf Uploaded
nate
parents:
diff changeset
109 <tests>
d0c258caafaf Uploaded
nate
parents:
diff changeset
110 </tests>
d0c258caafaf Uploaded
nate
parents:
diff changeset
111 <help>
d0c258caafaf Uploaded
nate
parents:
diff changeset
112 .. warning:: This version of Trinity, which runs on Greenfield_ at the `Pittsburgh Supercomputing Center`_, is a **beta** version. It may not be possible to rerun the same version of this tool, Trinity itself, or its other dependencies (Bowtie, SAMtools) in the future. **When rerunning this tool on the same data, it should, but cannot be guaranteed to reproduce the exact same results to the level of certainty as other Galaxy tools.**
d0c258caafaf Uploaded
nate
parents:
diff changeset
113
d0c258caafaf Uploaded
nate
parents:
diff changeset
114 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.
d0c258caafaf Uploaded
nate
parents:
diff changeset
115
d0c258caafaf Uploaded
nate
parents:
diff changeset
116 .. _Trinity: http://trinityrnaseq.github.io
d0c258caafaf Uploaded
nate
parents:
diff changeset
117 .. _Pittsburgh Supercomputing Center: http://www.psc.edu
d0c258caafaf Uploaded
nate
parents:
diff changeset
118 .. _Greenfield: http://www.psc.edu/index.php/resources-for-users/computing-resources/greenfield
d0c258caafaf Uploaded
nate
parents:
diff changeset
119 </help>
d0c258caafaf Uploaded
nate
parents:
diff changeset
120 </tool>