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[
|
4
|
15 #if str($options_type.create_orthogroup_cond.create_orthogroup) == 'yes':
|
|
16 #set orthogroups_fasta_dir = $options_type.create_orthogroup_cond.coding_sequences.extra_files_path
|
5
|
17 mkdir -p $orthogroups_fasta_dir &&
|
4
|
18 #end if
|
0
|
19 GeneFamilyClassifier
|
|
20 --proteins "$input"
|
|
21 --scaffold "$scaffold"
|
|
22 --method $method
|
|
23 --classifier $classifier
|
|
24 #if str($options_type.options_type_selector) == 'advanced':
|
|
25 --super_orthogroups $options_type.super_orthogroups
|
|
26 #if str($options_type.single_copy_cond) == 'taxa':
|
|
27 --single_copy_taxa $options_type.single_copy_cond.single_copy_taxa
|
|
28 --taxa_present $options_type.single_copy_cond.taxa_present
|
|
29 #end if
|
3
|
30 #if str($options_type.create_orthogroup_cond.create_orthogroup) == 'yes':
|
0
|
31 --orthogroup_fasta
|
|
32 --coding_sequences "$options_type.create_orthogroup_cond.coding_sequences"
|
|
33 #end if
|
|
34 #end if
|
2
|
35 --scaffold_dir "${GALAXY_DATA_INDEX_DIR}/plant_tribes/scaffolds"
|
0
|
36 --num_threads \${GALAXY_SLOTS:-4}
|
4
|
37 #if str($options_type.create_orthogroup_cond.create_orthogroup) == 'yes':
|
7
|
38 && cp "./geneFamilyClassification_dir/orthogroups_fasta/*" $orthogroups_fasta_dir
|
4
|
39 #end if
|
0
|
40 ]]>
|
|
41 </command>
|
|
42 <inputs>
|
|
43 <param name="input" format="fasta" type="data" label="Amino acids (proteins) sequences fasta file"/>
|
|
44 <param name="scaffold" type="select" label="Orthogroups or gene families proteins scaffold">
|
|
45 <options from_data_table="plant_tribes_scaffolds" />
|
|
46 <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."/>
|
|
47 </param>
|
|
48 <param name="method" type="select" label="Protein clustering method">
|
|
49 <option value="gfam" selected="true">GFam</option>
|
|
50 <option value="orthofinder">OrthoFinder</option>
|
|
51 <option value="orthomcl">OrthoMCL</option>
|
|
52 </param>
|
|
53 <param name="classifier" type="select" label="Protein classification method">
|
|
54 <option value="blastp" selected="true">blastp</option>
|
|
55 <option value="hmmscan">HMMScan</option>
|
|
56 <option value="both">Both blastp and HMMScan</option>
|
|
57 </param>
|
|
58 <conditional name="options_type">
|
|
59 <param name="options_type_selector" type="select" label="Options Configuration">
|
|
60 <option value="basic" selected="true">Basic</option>
|
|
61 <option value="advanced">Advanced</option>
|
|
62 </param>
|
|
63 <when value="basic" />
|
|
64 <when value="advanced">
|
|
65 <param name="super_orthogroups" type="select" label="SuperOrthogroups MCL clustering" help="blastp e-value matrix between all pairs of orthogroups">
|
|
66 <option value="min_evalue" selected="true">Minimum e-value</option>
|
|
67 <option value="avg_evalue">Average e-value</option>
|
|
68 </param>
|
|
69 <conditional name="single_copy_cond">
|
|
70 <param name="single_copy" type="select" label="Select single copy configuration">
|
|
71 <option value="custom" selected="true">Single copy orthogroup custom</option>
|
|
72 <option value="taxa">Minumum single copy taxa required in orthogroup</option>
|
|
73 </param>
|
|
74 <when value="custom" />
|
|
75 <when value="taxa">
|
|
76 <param name="single_copy_taxa" type="integer" value="20" label="Minumum single copy taxa required in orthogroup"/>
|
|
77 <param name="taxa_present" type="integer" value="21" label="Minumum taxa required in single copy orthogroup"/>
|
|
78 </when>
|
|
79 </conditional>
|
|
80 <conditional name="create_orthogroup_cond">
|
|
81 <param name="create_orthogroup" type="select" label="Create orthogroup fasta files?">
|
|
82 <option value="no" selected="true">No</option>
|
|
83 <option value="yes">Yes</option>
|
|
84 </param>
|
|
85 <when value="no" />
|
|
86 <when value="yes">
|
|
87 <param name="coding_sequences" format="fasta" type="data" label="Corresponding coding sequences (CDS) fasta file"/>
|
|
88 </when>
|
|
89 </conditional>
|
|
90 </when>
|
|
91 </conditional>
|
|
92 </inputs>
|
|
93 <outputs>
|
|
94 <collection name="transcripts" type="list">
|
1
|
95 <discover_datasets pattern="__name__" directory="geneFamilyClassification_dir" visible="true" ext="fasta" />
|
0
|
96 </collection>
|
|
97 </outputs>
|
|
98 <tests>
|
|
99 <test>
|
|
100 <param name="input" value="" ftype="fasta" />
|
|
101 <param name="prediction_method" value="transdecoder"/>
|
|
102 <param name="target_gene_family_assembly" value="no"/>
|
|
103 <param name="strand_specific" value="yes"/>
|
|
104 <param name="dereplicate" value="yes"/>
|
|
105 <param name="min_length" value="200"/>
|
|
106 <output_collection name="orthos" type="list">
|
|
107
|
|
108 </output_collection>
|
|
109 </test>
|
|
110 </tests>
|
|
111 <help>
|
|
112 This tool is one of the PlantTribes' collection of automated modular analysis pipelines that utilize objective classifications of
|
|
113 complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. It performs Gene family
|
|
114 classification of the post processed de novo transcripts using either blastp (faster), HMMScan (slower but more sensitive to remote
|
|
115 homologs) or both (more exhaustive).
|
|
116
|
|
117 -----
|
|
118
|
|
119 **Options**
|
|
120
|
|
121 * **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data.
|
|
122 * **Protein clustering method** - One of GFam, OrthoFinder or OrthoMCL.
|
|
123 * **Protein classification method** - One of blastp, HMMScan or both.
|
|
124 * **SuperOrthogroups MCL clustering** - blastp e-value matrix between all pairs of orthogroups.
|
|
125 * **Minumum single copy taxa required in orthogroup** - Used with "Minumum single copy taxa required in orthogroup" configuration only.
|
|
126 * **Minumum taxa required in single copy orthogroup** - Used with "Minumum single copy taxa required in orthogroup" configuration only.
|
|
127 * **Corresponding coding sequences (CDS) fasta file** - Used only when selecting "Create orthogroup fasta files?".
|
|
128
|
|
129 </help>
|
|
130 <citations>
|
|
131 <citation type="bibtex">
|
|
132 @unpublished{None,
|
|
133 author = {None},
|
|
134 title = {None},
|
|
135 year = {None},
|
|
136 eprint = {None},
|
|
137 url = {None}
|
|
138 }</citation>
|
|
139 </citations>
|
|
140 </tool>
|