comparison search_model_validation.xml @ 19:cb5635e30842 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit e2a5eade6d0e5ddf3a47630381a0ad90d80e8a04"
author bgruening
date Tue, 13 Apr 2021 18:41:36 +0000
parents c1ca24a1509d
children 301e07345c93
comparison
equal deleted inserted replaced
18:e5a5ad882f1f 19:cb5635e30842
1 <tool id="sklearn_searchcv" name="Hyperparameter Search" version="@VERSION@"> 1 <tool id="sklearn_searchcv" name="Hyperparameter Search" version="@VERSION@" profile="20.05">
2 <description>performs hyperparameter optimization using various SearchCVs</description> 2 <description>performs hyperparameter optimization using various SearchCVs</description>
3 <macros> 3 <macros>
4 <import>main_macros.xml</import> 4 <import>main_macros.xml</import>
5 <macro name="search_cv_estimator"> 5 <macro name="search_cv_estimator">
6 <param name="infile_estimator" type="data" format="zip" label="Choose the dataset containing pipeline/estimator object"/> 6 <param name="infile_estimator" type="data" format="zip" label="Choose the dataset containing pipeline/estimator object"/>
30 </macro> 30 </macro>
31 </macros> 31 </macros>
32 <expand macro="python_requirements"/> 32 <expand macro="python_requirements"/>
33 <expand macro="macro_stdio"/> 33 <expand macro="macro_stdio"/>
34 <version_command>echo "@VERSION@"</version_command> 34 <version_command>echo "@VERSION@"</version_command>
35 <command> 35 <command><![CDATA[
36 <![CDATA[
37 export HDF5_USE_FILE_LOCKING='FALSE'; 36 export HDF5_USE_FILE_LOCKING='FALSE';
38 #if $input_options.selected_input == 'refseq_and_interval' 37 #if $input_options.selected_input == 'refseq_and_interval'
39 bgzip -c '$input_options.target_file' > '${target_file.element_identifier}.gz' && 38 bgzip -c '$input_options.target_file' > '${target_file.element_identifier}.gz' &&
40 tabix -p bed '${target_file.element_identifier}.gz' && 39 tabix -p bed '${target_file.element_identifier}.gz' &&
41 #end if 40 #end if
42 python '$__tool_directory__/search_model_validation.py' 41 python '$__tool_directory__/search_model_validation.py'
43 --inputs '$inputs' 42 --inputs '$inputs'
44 --estimator '$search_schemes.infile_estimator' 43 --estimator '$search_schemes.infile_estimator'
45 #if $input_options.selected_input == 'seq_fasta' 44 #if $input_options.selected_input == 'seq_fasta'
46 --fasta_path '$input_options.fasta_path' 45 --fasta_path '$input_options.fasta_path'
47 #elif $input_options.selected_input == 'refseq_and_interval' 46 #elif $input_options.selected_input == 'refseq_and_interval'
48 --ref_seq '$input_options.ref_genome_file' 47 --ref_seq '$input_options.ref_genome_file'
49 --interval '$input_options.interval_file' 48 --interval '$input_options.interval_file'
50 --targets "`pwd`/${target_file.element_identifier}.gz" 49 --targets "`pwd`/${target_file.element_identifier}.gz"
51 #else 50 #else
52 --infile1 '$input_options.infile1' 51 --infile1 '$input_options.infile1'
53 #end if 52 #end if
54 --infile2 '$input_options.infile2' 53 --infile2 '$input_options.infile2'
55 #if $save != 'save_no_fit' 54 #if $save != 'save_no_fit'
56 --outfile_result "`pwd`/tmp_outfile_result" 55 --outfile_result '$outfile_result'
57 #end if 56 #end if
58 #if $save == 'save_estimator' 57 #if $save == 'save_estimator'
59 --outfile_object '$outfile_object' 58 --outfile_object '$outfile_object'
60 #end if 59 #end if
61 #if $save == 'save_no_fit' 60 #if $save == 'save_no_fit'
62 --outfile_object '$outfile_object_no_fit' 61 --outfile_object '$outfile_object_no_fit'
63 #end if 62 #end if
64 #if $search_schemes.is_deep_learning == 'booltrue' and $save == 'save_estimator' and $outer_split.split_mode == 'nested_cv' 63 #if $search_schemes.is_deep_learning == 'booltrue' and $save == 'save_estimator' and $outer_split.split_mode == 'nested_cv'
65 --outfile_weights '$outfile_weights' 64 --outfile_weights '$outfile_weights'
66 #end if 65 #end if
67 #if $search_schemes.options.cv_selector.selected_cv in ['GroupKFold', 'GroupShuffleSplit', 'LeaveOneGroupOut', 'LeavePGroupsOut'] 66 #if $search_schemes.options.cv_selector.selected_cv in ['GroupKFold', 'GroupShuffleSplit', 'LeaveOneGroupOut', 'LeavePGroupsOut']
68 --groups '$search_schemes.options.cv_selector.groups_selector.infile_g' 67 --groups '$search_schemes.options.cv_selector.groups_selector.infile_g'
69 #end if 68 #end if
70 #if $save != 'save_no_fit' 69 ]]>
71 >'$outfile_result' && cp '$outfile_result' "`pwd`/../tool_stdout"
72 && cp "`pwd`/tmp_outfile_result" '$outfile_result';
73 #end if
74
75 ]]>
76 </command> 70 </command>
77 <configfiles> 71 <configfiles>
78 <inputs name="inputs" /> 72 <inputs name="inputs" />
79 </configfiles> 73 </configfiles>
80 <inputs> 74 <inputs>