# HG changeset patch # User greg # Date 1516890644 18000 # Node ID 7b0c6c6cb82bcc0e51675d6c9ae3b8281ca01c52 # Parent 5c5e2f7b34c8bdfc81db0f5532b024595d6d7de1 Uploaded diff -r 5c5e2f7b34c8 -r 7b0c6c6cb82b ideas.xml --- a/ideas.xml Fri Jan 19 13:43:30 2018 -0500 +++ b/ideas.xml Thu Jan 25 09:30:44 2018 -0500 @@ -13,114 +13,60 @@ #set output_pdf_dir = "output_pdf_dir" #set output_txt_dir = "output_txt_dir" #set output_training_dir = "output_training_dir" -#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 windows_positions_by_chroms_config = "windows_positions_by_chroms_config.txt" #set perform_training = $perform_training_cond.perform_training -############################################## -## Create the config file and prepare the data -############################################## -#if str($output_heatmaps) == "yes": - mkdir '$output_pdf_dir' && -#end if -#if str($perform_training) == "yes": - #set output_dir = $output_training_dir - mkdir '$output_training_dir' && -#else: - #set output_dir = $output_txt_dir - mkdir '$output_txt_dir' && -#end if -cp '$gen_prep_input_config' $prep_input_config && -sort $prep_input_config -o $prep_input_config && -prepMat -$prep_input_config -#if str($specify_genomic_window) == "yes": - -bed '$specify_genomic_window_cond.bed_input' -#else: - -gsz '$chromInfo' - -wsz $specify_genomic_window_cond.window_size - #set restrict_chromosomes = $specify_genomic_window_cond.restrict_chromosomes_cond.restrict_chromosomes - #if str($restrict_chromosomes) == "yes": - #set chroms = [] - #set chrom_repeat = $specify_genomic_window_cond.restrict_chromosomes_cond.chrom_repeat - #for $i in $chrom_repeat.chrom - $chroms.append($i) - #end for - -chr ",".join(chroms) - #end if +&& Rscript '$__tool_directory__/ideas.R' +--burnin_num $burnin_num +#if str($bychr) == "true": + --bychr true #end if -$bychr --c $reads_per_bp -#if str($blacklist_input) not in ["None", ""]: - -exclude '$blacklist_input' +--chrom_bed_input $input.metadata.chrom_bed_input +--chromosome_windows $input.metadata.chromosome_windows +#if str($hp) == "true": + --hp true #end if -$norm -&>prepmat_log.txt; -if [[ $? -ne 0 ]]; then - cp prepmat_log.txt '$output_dir'; - exit 1; -fi -############################################## -## Coerce the prepMat config output to the -## format expected by IDEAS. -############################################## -&& cut -d' ' $prep_input_config -f1,2 > file1.txt -&& ls tmp/*.bed.gz > file2.txt -&& paste <(cat file1.txt) <(cat file2.txt) -d' ' > $prep_output_config -#if str($specify_genomic_window) == "yes": - ############################################## - ## Using a genomic window bed file, so categorize - ## the window positions by chromosome to enable - ## the IDEAS -inv option. - ############################################## - && cp '$gen_windows_positions_by_chroms_config' $windows_positions_by_chroms_config +#if str($initial_states) != "0": + --initial_states $initial_states #end if -&& Rscript '$__tool_directory__/ideas.R' -#if str($specify_genomic_window) == "yes": - --windows_bed '$specify_genomic_window_cond.bed_input' - --windows_config $windows_positions_by_chroms_config -#end if -#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' ---hp $hp +--input $input +--input_files_path $input.extra_files_path +--ideas_input_config $input.metadata.ideas_input_config #if str($log2) != "0.0": --log2 $log2 #end if +#if str($maxerr) != "0.0": + --maxerr $maxerr +#end if +#if str($max_cell_type_clusters) != "0": + --max_cell_type_clusters $max_cell_type_clusters +#end if +#if str($max_position_classes) != "0": + --max_position_classes $max_position_classes +#end if #if str($max_states) != "0.0": --max_states $max_states #end if -#if str($initial_states) != "0": - --initial_states $initial_states -#end if -#if str($max_position_classes) != "0": - --max_position_classes $max_position_classes -#end if -#if str($max_cell_type_clusters) != "0": - --max_cell_type_clusters $max_cell_type_clusters +--mcmc_num $mcmc_num +#if str($minerr) != "0.0": + --minerr $minerr #end if #if str($prior_concentration) != "0.0": --prior_concentration $prior_concentration #end if ---burnin_num $burnin_num ---mcmc_num $mcmc_num -#if str($minerr) != "0.0": - --minerr $minerr -#end if -#if str($maxerr) != "0.0": - --maxerr $maxerr -#end if ---rseed $rseed ---thread \${GALAXY_SLOTS:-4} --project_name '$project_name' #if str($save_ideas_log) == "yes": --save_ideas_log $save_ideas_log --output_log '$output_log' #end if +#if str($standardize_datasets) == "true": + --standardize_datasets true +#end if +--rseed $rseed +--thread \${GALAXY_SLOTS:-4} +#if str($perform_training) == "yes": + --training_iterations $perform_training_cond.training_iterations + --training_windows $perform_training_cond.training_windows +#end if #if str($perform_training) == "yes": && mv ./*.para0 '$output_dir' && mv ./*.profile0 '$output_dir' @@ -140,52 +86,6 @@ #end if #end if ]]> - - = 0 or str($file_name_with_ext).find("ftp") >= 0: - #set file_name_with_ext = $file_name_with_ext.split('/')[-1] - #end if - #assert str($file_name_with_ext).find("-") >= 0, "The selected input '%s' is invalid because it does not include the '-' character which is required when setting cell type and epigenetic factor names by extracting them from the input file names." % $file_name_with_ext - #set file_name = $file_name_with_ext.split(".")[0] - #if str($input_name_positions) == "cell_first": - #set cell_type_name = $file_name.split("-")[0] - #set epigenetic_factor_name = $file_name.split("-")[1] - #else: - #set cell_type_name = $file_name.split("-")[1] - #set epigenetic_factor_name = $file_name.split("-")[0] - #end if -${cell_type_name} ${epigenetic_factor_name} ${i} - #end for -#else: - #for $input_items in $cell_type_epigenetic_factor_cond.input_repeat: -${input_items.cell_type_name} ${input_items.epigenetic_factor_name} ${input_items.input} - #end for -#end if]]> - - @@ -198,71 +98,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -270,6 +115,7 @@ + @@ -303,11 +149,7 @@ - - - - - + @@ -320,27 +162,6 @@ - - - - - - - - - - - - - - - - - - - - - **What it does**