Mercurial > repos > greg > plant_tribes_gene_family_integrator
changeset 6:00f14e3bbe9f draft
Uploaded
author | greg |
---|---|
date | Thu, 30 Aug 2018 09:45:52 -0400 |
parents | 9de4252b1018 |
children | 51c2f0c74349 |
files | gene_family_integrator.xml get_clustering_methods.py macros.xml |
diffstat | 3 files changed, 21 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/gene_family_integrator.xml Tue Aug 21 12:48:41 2018 -0400 +++ b/gene_family_integrator.xml Thu Aug 30 09:45:52 2018 -0400 @@ -6,6 +6,7 @@ <requirements> <requirement type="package" version="1.0.3">plant_tribes_gene_family_integrator</requirement> </requirements> + <code file="get_clustering_methods.py"/> <command detect_errors="exit_code"><![CDATA[ #set input_dir = 'input_dir' mkdir $input_dir &&
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get_clustering_methods.py Thu Aug 30 09:45:52 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 Tue Aug 21 12:48:41 2018 -0400 +++ b/macros.xml Thu Aug 30 09:45:52 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">