Repository 'plant_tribes_kaks_analysis'
hg clone https://toolshed.g2.bx.psu.edu/repos/greg/plant_tribes_kaks_analysis

Changeset 3:1fb0f2092177 (2017-10-30)
Previous changeset 2:2fe7044626ac (2017-08-24) Next changeset 4:48271ee78198 (2017-12-21)
Commit message:
Uploaded
modified:
.shed.yml
kaks_analysis.xml
macros.xml
b
diff -r 2fe7044626ac -r 1fb0f2092177 .shed.yml
--- a/.shed.yml Thu Aug 24 13:41:07 2017 -0400
+++ b/.shed.yml Mon Oct 30 09:54:20 2017 -0400
b
@@ -8,7 +8,7 @@
   utilize objective classifications of complete protein sequences from sequenced plant genomes to perform
   comparative evolutionary studies.  This tool performs orthologous or paralogous ks analyses of coding sequences
   and amino acid sequences.
-remote_repository_url: https://github.com/gregvonkuster/galaxy_tools/tree/master/tools/plant_tribes/kaks_analysis
+remote_repository_url: https://github.com/gregvonkuster/galaxy_tools/tree/master/tools/phylogenetics/plant_tribes/kaks_analysis
 type: unrestricted
 categories:
 - Phylogenetics
