1
|
1 <tool id="plant_tribes_gene_family_classifier" name="GeneFamilyClassifier" version="1.0.0">
|
0
|
2 <description>pipeline</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="0.2">plant_tribes_gene_family_classifier</requirement>
|
|
5 </requirements>
|
|
6 <stdio>
|
|
7 <!-- Anything other than zero is an error -->
|
|
8 <exit_code range="1:" />
|
|
9 <!-- In case the return code has not been set properly check stderr too -->
|
|
10 <regex match="Error:" />
|
|
11 <regex match="Exception:" />
|
|
12 </stdio>
|
|
13 <command>
|
|
14 <![CDATA[
|
9
|
15 #set create_ortho_sequences = str($options_type.options_type_selector) == 'advanced' and str($options_type.create_orthogroup_cond.create_orthogroup) == 'yes'
|
|
16 #if create_ortho_sequences:
|
8
|
17 #import os
|
9
|
18 #set src_dir = $os.path.join('geneFamilyClassification_dir', 'orthogroups_fasta')
|
|
19 #set dest_dir = $output.extra_files_path
|
|
20 mkdir -p $dest_dir &&
|
4
|
21 #end if
|
0
|
22 GeneFamilyClassifier
|
|
23 --proteins "$input"
|
|
24 --scaffold "$scaffold"
|
|
25 --method $method
|
|
26 --classifier $classifier
|
|
27 #if str($options_type.options_type_selector) == 'advanced':
|
|
28 --super_orthogroups $options_type.super_orthogroups
|
|
29 #if str($options_type.single_copy_cond) == 'taxa':
|
|
30 --single_copy_taxa $options_type.single_copy_cond.single_copy_taxa
|
|
31 --taxa_present $options_type.single_copy_cond.taxa_present
|
|
32 #end if
|
3
|
33 #if str($options_type.create_orthogroup_cond.create_orthogroup) == 'yes':
|
0
|
34 --orthogroup_fasta
|
|
35 --coding_sequences "$options_type.create_orthogroup_cond.coding_sequences"
|
|
36 #end if
|
|
37 #end if
|
2
|
38 --scaffold_dir "${GALAXY_DATA_INDEX_DIR}/plant_tribes/scaffolds"
|
0
|
39 --num_threads \${GALAXY_SLOTS:-4}
|
9
|
40 #if create_ortho_sequences:
|
|
41 echo "Sequences classified into pre-computed orthologous plant gene family clusters: `ls $src_dir | wc -l` files" > $output &&
|
10
|
42 mv $src_dir/* $dest_dir
|
4
|
43 #end if
|
0
|
44 ]]>
|
|
45 </command>
|
|
46 <inputs>
|
|
47 <param name="input" format="fasta" type="data" label="Amino acids (proteins) sequences fasta file"/>
|
|
48 <param name="scaffold" type="select" label="Orthogroups or gene families proteins scaffold">
|
|
49 <options from_data_table="plant_tribes_scaffolds" />
|
|
50 <validator type="no_options" message="No PlantTribes scaffolds are available. Use the PlantTribes Scaffolds Download Data Manager tool to install and populate the PlantTribes scaffolds data table."/>
|
|
51 </param>
|
|
52 <param name="method" type="select" label="Protein clustering method">
|
|
53 <option value="gfam" selected="true">GFam</option>
|
|
54 <option value="orthofinder">OrthoFinder</option>
|
|
55 <option value="orthomcl">OrthoMCL</option>
|
|
56 </param>
|
|
57 <param name="classifier" type="select" label="Protein classification method">
|
|
58 <option value="blastp" selected="true">blastp</option>
|
|
59 <option value="hmmscan">HMMScan</option>
|
|
60 <option value="both">Both blastp and HMMScan</option>
|
|
61 </param>
|
|
62 <conditional name="options_type">
|
|
63 <param name="options_type_selector" type="select" label="Options Configuration">
|
|
64 <option value="basic" selected="true">Basic</option>
|
|
65 <option value="advanced">Advanced</option>
|
|
66 </param>
|
|
67 <when value="basic" />
|
|
68 <when value="advanced">
|
|
69 <param name="super_orthogroups" type="select" label="SuperOrthogroups MCL clustering" help="blastp e-value matrix between all pairs of orthogroups">
|
|
70 <option value="min_evalue" selected="true">Minimum e-value</option>
|
|
71 <option value="avg_evalue">Average e-value</option>
|
|
72 </param>
|
|
73 <conditional name="single_copy_cond">
|
|
74 <param name="single_copy" type="select" label="Select single copy configuration">
|
|
75 <option value="custom" selected="true">Single copy orthogroup custom</option>
|
|
76 <option value="taxa">Minumum single copy taxa required in orthogroup</option>
|
|
77 </param>
|
|
78 <when value="custom" />
|
|
79 <when value="taxa">
|
|
80 <param name="single_copy_taxa" type="integer" value="20" label="Minumum single copy taxa required in orthogroup"/>
|
|
81 <param name="taxa_present" type="integer" value="21" label="Minumum taxa required in single copy orthogroup"/>
|
|
82 </when>
|
|
83 </conditional>
|
|
84 <conditional name="create_orthogroup_cond">
|
|
85 <param name="create_orthogroup" type="select" label="Create orthogroup fasta files?">
|
|
86 <option value="no" selected="true">No</option>
|
|
87 <option value="yes">Yes</option>
|
|
88 </param>
|
|
89 <when value="no" />
|
|
90 <when value="yes">
|
|
91 <param name="coding_sequences" format="fasta" type="data" label="Corresponding coding sequences (CDS) fasta file"/>
|
|
92 </when>
|
|
93 </conditional>
|
|
94 </when>
|
|
95 </conditional>
|
|
96 </inputs>
|
|
97 <outputs>
|
9
|
98 <data name="output" format="txt" label="Sequences classified into gene family clusters on ${on_string}">
|
|
99 <filter>options_type['options_type_selector'] == 'advanced' and options_type['create_orthogroup_cond']['create_orthogroup'] == 'yes'</filter>
|
|
100 </data>
|
0
|
101 <collection name="transcripts" type="list">
|
11
|
102 <discover_datasets pattern="__name__" directory="geneFamilyClassification_dir" visible="false" />
|
0
|
103 </collection>
|
|
104 </outputs>
|
|
105 <tests>
|
|
106 <test>
|
|
107 <param name="input" value="" ftype="fasta" />
|
|
108 <param name="prediction_method" value="transdecoder"/>
|
|
109 <param name="target_gene_family_assembly" value="no"/>
|
|
110 <param name="strand_specific" value="yes"/>
|
|
111 <param name="dereplicate" value="yes"/>
|
|
112 <param name="min_length" value="200"/>
|
|
113 <output_collection name="orthos" type="list">
|
|
114
|
|
115 </output_collection>
|
|
116 </test>
|
|
117 </tests>
|
|
118 <help>
|
|
119 This tool is one of the PlantTribes' collection of automated modular analysis pipelines that utilize objective classifications of
|
9
|
120 complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. It performs gene family
|
0
|
121 classification of the post processed de novo transcripts using either blastp (faster), HMMScan (slower but more sensitive to remote
|
|
122 homologs) or both (more exhaustive).
|
|
123
|
|
124 -----
|
|
125
|
|
126 **Options**
|
|
127
|
|
128 * **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data.
|
|
129 * **Protein clustering method** - One of GFam, OrthoFinder or OrthoMCL.
|
|
130 * **Protein classification method** - One of blastp, HMMScan or both.
|
|
131 * **SuperOrthogroups MCL clustering** - blastp e-value matrix between all pairs of orthogroups.
|
|
132 * **Minumum single copy taxa required in orthogroup** - Used with "Minumum single copy taxa required in orthogroup" configuration only.
|
|
133 * **Minumum taxa required in single copy orthogroup** - Used with "Minumum single copy taxa required in orthogroup" configuration only.
|
|
134 * **Corresponding coding sequences (CDS) fasta file** - Used only when selecting "Create orthogroup fasta files?".
|
|
135
|
|
136 </help>
|
|
137 <citations>
|
|
138 <citation type="bibtex">
|
|
139 @unpublished{None,
|
|
140 author = {None},
|
|
141 title = {None},
|
|
142 year = {None},
|
|
143 eprint = {None},
|
|
144 url = {None}
|
|
145 }</citation>
|
|
146 </citations>
|
|
147 </tool>
|