Mercurial > repos > greg > plant_tribes_gene_family_phylogeny_builder
changeset 9:ea8cbe5a8cd0 draft
Uploaded
author | greg |
---|---|
date | Thu, 30 Aug 2018 09:48:36 -0400 |
parents | 994e90ae9217 |
children | c331d86ec80b |
files | gene_family_phylogeny_builder.xml get_clustering_methods.py macros.xml |
diffstat | 3 files changed, 21 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/gene_family_phylogeny_builder.xml Wed Jun 06 09:24:38 2018 -0400 +++ b/gene_family_phylogeny_builder.xml Thu Aug 30 09:48:36 2018 -0400 @@ -6,6 +6,7 @@ <requirements> <requirement type="package" version="1.0.3">plant_tribes_gene_family_phylogeny_builder</requirement> </requirements> + <code file="get_clustering_methods.py"/> <command detect_errors="exit_code"><![CDATA[ #set input_dir = 'input_dir' #set tree_inference = $tree_inference_cond.tree_inference
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get_clustering_methods.py Thu Aug 30 09:48:36 2018 -0400 @@ -0,0 +1,12 @@ +import os + + +def get_clustering_method_options(file_path): + options = [] + if not os.path.isdir(file_path): + return options + methods_dir = os.path.join(file_path, "alns") + for i, file_name in enumerate(os.listdir(methods_dir)): + full_path = os.path.join(file_path, file_name) + options.append((file_name, full_path, i == 0)) + return options
--- a/macros.xml Wed Jun 06 09:24:38 2018 -0400 +++ b/macros.xml Thu Aug 30 09:48:36 2018 -0400 @@ -2,16 +2,16 @@ <macros> <token name="@WRAPPER_VERSION@">1.0</token> <xml name="param_method"> - <param name="method" type="select" label="Protein clustering method"> - <option value="gfam" selected="true">GFam</option> - <option value="orthofinder">OrthoFinder</option> - <option value="orthomcl">OrthoMCL</option> - </param> + <param name="method" type="select" label="Protein clustering method" dynamic_options="get_clustering_method_options(scaffold)"/> </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 name="scaffold" type="select" label="Gene family scaffold" refresh_on_change="True"> + <options from_data_table="plant_tribes_scaffolds"> + <column name="name" index="1"/> + <column name="value" index="2"/> + <filter type="sort_by" column="1"/> + <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."/> + </options> </param> </xml> <xml name="citation1">