annotate transcriptsToOrfs.xml @ 5:a67c0a0d24ac

Update samtools tool_dependency
author Jim Johnson <jj@umn.edu>
date Mon, 11 Nov 2013 11:15:53 -0600
parents 5eb99d21ef0d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
1 <tool id="transcriptsToOrfs" name="transcriptsToOrfs" version="0.0.2">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
2 <description>Trinity Transcripts to Candidate Peptides</description>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
3 <requirements>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
4 <requirement type="package" version="2013_08_14">trinityrnaseq</requirement>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
5 <requirement type="package" version="3.0">hmmer</requirement>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
6 </requirements>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
7 <command>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
8 \$TRINITY_HOME/trinity-plugins/transdecoder/transcripts_to_best_scoring_ORFs.pl
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
9 -t $transcripts
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
10 #if $min_prot_length:
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
11 -m $min_prot_length
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
12 #end if
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
13 #if $retain_long_orfs:
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
14 --retain_long_orfs $retain_long_orfs
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
15 #end if
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
16 #if $training_count:
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
17 -T $training_count
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
18 #end if
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
19 #if str($strand_specificity) == 'SS':
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
20 -S
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
21 #end if
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
22 #if $genetic_code.__str__ != '':
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
23 -G $genetic_code
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
24 #end if
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
25 #if $search.use_pfam == 'yes':
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
26 --search_pfam "${ filter( lambda x: str( x[0] ) == str( $search.pfam_db ), $__app__.tool_data_tables[ 'pfam_databases' ].get_fields() )[0][-1] }"
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
27 --CPU $search.CPU
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
28 #end if
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
29 </command>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
30 <inputs>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
31 <param format="fasta" name="transcripts" type="data" label="Transcripts sequences in fastA format" help="" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
32 <param name="min_prot_length" type="integer" value="" optional="true" label="Minimum peptide length (in amino acids)" help="default: 100">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
33 <validator type="in_range" message="Minimum peptide length should be at least 50" min="50" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
34 </param>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
35 <param name="retain_long_orfs" type="integer" value="" optional="true" label="Retain all ORFs found that are of minimum length in nucleotides" help="default: 900" >
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
36 <validator type="in_range" message="ORF length should be at least 50" min="50" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
37 </param>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
38 <param name="training_count" type="integer" value="" optional="true" label="Number of top longest ORFs to train Markov Model (hexamer stats)" help="default: 500" >
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
39 <validator type="in_range" message="ORF count should be at least 50" min="50" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
40 </param>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
41 <param name="strand_specificity" type="select" label="Strand specificity type">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
42 <option value="DS">NOT strand specific, examine both strands</option>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
43 <option value="SS">Strand specific, examine only top strand</option>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
44 </param>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
45 <param name="genetic_code" type="select" label="Genetic Code">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
46 <option value="">use default(universal)</option>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
47 <option value="universal">universal</option>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
48 <option value="Euplotes">Euplotes</option>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
49 <option value="Tetrahymena">Tetrahymena</option>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
50 <option value="Candida">Candida</option>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
51 <option value="Acetabularia">Acetabularia</option>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
52 </param>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
53 <conditional name="search">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
54 <param name="use_pfam" type="select" label="Search PFAM database">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
55 <option value="no">NO</option>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
56 <option value="yes">YES</option>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
57 </param>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
58 <when value="no"/>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
59 <when value="yes">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
60 <param name="pfam_db" type="select" label="Pfam database">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
61 <options from_data_table="pfam_databases" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
62 </param>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
63 <param name="CPU" type="integer" value="2" min="1" label="CPU" help="Number of CPUs to use by hmmscan" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
64 </when>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
65 </conditional>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
66 </inputs>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
67 <stdio>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
68 <exit_code range="1:" level="fatal" description="Failed" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
69 <regex match="Error"
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
70 source="stderr"
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
71 level="fatal"
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
72 description="Failed" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
73 </stdio>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
74 <outputs>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
75 <data format="txt" name="trinity_pep_pfam" label="${tool.name} on ${on_string}: Pfam matches to Candidate Peptide Sequences" from_work_dir="longest_orfs.pep.pfam.dat">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
76 <filter>search['use_pfam'] == 'yes'</filter>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
77 </data>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
78 <data format="gff3" name="trinity_pep_gff3" label="${tool.name} on ${on_string} Candidate Peptide Features" from_work_dir="best_candidates.eclipsed_orfs_removed.gff3" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
79 <data format="bed" name="trinity_pep_bed" label="${tool.name} on ${on_string} Candidate Peptide Coordinates" from_work_dir="best_candidates.eclipsed_orfs_removed.bed" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
80 <data format="fasta" name="trinity_pep_cds" label="${tool.name} on ${on_string}: Candidate Peptide CDS Sequences" from_work_dir="best_candidates.eclipsed_orfs_removed.cds"/>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
81 <data format="fasta" name="trinity_pep_seqs" label="${tool.name} on ${on_string}: Candidate Peptide Sequences" from_work_dir="best_candidates.eclipsed_orfs_removed.pep"/>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
82 </outputs>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
83 <tests>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
84 <test>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
85 <param name="transcripts" ftype="fasta" value="TrinitySingle.fasta"/>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
86 <param name="min_prot_length" value="100"/>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
87 <param name="use_pfam" value="no"/>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
88 <output name="trinity_pep_seqs">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
89 <assert_contents>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
90 <has_text text="WAAKAWLITARSLYPADF" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
91 </assert_contents>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
92 </output>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
93 <output name="trinity_pep_cds">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
94 <assert_contents>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
95 <has_text text="TGGGCAGCCAAGGCATGGCTGATCACGGCCCGCA" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
96 </assert_contents>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
97 </output>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
98 <output name="trinity_pep_bed">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
99 <assert_contents>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
100 <has_text text="comp10_c0_seq1" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
101 </assert_contents>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
102 </output>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
103 <output name="trinity_pep_gff3">
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
104 <assert_contents>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
105 <has_text text="comp10_c0_seq1" />
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
106 </assert_contents>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
107 </output>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
108 </test>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
109 </tests>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
110 <help>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
111 ** transcriptsToOrfs **
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
112 Trinity_ is a de novo transcript assembler that uses RNA-seq data as input.
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
113 This tool searches for open reading frames in the assembled transcripts.
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
114
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
115 .. _Trinity: http://trinityrnaseq.sourceforge.net
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
116 </help>
5eb99d21ef0d Add trinityrnaseq_norm and transcriptsToOrfs tools
Jim Johnson <jj@umn.edu>
parents:
diff changeset
117 </tool>