# HG changeset patch # User greg # Date 1515774270 18000 # Node ID a80b765352437b417c7625ee19ff0c9a56a398c1 # Parent 0ba72d5ca209c5c378f41e4229e2d602d11a711d Uploaded diff -r 0ba72d5ca209 -r a80b76535243 ideas.xml --- a/ideas.xml Thu Jan 11 10:32:59 2018 -0500 +++ b/ideas.xml Fri Jan 12 11:24:30 2018 -0500 @@ -14,10 +14,11 @@ #set tmp_dir = "tmp" #set prep_input_config = "prep_input_config.txt" #set prep_output_config = "prep_output_config.txt" +#set specify_genomic_window = $specify_genomic_window_cond.specify_genomic_window +#set perform_training = $perform_training_cond.perform_training ############################################## ## Create the config file and prepare the data ############################################## -#set specify_genomic_window = $specify_genomic_window_cond.specify_genomic_window #if str($output_heatmaps) == "yes": mkdir '$output_pdf_dir' && #end if @@ -82,99 +83,94 @@ #end if #end for #for chrom, tup in $window_positions_by_chroms.items(): - && ideas - '$prep_output_config' - '$specify_genomic_window_cond.bed_input' - $hp - -inv $tup[0] $tup[1] + && Rscript '$__tool_directory__/ideas.R' + #if str($perform_training) == "yes": + --training_iterations $perform_training_cond.training_iterations + --training_windows $perform_training_cond.training_windows + #end if + --prep_output_config '$prep_output_config' + --windows_bed '$specify_genomic_window_cond.bed_input' + --hp $hp + --window_start $tup[0] + --window_end $tup[1] #if str($log2) != "0.0": - -log2 $log2 + --log2 $log2 #end if #if str($max_states) != "0.0": - -G $max_states + --max_states $max_states #end if #if str($initial_states) != "0": - -C $initial_states + --initial_states $initial_states #end if #if str($max_position_classes) != "0": - -P $max_position_classes + --max_position_classes $max_position_classes #end if #if str($max_cell_type_clusters) != "0": - -K $max_cell_type_clusters + --max_cell_type_clusters $max_cell_type_clusters #end if #if str($prior_concentration) != "0.0": - -A $prior_concentration + --prior_concentration $prior_concentration #end if - -sample $burnin_num $mcmc_num + --burnin_num $burnin_num + --mcmc_num $mcmc_num #if str($minerr) != "0.0": - -minerr $minerr + --minerr $minerr #end if #if str($maxerr) != "0.0": - -maxerr $maxerr + --maxerr $maxerr #end if - -rseed $rseed - -thread \${GALAXY_SLOTS:-4} - -o '$project_name.$chrom' + --rseed $rseed + --thread \${GALAXY_SLOTS:-4} + --project_name '$project_name.$chrom' + --save_ideas_log $save_ideas_log #if str($save_ideas_log) == "yes": - &>>'$output_log'; - if [[ $? -ne 0 ]]; then - exit 1; - fi - #else: - &>>ideas_log.txt; - if [[ $? -ne 0 ]]; then - cp ideas_log.txt '$output_txt_dir' - exit 1; - fi + --output_log '$output_log' #end if #end for #else: ############################################## ## Not using a genomic window bed file. ############################################## - && ideas - '$prep_output_config' - $tmp_dir/*.bed - $hp + && Rscript '$__tool_directory__/ideas.R' + #if str($perform_training) == "yes": + --training_iterations $perform_training_cond.training_iterations + --training_windows $perform_training_cond.training_windows + #end if + --prep_output_config '$prep_output_config' + --windows_bed $tmp_dir/*.bed + --hp $hp #if str($log2) != "0.0": - -log2 $log2 + --log2 $log2 #end if #if str($max_states) != "0.0": - -G $max_states + --max_states $max_states #end if #if str($initial_states) != "0": - -C $initial_states + --initial_states $initial_states #end if #if str($max_position_classes) != "0": - -P $max_position_classes + --max_position_classes $max_position_classes #end if #if str($max_cell_type_clusters) != "0": - -K $max_cell_type_clusters + --max_cell_type_clusters $max_cell_type_clusters #end if #if str($prior_concentration) != "0.0": - -A $prior_concentration + --prior_concentration $prior_concentration #end if - -sample $burnin_num $mcmc_num + --burnin_num $burnin_num + --mcmc_num $mcmc_num #if str($minerr) != "0.0": - -minerr $minerr + --minerr $minerr #end if #if str($maxerr) != "0.0": - -maxerr $maxerr + --maxerr $maxerr #end if - -rseed $rseed - -thread \${GALAXY_SLOTS:-4} - -o '$project_name' + --rseed $rseed + --thread \${GALAXY_SLOTS:-4} + --project_name '$project_name' + --save_ideas_log $save_ideas_log #if str($save_ideas_log) == "yes": - &>'$output_log'; - if [[ $? -ne 0 ]]; then - exit 1; - fi - #else: - &>ideas_log.txt; - if [[ $? -ne 0 ]]; then - cp ideas_log.txt '$output_txt_dir' - exit 1; - fi + --output_log '$output_log' #end if #end if && mv ./*.cluster '$output_txt_dir' @@ -214,6 +210,17 @@ #end if]]> + + + + + + + + + + + @@ -247,7 +254,7 @@ - + @@ -272,14 +279,14 @@ - + - - + + @@ -291,8 +298,8 @@ - - + +