changeset 51:32c3bf33cad7 draft

Uploaded
author greg
date Fri, 10 Feb 2017 09:05:32 -0500
parents ba0315c7b28b
children ebc846754dcb
files phylogenomics_analysis.xml
diffstat 1 files changed, 113 insertions(+), 104 deletions(-) [+]
line wrap: on
line diff
--- a/phylogenomics_analysis.xml	Fri Feb 03 14:55:26 2017 -0500
+++ b/phylogenomics_analysis.xml	Fri Feb 10 09:05:32 2017 -0500
@@ -1,7 +1,8 @@
 <tool id="plant_tribes_phylogenomics_analysis" name="Create multiple sequence alignments" version="0.3">
     <description>and inferred maximum likelihood phylogenies</description>
     <requirements>
-        <requirement type="package" version="0.3">plant_tribes_phylogenomics_analysis</requirement>
+        <requirement type="package" version="0.3">plant_tribes_phylogenomics_analysis
+        </requirement>
     </requirements>
     <stdio>
         <!-- Anything other than zero is an error -->
@@ -25,12 +26,12 @@
             #set src_fasta_dir = $os.path.join($pipeline_output_dir, 'orthogroups_fasta')
             #set src_tree_dir = $os.path.join($pipeline_output_dir, 'orthogroups_tree')
 
-            #if str($input_format) == 'ptcgf':
-                #set dest_fasta_dir = $output_fasta_ptcgf.extra_files_path
+            #if str($input_format) == 'ptortho':
+                #set dest_fasta_dir = $output_fasta_ptortho.extra_files_path
                 #set multiple_codon_alignments = 'no'
                 #set use_corresponding_coding_sequences = 'no'
             #else:
-                #set dest_fasta_dir = $output_fasta_ptcgfcs.extra_files_path
+                #set dest_fasta_dir = $output_fasta_ptorthocs.extra_files_path
                 #set multiple_codon_alignments_cond = $input_format_cond.multiple_codon_alignments_cond
                 #set multiple_codon_alignments = $multiple_codon_alignments_cond.multiple_codon_alignments
                 #if str($multiple_codon_alignments) == 'yes':
@@ -68,10 +69,10 @@
 
             PhylogenomicsAnalysis
             --num_threads \${GALAXY_SLOTS:-4}
-            #if str($input_format) == 'ptcgf':
-                --orthogroup_faa '$input_format_cond.input_ptcgf.extra_files_path'
+            #if str($input_format) == 'ptortho':
+                --orthogroup_faa '$input_format_cond.input_ptortho.extra_files_path'
             #else:
-                --orthogroup_faa '$input_format_cond.input_ptcgfcs.extra_files_path'
+                --orthogroup_faa '$input_format_cond.input_ptorthocs.extra_files_path'
             #end if
             --scaffold_dir '$scaffold_dir'
             --scaffold '$scaffold_selection'
@@ -121,25 +122,25 @@
                 #end if
             #end if
 
-            #if str($input_format) == 'ptcgf':
-                && echo "Sequence alignments and corresponding phylogenies: `ls $src_fasta_dir | grep f | wc -l` files" > $output_fasta_ptcgf
-                && ls -al $src_fasta_dir | grep f >> $output_fasta_ptcgf
+            && echo "Sequence alignments and corresponding phylogenies"
+            #if str($input_format) == 'ptortho':
+                && echo -e "#Size\tName" > $output_fasta_ptortho
+                && ls -l $src_fasta_dir | grep f | awk -F ' ' '{print $5"\t"$9}' >> $output_fasta_ptortho
             #else:
-                && echo "Sequence alignments and corresponding phylogenies: `ls $src_fasta_dir | grep f | wc -l` files" > $output_fasta_ptcgfcs
-                && ls -al $src_fasta_dir | grep f >> $output_fasta_ptcgfcs
+                && echo -e "#Size\tName" > $output_fasta_ptorthocs
+                && ls -l $src_fasta_dir | grep f | awk -F ' ' '{print $5"\t"$9}' >> $output_fasta_ptorthocs
             #end if