b
diff -r 2fe7044626ac -r 1fb0f2092177 kaks_analysis.xml
--- a/kaks_analysis.xml Thu Aug 24 13:41:07 2017 -0400
+++ b/kaks_analysis.xml Mon Oct 30 09:54:20 2017 -0400
[
b'@@ -1,9 +1,11 @@\n-<tool id="plant_tribes_kaks_analysis" name="KaKsAnalysis" version="@WRAPPER_VERSION@.2">\n+<tool id="plant_tribes_kaks_analysis" name="KaKsAnalysis" version="@WRAPPER_VERSION@.3.0">\n     <description>estimates paralogous and orthologous pairwise synonymous (Ks) and non-synonymous (Ka) substitution rates</description>\n     <macros>\n         <import>macros.xml</import>\n     </macros>\n-    <expand macro="requirements_kaks_analysis" />\n+    <requirements>\n+        <requirement type="package" version="1.0.3">plant_tribes_kaks_analysis</requirement>\n+    </requirements>\n     <command detect_errors="exit_code"><![CDATA[\n #set output_dir = \'kaksAnalysis_dir\'\n #set comparison = $comparison_cond.comparison\n@@ -34,6 +36,9 @@\n #if str($comparison) == \'orthologs\':\n     --coding_sequences_species_2 \'$comparison_cond.coding_sequences_species_2\'\n     --proteins_species_2 \'$comparison_cond.proteins_species_2\'\n+    #if str($comparison_cond.blast_option) == \'crbblast\':\n+        --crb_blast\n+    #end if\n #end if\n #if str($options_type.options_type_selector) == \'advanced\':\n     #if str($set_min_coverage) == \'yes\':\n@@ -58,18 +63,19 @@\n         --max_ks $set_upper_ks_limit_cond.max_ks\n     #end if\n #end if\n->/dev/null\n+&>proc.log\n && mv $output_dir/species1.fna \'$output_species1_fna\'\n && mv $output_dir/species1.faa \'$output_species1_faa\'\n #if str($comparison) == \'paralogs\':\n     && mv $output_dir/species1.fna.blastn.paralogs \'$output_species1_paralog\'\n+    && mv $output_dir/*.rbhb \'$output_rbhb_paralog\'\n #else:\n     && mv $output_dir/species2.faa \'$output_species2_faa\'\n     && mv $output_dir/species2.fna \'$output_species2_fna\'\n     && mv $output_dir/species1.fna.blastn.orthologs \'$output_species1_ortholog\'\n     && mv $output_dir/species2.fna.blastn.orthologs \'$output_species2_ortholog\'\n+    && mv $output_dir/*.rbhb \'$output_rbhb_ortholog\'\n #end if\n-&& mv $output_dir/*.rbhb \'$output_rbhb\'\n && mv $output_dir/*.kaks \'$output_kaks\'\n #if str($fit_components) == \'yes\':\n     && mv $output_dir/*.components \'$output_components\'\n@@ -87,6 +93,10 @@\n             <when value="orthologs">\n                 <param name="coding_sequences_species_2" format="fasta" type="data" label="Coding sequences for the second species" />\n                 <param name="proteins_species_2" format="fasta" type="data" label="Protein sequences for the second species" />\n+                <param name="blast_option" type="select" display="radio" label="Determine for cross-species orthologs using">\n+                    <option value="blast" selected="true">reciprocal best BLAST</option>\n+                    <option value="crbblast">conditional reciprocal best BLAST</option>\n+                </param>\n             </when>\n         </conditional>\n         <conditional name="options_type">\n@@ -164,26 +174,31 @@\n         </param>\n     </inputs>\n     <outputs>\n-        <data name="output_species1_fna" format="fasta" label="${tool.name} (coding sequences) on ${on_string}" />\n-        <data name="output_species1_faa" format="fasta" label="${tool.name} (amino acids) on ${on_string}" />\n-        <data name="output_species2_fna" format="fasta" label="${tool.name} (coding sequences) on ${on_string}">\n+        <data name="output_species1_fna" format="fasta" label="${tool.name} (coding sequences species1) on ${on_string}" />\n+        <data name="output_species1_faa" format="fasta" label="${tool.name} (amino acids species1) on ${on_string}" />\n+        <data name="output_species2_fna" format="fasta" label="${tool.name} (coding sequences species2) on ${on_string}">\n             <filter>comparison_cond[\'comparison\'] == \'orthologs\'</filter>\n         </data>\n-        <data name="output_species2_faa" format="fasta" label="${tool.name} (amino acids) on ${on_string}">\n+        <data name="output_species2_faa" format="fasta" label="${tool.name} (amino acids species2) on ${on_string}">\n             <filter>comparison_cond[\'comparison\'] == \'orthologs\'</filter>\n         </data>\n-        <data nam'..b'at="tabular" label="${tool.name} (blastn results species1 vs species2) on ${on_string}">\n+            <filter>comparison_cond[\'comparison\'] == \'orthologs\'</filter>\n+        </data>\n+        <data name="output_species2_ortholog" format="tabular" label="${tool.name} (blastn results species2 vs species1) on ${on_string}">\n             <filter>comparison_cond[\'comparison\'] == \'orthologs\'</filter>\n         </data>\n-        <data name="output_species2_ortholog" format="tabular" label="${tool.name} (blastn results) on ${on_string}">\n+        <data name="output_rbhb_paralog" format="tabular" label="${tool.name} (paralogous pairs) on ${on_string}">\n+            <filter>comparison_cond[\'comparison\'] == \'paralogs\'</filter>\n+        </data>\n+        <data name="output_rbhb_ortholog" format="tabular" label="${tool.name} (orthologous pairs) on ${on_string}">\n             <filter>comparison_cond[\'comparison\'] == \'orthologs\'</filter>\n         </data>\n-        <data name="output_rbhb" format="tabular" label="${tool.name} (paralogous pairs) on ${on_string}" />\n-        <data name="output_kaks" format="tabular" label="${tool.name} on ${on_string}" />\n-        <data name="output_components" format="ptkscmp" label="${tool.name} (significant components in the ks distribution) on ${on_string}">\n+        <data name="output_kaks" format="tabular" label="${tool.name} (KaKs distribution) on ${on_string}" />\n+        <data name="output_components" format="ptkscmp" label="${tool.name} (significant components in the KaKs distribution) on ${on_string}">\n             <filter>options_type[\'options_type_selector\'] == \'advanced\' and options_type[\'fit_components_cond\'][\'fit_components\'] == \'yes\'</filter>\n         </data>\n     </outputs>\n@@ -195,7 +210,7 @@\n             <output name="output_species1_fna" file="species1_cds.fasta" ftype="fasta" compare="contains"/>\n             <output name="output_species1_faa" file="species1_pep.fasta" ftype="fasta" compare="contains"/>\n             <output name="output_species1_paralog" file="output_blastn_results1.tabular" ftype="tabular" compare="contains"/>\n-            <output name="output_rbhb" file="output_paralogous_pairs.tabular" ftype="tabular"/>\n+            <output name="output_rbhb_paralog" file="output_paralogous_pairs.tabular" ftype="tabular"/>\n             <output name="output_kaks" file="output1.tabular" ftype="tabular"/>\n         </test>\n     </tests>\n@@ -218,6 +233,12 @@\n \n   - **Coding sequences for the second species** - coding sequence fasta file for the second species either produced by the AssemblyPostProcessor tool or from an external source selected from your history.  This option is required only for orthologous comparison.\n   - **Protein sequences for the second species** - corresponding protein sequence fasta files for the second species either produced by the AssemblyPostProcessor tool or from an external source selected from your history.  This option is required only for orthologous comparison.\n+\n+  - **Determine for cross-species orthologs using** - select option for blast orthology.\n+\n+    - **reciprocal best BLAST** - use the default stringent reciprocal BLAST package for orthology assignment.\n+    - **conditional reciprocal best BLAST** - use the CRB-BLAST package for orthology assignment which increases sensitivity to orthology comparisons and determines additional cross-species orthologs that are being left out by the defaul stringent reciprocal BLAST.\n+\n   - **Alignment coverage configuration** - select \'Yes\' to set the minimum allowable alignment coverage length between homologous pairs.  PlantTribes uses global codon alignment match score to determine the pairwise alignment coverage.  By default, the match score is set to 0.5 if \'No\' is selected.\n \n     - **match score** - number of base matches in a pairwise sequence alignment divided by the length of shorter sequence.  Positions in the alignment corresponding to gaps are not considered.  The score is restricted to the range 0.3 - 1.0.\n'
b
diff -r 2fe7044626ac -r 1fb0f2092177 macros.xml
--- a/macros.xml Thu Aug 24 13:41:07 2017 -0400
+++ b/macros.xml Mon Oct 30 09:54:20 2017 -0400
b
@@ -1,47 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <macros>
     <token name="@WRAPPER_VERSION@">1.0</token>
-    <xml name="requirements_assembly_post_processor">
-        <requirements>
-            <requirement type="package" version="1.0.2">plant_tribes_assembly_post_processor</requirement>
-        </requirements>
-    </xml>
-    <xml name="requirements_gene_family_aligner">
-        <requirements>
-            <requirement type="package" version="1.0.2">plant_tribes_gene_family_aligner</requirement>
-        </requirements>
-    </xml>
-    <xml name="requirements_gene_family_classifier">
-        <requirements>
-            <requirement type="package" version="1.0.2">plant_tribes_gene_family_classifier</requirement>
-        </requirements>
-    </xml>
-    <xml name="requirements_gene_family_integrator">
-        <requirements>
-            <requirement type="package" version="1.0.2">plant_tribes_gene_family_integrator</requirement>
-        </requirements>
-    </xml>
-    <xml name="requirements_kaks_analysis">
-        <requirements>
-            <requirement type="package" version="1.0.2">plant_tribes_kaks_analysis</requirement>
-        </requirements>
-    </xml>
-    <xml name="requirements_ks_distribution">
-        <requirements>
-            <requirement type="package" version="1.3.2">r-optparse</requirement>
-        </requirements>
-    </xml>
-    <xml name="requirements_gene_family_phylogeny_builder">
-        <requirements>
-            <requirement type="package" version="1.0.2">plant_tribes_gene_family_phylogeny_builder</requirement>
-        </requirements>
-    </xml>
-    <xml name="param_codon_alignments">
-        <param name="codon_alignments" type="select" label="Codon alignments">
-            <option value="yes" selected="true">Yes</option>
-            <option value="no">No</option>
-        </param>
-    </xml>
     <xml name="param_method">
         <param name="method" type="select" label="Protein clustering method">
             <option value="gfam" selected="true">GFam</option>
@@ -49,74 +8,12 @@
             <option value="orthomcl">OrthoMCL</option>
         </param>
     </xml>
-    <xml name="param_options_type">
-        <param name="options_type" type="select" label="Options Configuration">
-            <option value="basic" selected="true">Basic</option>
-            <option value="advanced">Advanced</option>
-        </param>
-    </xml>
-    <xml name="param_orthogroup_fna">
-        <param name="orthogroup_fna" type="select" label="Orthogroups coding sequences">
-            <option value="yes" selected="true">Yes</option>
-            <option value="no">No</option>
-        </param>
-    </xml>
     <xml name="param_scaffold">
         <param name="scaffold" type="select" label="Gene family scaffold">
             <options from_data_table="plant_tribes_scaffolds" />
             <validator type="no_options" message="No PlantTribes scaffolds are available.  Use the PlantTribes Scaffolds Download Data Manager tool in Galaxy to install and populate the PlantTribes scaffolds data table." />
         </param>
     </xml>
-    <xml name="param_sequence_type">
-        <param name="sequence_type" type="select" label="Sequence type used in the phylogenetic inference (dna)">
-            <option value="protein" selected="true">Amino acid based</option>
-            <option value="dna">Nucleotide based</option>
-        </param>
-    </xml>
-    <xml name="cond_alignment_method">
-        <conditional name="alignment_method_cond">
-            <param name="alignment_method" type="select" force_select="true" label="Multiple sequence alignment method">
-                <option value="mafft" selected="true">MAFFT</option>
-                <option value="pasta">PASTA</option>
-            </param>
-            <when value="mafft" />
-            <when value="pasta">
-                <param name="pasta_iter_limit" type="integer" value="3" min="1" label="PASTA iteration limit" />
-            </when>
-        </conditional>
-    </xml>
-    <xml name="cond_remove_gappy_sequences">
-        <conditional name="remove_gappy_sequences_cond">
-            <param name="remove_gappy_sequences" type="select" label="Alignment post-processing configuration">
-                <option value="no" selected="true">No</option>
-                <option value="yes">Yes</option>
-            </param>
-            <when value="no" />
-            <when value="yes">
-                <conditional name="trim_type_cond">
-                    <param name="trim_type" type="select" label="Trimming method">
-                        <option value="gap_trimming" selected="true">Gap score based trimming</option>
-                        <option value="automated_trimming">Automated heuristic trimming</option>
-                    </param>
-                    <when value="gap_trimming">
-                        <param name="gap_trimming" type="float" optional="true" min="0" max="1.0" label="Gap score" />
-                    </when>
-                    <when value="automated_trimming" />
-                </conditional>
-                <conditional name="remove_sequences_with_gaps_cond">
-                    <param name="remove_sequences_with_gaps" type="select" label="Remove sequences">
-                        <option value="no" selected="true">No</option>
-                        <option value="yes">Yes</option>
-                    </param>
-                    <when value="no" />
-                    <when value="yes">
-                        <param name="remove_sequences_with_gaps_of" type="float" optional="true" min="0" max="1" label="Coverage score" />
-                        <param name="iterative_realignment" type="integer" optional="true" min="0" label="Realignment iteration limit" />
-                    </when>
-                </conditional>
-            </when>
-        </conditional>
-    </xml>
     <xml name="citation1">
         <citation type="bibtex">
             @misc{None,