-
             && mv $src_fasta_dir/* $dest_fasta_dir || true
 
             #if $generate_output_aln:
-                && echo "Multiple sequence alignments using method '$multiple_sequence_alignments_option' (note that some files may be empty): `ls $src_aln_dir | grep f | wc -l` files" > $output_aln
-                && ls -al $src_aln_dir | grep f >> $output_aln
+                && echo -e "#Size\tName" > $output_aln
+                && ls -l $src_aln_dir | grep f | awk -F ' ' '{print $5"\t"$9}' >> $output_aln
                 && mv $src_aln_dir/* $dest_aln_dir || true
             #end if
 
             #if $generate_output_tree:
-                && echo "Phylogenetic trees (note that some files may be empty): `ls $src_tree_dir | grep f | wc -l` files" > $output_tree
-                && ls -al $src_tree_dir | grep f >> $output_tree
+                && echo -e "#Size\tName" > $output_tree
+                && ls -l $src_tree_dir | grep f | awk -F ' ' '{print $5"\t"$9}' >> $output_tree
                 && mv $src_tree_dir/* $dest_tree_dir || true
             #end if
         ]]>
@@ -147,22 +148,22 @@
     <inputs>
         <conditional name="input_format_cond">
             <param name="input_format" type="select" label="Select type of data to sub sample">
-                <option value="ptcgf">Gene family clusters</option>
-                <option value="ptcgfcs">Gene family clusters and corresponding coding sequences</option>
+                <option value="ptortho">Gene family clusters</option>
+                <option value="ptorthocs">Gene family clusters and corresponding coding sequences</option>
             </param>
-            <when value="ptcgf">
-                <param name="input_ptcgf" format="ptcgf" type="data" label="Gene family clusters"/>
+            <when value="ptortho">
+                <param name="input_ptortho" format="ptortho" type="data" label="Precomputed orthologous gene family clusters" />
             </when>
-            <when value="ptcgfcs">
-                <param name="input_ptcgfcs" format="ptcgfcs" type="data" label="Gene family clusters with corresponding coding sequences"/>
+            <when value="ptorthocs">
+                <param name="input_ptorthocs" format="ptorthocs" type="data" label="Precomputed orthologous gene family clusters with corresponding coding sequences" />
                 <conditional name="multiple_codon_alignments_cond">
                     <param name="multiple_codon_alignments" type="select" label="Construct orthogroup multiple codon alignments?">
                         <option value="no" selected="True">No</option>
                         <option value="yes">Yes</option>
                     </param>
-                    <when value="no"/>
+                    <when value="no" />
                     <when value="yes">
-                        <param name="sequence_type" type="select" label="Sequence type used in the phylogenetic inference - (dna)">
+                        <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>
@@ -180,7 +181,7 @@
         </conditional>
         <param name="scaffold" type="select" label="Orthogroups or gene families proteins 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."/>
+            <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>
         <param name="method" type="select" label="Protein clustering method">
             <option value="gfam" selected="true">GFam</option>
@@ -202,15 +203,16 @@
                     <when value="no" />
                     <when value="yes">
                         <conditional name="multiple_sequence_alignments_option_cond">
-                            <param name="multiple_sequence_alignments_option" label="Select method for multiple sequence alignments" type="select" force_select="True">
+                            <param name="multiple_sequence_alignments_option" label="Select method for multiple sequence alignments" type="select"
+                                force_select="True">
                                 <option value="create_alignments">Create orthogroup protein multiple sequence alignments including scaffold backbone proteins (MAFFT algorithm)</option>
                                 <option value="add_alignments">Add unaligned orthogroup proteins to scaffold backbone multiple sequence alignments (MAFFT algorithm)</option>
                                 <option value="pasta_alignments">Create orthogroup protein multiple sequence alignments including scaffold backbone proteins (PASTA algorithm)</option>
                             </param>
-                            <when value="create_alignments"/>
-                            <when value="add_alignments"/>
+                            <when value="create_alignments" />
+                            <when value="add_alignments" />
                             <when value="pasta_alignments">
-                                <param name="pasta_iter_limit" type="integer" value="3" min="0" label="Maximum number of iteration that the PASTA algorithm will run"/>
+                                <param name="pasta_iter_limit" type="integer" value="3" min="0" label="Maximum number of iteration that the PASTA algorithm will run" />
                             </when>
                         </conditional>
                     </when>
@@ -233,17 +235,17 @@
                                         <option value="no" selected="true">No</option>
                                         <option value="yes">Yes</option>
                                     </param>
-                                    <when value="no"/>
+                                    <when value="no" />
                                     <when value="yes">
-                                        <param name="rooting_order" format="txt" type="data" label="History item containing strings matching sequence identifiers of species for determining the most basal taxa in the orthogroups for rooting trees"/>
+                                        <param name="rooting_order" format="txt" type="data" label="History item containing strings matching sequence identifiers of species for determining the most basal taxa in the orthogroups for rooting trees" />
                                     </when>
                                 </conditional>
-                                <param name="bootstrap_replicates" type="integer" value="100" min="0" label="Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree"/>
+                                <param name="bootstrap_replicates" type="integer" value="100" min="0" label="Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree" />
                             </when>
-                            <when value="fasttree"/>
+                            <when value="fasttree" />
                         </conditional>
-                        <param name="max_orthogroup_size" type="integer" value="100" min="0" label="Maximum number of sequences in orthogroup alignments"/>
-                        <param name="min_orthogroup_size" type="integer" value="4" min="0" label="Minimum number of sequences in orthogroup alignments"/>
+                        <param name="max_orthogroup_size" type="integer" value="100" min="0" label="Maximum number of sequences in orthogroup alignments" />
+                        <param name="min_orthogroup_size" type="integer" value="4" min="0" label="Minimum number of sequences in orthogroup alignments" />
                     </when>
                 </conditional>
                 <conditional name="msa_quality_control_options_cond">
@@ -258,17 +260,17 @@
                                 <option value="no" selected="true">No</option>
                                 <option value="yes">Yes</option>
                             </param>
-                            <when value="no"/>
+                            <when value="no" />
                             <when value="yes">
-                                <param name="remove_sequences" type="float" value="0.5" min="0" max="1" label="Remove sequences with gaps of" help="0.5 removes sequences with 50% gaps"/>
+                                <param name="remove_sequences" type="float" value="0.5" min="0" max="1" label="Remove sequences with gaps of" help="0.5 removes sequences with 50% gaps" />
                                 <conditional name="trim_type_cond">
                                     <param name="trim_type" type="select" label="Select process used for gap trimming">
-                                        <option value="gap_trimming" selected="true">Nucleotide based</option>
+                                        <option value="gap_trimming" selected="true">Nucleotide based </option>
                                         <option value="automated_trimming">Trim alignments using trimAl's ML heuristic trimming approach</option>
                                     </param>
-                                    <when value="automated_trimming"/>
+                                    <when value="automated_trimming" />
                                     <when value="gap_trimming">
-                                        <param name="gap_trimming" type="float" value="0.1" min="0" max="1.0" label="Remove sites in alignments with gaps of" help="0.1 removes sites with 90% gaps"/>
+                                        <param name="gap_trimming" type="float" value="0.1" min="0" max="1.0" label="Remove sites in alignments with gaps of" help="0.1 removes sites with 90% gaps" />
                                     </when>
                                 </conditional>
                             </when>
@@ -279,13 +281,13 @@
         </conditional>
     </inputs>
     <outputs>
-        <data name="output_fasta_ptcgf" format="ptcgf">
-            <filter>input_format_cond['input_format'] == 'ptcgf'</filter>
+        <data name="output_fasta_ptortho" format="ptortho">
+            <filter>input_format_cond['input_format'] == 'ptortho'</filter>
         </data>
-        <data name="output_fasta_ptcgfcs" format="ptcgfcs">
-            <filter>input_format_cond['input_format'] == 'ptcgfcs'</filter>
+        <data name="output_fasta_ptorthocs" format="ptorthocs">
+            <filter>input_format_cond['input_format'] == 'ptorthocs'</filter>
         </data>
-        <data name="output_aln" format="txt" label="Multiple alignments on ${on_string}">
+        <data name="output_aln" format="txt" label="Multiple alignments using method ${options_type['multiple_sequence_alignments_cond']['multiple_sequence_alignments_option_cond']['multiple_sequence_alignments_option']} on ${on_string}">
             <filter>options_type['options_type_selector'] == 'advanced' and options_type['multiple_sequence_alignments_cond']['multiple_sequence_alignments'] == 'yes'</filter>
         </data>
         <data name="output_tree" format="ptpt" label="Phylogenetic trees on ${on_string}">
@@ -297,75 +299,82 @@
         </test>
     </tests>
     <help>
-This tool is one of the PlantTribes' collection of automated modular analysis pipelines that utilize objective classifications of
-complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. It performs phylogenomic
-analyses by creating multiple sequence alignments and inferred maximum likelihood phylogenies for orthogroups produced by the
-**Classify gene sequences into precomputed orthologous gene family clusters** tool.
+        This tool is one of the PlantTribes' collection of automated modular analysis pipelines that utilize objective classifications of
+        complete protein sequences from sequenced plant genomes to perform comparative evolutionary studies. It performs phylogenomic
+        analyses by creating multiple sequence alignments and inferred maximum likelihood phylogenies for orthogroups produced by the
+        **Classify gene sequences into precomputed orthologous gene family clusters** tool.
 
------
+        -----
 
-**Options**
+        **Options**
 
-* **Required options**
+        * **Required options**
 
- - **Select gene family clusters** - Sequences classified into gene family clusters, optionally including corresponding coding sequences.
- - **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data.
- - **Protein clustering method** - One of GFam (domain architecture based clustering), OrthoFinder (broadly defined clusters) or OrthoMCL (narrowly defined clusters).
-
-* **Multiple sequence alignments options**
+        - **Select gene family clusters** - Sequences classified into gene family clusters, optionally including corresponding coding sequences.
+        - **Orthogroups or gene families proteins scaffold** - PlantTribes scaffolds data.
+        - **Protein clustering method** - One of GFam (domain architecture based clustering), OrthoFinder (broadly defined clusters) or OrthoMCL (narrowly defined clusters).  
+        * **Multiple sequence alignments options**
 
- - **Select method for multiple sequence alignments** - Method used for setting multiple sequence alignments.
- - **Input sequences include corresponding coding sequences?** - Selecting 'Yes' for this option requires that the selected input data format is 'ptcgfcs'.
- - **Construct orthogroup multiple codon alignments?** - Construct orthogroup multiple codon alignments.
- - **Sequence type used in the phylogenetic inference** - Sequence type (dna or amino acid) used in the phylogenetic inference.
- - **Use corresponding coding sequences?** - Selecting 'Yes' for this option requires that the selected input data format is 'ptcgfcs' or this tool will produce an error.
+        - **Select method for multiple sequence alignments** - Method used for setting multiple sequence alignments.
+        - **Input sequences include corresponding coding sequences?** - Selecting 'Yes' for this option requires that the selected input data format is 'ptorthocs'.
+        - **Construct orthogroup multiple codon alignments?** - Construct orthogroup multiple codon alignments.
+        - **Sequence type used in the phylogenetic inference** - Sequence type (dna or amino acid) used in the phylogenetic inference.
+        - **Use corresponding coding sequences?** - Selecting 'Yes' for this option requires that the selected input data format is 'ptorthocs' or this tool will produce an error.
 
-* **Phylogenetic trees options**
+        * **Phylogenetic trees options**
 
- - **Phylogenetic trees inference method** - Phylogenetic trees inference method.
- - **Select history item containing strings matching sequence identifiers of species for determining the most basal taxa in the orthogroups for rooting trees?** - If 'No' is selected, trees will be rooted using the most distant taxon present in the orthogroup.
- - **History item containing strings matching sequence identifiers of species for determining the most basal taxa in the orthogroups for rooting trees** - History item containing a set of string fragments matching sequences identifiers of species in the classification (including scaffold taxa) to be used for determining the most basal taxa in the orthogroups for rooting trees. The set of string fragments must be listed in decreasing order from older to younger lineages.
- - **Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree** - Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree.
- - **Maximum number of sequences in orthogroup alignments** - Maximum number of sequences in orthogroup alignments.
- - **Minimum number of sequences in orthogroup alignments** - Minimum number of sequences in orthogroup alignments.
+        - **Phylogenetic trees inference method** - Phylogenetic trees inference method.
+        - **Select history item containing strings matching sequence identifiers of species for determining the most basal taxa in the orthogroups for rooting trees?** - If 'No' is selected, trees will be rooted using the most distant taxon present in the orthogroup.
+        - **History item containing strings matching sequence identifiers of species for determining the most basal taxa in the orthogroups for rooting trees** - History item containing a set of string fragments matching sequences identifiers of species in the classification (including scaffold taxa) to be used for determining the most basal taxa in the orthogroups for rooting trees. The set of string fragments must be listed in decreasing order from older to younger lineages.
+        - **Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree** - Number of replicates for rapid bootstrap analysis and search for the best-scoring ML tree.
+        - **Maximum number of sequences in orthogroup alignments** - Maximum number of sequences in orthogroup alignments.
+        - **Minimum number of sequences in orthogroup alignments** - Minimum number of sequences in orthogroup alignments.
 
-* **MSA quality control options**
+        * **MSA quality control options**
 
- - **Remove sequences with gaps of** - Removes gappy sequences in alignments (i.e., 0.5 removes sequences with 50% gaps).
- - **Select process used for gap trimming** - Either nucleotide based trimming or alignments are trimed using using trimAl's ML heuristic trimming approach.
- - **Remove sites in alignments with gaps of** - If the process used for gap trimming is nucleotide based, this is the gap value used when removing gappy sites in alignments (i.e., 0.1 removes sites with 90% gaps).
+        - **Remove sequences with gaps of** - Removes gappy sequences in alignments (i.e., 0.5 removes sequences with 50% gaps).
+        - **Select process used for gap trimming** - Either nucleotide based trimming or alignments are trimed using using trimAl's ML heuristic trimming approach.
+        - **Remove sites in alignments with gaps of** - If the process used for gap trimming is nucleotide based, this is the gap value used when removing gappy sites in alignments (i.e., 0.1 removes sites with 90% gaps).
 
     </help>
     <citations>
-            <citation type="bibtex">
-                @unpublished{None,
-                author = {Eric Wafula},
-                title = {None},
-                year = {None},
-                url = {https://github.com/dePamphilis/PlantTribes}
-            }</citation>
-            <citation type="doi">10.1093/bioinformatics/btw412</citation>
-            <citation type="bibtex">
-                @published{Research in Computational Molecular Biology (RECOMB) (pp. 177–191),
-                author = {Mirarab, S., Nguyen, N., Warnow, T.},
-                title = {PASTA: Ultra-Large Multiple Sequence Alignment. In R. Sharan (Ed.)},
-                year = {2014},
-                url = {https://github.com/smirarab/pasta}
-            }</citation>
-            <citation type="bibtex">
-                @published{Bioinformatics,
-                author = {Salvador Capella-Gutierrez, Jose M. Silla-Martinez, Toni Gabaldon},
-                title = {trimAl: a tool for automated alignment trimming in large-scale phylogenetic analyses},
-                year = {2009},
-                url = {http://trimal.cgenomics.org}
-            }</citation>
-            <citation type="bibtex">
-                @published{Bioinformatics,
-                author = {A. Stamatakis},
-                title = {RAxML Version 8: A tool for Phylogenetic Analysis and Post-Analysis of Large Phylogenies},
-                year = {2014},
-                url = {http://sco.h-its.org/exelixis/web/software/raxml/index.html}
-            }</citation>
-            <citation type="doi">10.1371/journal.pone.0009490</citation>
+        <citation type="bibtex">
+            @unpublished{None,
+            author = {Eric Wafula},
+            title = {None},
+            year = {None},
+            url = {https://github.com/dePamphilis/PlantTribes}
+            }
+        </citation>
+        <citation type="doi">10.1093/bioinformatics/btw412</citation>
+        <citation type="bibtex">
+            @published{Research in Computational Molecular Biology (RECOMB) (pp. 177–191),
+            author = {Mirarab, S., Nguyen, N., Warnow, T.},
+            title = {PASTA: Ultra-Large Multiple Sequence Alignment. In R. Sharan
+            (Ed.)},
+            year = {2014},
+            url = {https://github.com/smirarab/pasta}
+            }
+        </citation>
+        <citation type="bibtex">
+            @published{Bioinformatics,
+            author = {Salvador Capella-Gutierrez, Jose M. Silla-Martinez, Toni
+            Gabaldon},
+            title = {trimAl: a tool for automated alignment trimming in large-scale
+            phylogenetic analyses},
+            year = {2009},
+            url = {http://trimal.cgenomics.org}
+            }
+        </citation>
+        <citation type="bibtex">
+            @published{Bioinformatics,
+            author = {A. Stamatakis},
+            title = {RAxML Version 8: A tool for Phylogenetic Analysis and
+            Post-Analysis of Large Phylogenies},
+            year = {2014},
+            url = {http://sco.h-its.org/exelixis/web/software/raxml/index.html}
+            }
+        </citation>
+        <citation type="doi">10.1371/journal.pone.0009490</citation>
     </citations>
 </tool>