Mercurial > repos > greg > ideas_preprocessor
comparison ideas_preprocessor.xml @ 8:860b59cae5df draft
Uploaded
| author | greg |
|---|---|
| date | Wed, 24 Jan 2018 10:16:04 -0500 |
| parents | 6fe65d1379a8 |
| children | 26eb979cf8d9 |
comparison
equal
deleted
inserted
replaced
| 7:92bb33490bb4 | 8:860b59cae5df |
|---|---|
| 9 </requirements> | 9 </requirements> |
| 10 <command detect_errors="exit_code"><![CDATA[ | 10 <command detect_errors="exit_code"><![CDATA[ |
| 11 #set tmp_dir = "tmp" | 11 #set tmp_dir = "tmp" |
| 12 #set ideaspre_input_config = "ideaspre_input_config.txt" | 12 #set ideaspre_input_config = "ideaspre_input_config.txt" |
| 13 #set ideas_input_config = "IDEAS_input_config.txt" | 13 #set ideas_input_config = "IDEAS_input_config.txt" |
| 14 #set specify_chrom_window = $specify_chrom_window_cond.specify_chrom_window | 14 #set specify_genomic_window = $specify_genomic_window_cond.specify_genomic_window |
| 15 mkdir $tmp_dir && | 15 mkdir $tmp_dir && |
| 16 mkdir $output.files_path && | 16 mkdir $output.files_path && |
| 17 #if str($specify_chrom_window) == "yes": | 17 #if str($specify_genomic_window) == "yes": |
| 18 ############################################## | 18 ############################################## |
| 19 ## Using a genomic window bed file, so categorize | 19 ## Using a genomic window bed file, so categorize |
| 20 ## the window positions by chromosome to enable | 20 ## the window positions by chromosome to enable |
| 21 ## the IDEAS -inv option. | 21 ## the IDEAS -inv option. |
| 22 ############################################## | 22 ############################################## |
| 28 ############################################## | 28 ############################################## |
| 29 cp '$gen_ideaspre_input_config' $ideaspre_input_config && | 29 cp '$gen_ideaspre_input_config' $ideaspre_input_config && |
| 30 sort $ideaspre_input_config -o $ideaspre_input_config && | 30 sort $ideaspre_input_config -o $ideaspre_input_config && |
| 31 Rscript '$__tool_directory__/ideas_preprocessor.R' | 31 Rscript '$__tool_directory__/ideas_preprocessor.R' |
| 32 --ideaspre_input_config '$ideaspre_input_config' | 32 --ideaspre_input_config '$ideaspre_input_config' |
| 33 #if str($specify_chrom_window) == "yes": | 33 #if str($specify_genomic_window) == "yes": |
| 34 --chrom_bed_input '$specify_chrom_window_cond.chrom_bed_input' | 34 --ideas_input_config '$ideas_input_config' |
| 35 --chromosome_windows '$chromosome_windows' | 35 --chromosome_windows '$chromosome_windows' |
| 36 --ideas_input_config '$ideas_input_config' | 36 #end if |
| 37 #if str($specify_genomic_window) == "yes": | |
| 38 --bed_input '$specify_genomic_window_cond.bed_input' | |
| 37 #else: | 39 #else: |
| 38 --chrom_len_file '$chromInfo' | 40 --chrom_len_file '$chromInfo' |
| 39 --window_size $specify_chrom_window_cond.window_size | 41 --window_size $specify_genomic_window_cond.window_size |
| 40 #set restrict_chromosomes = $specify_chrom_window_cond.restrict_chromosomes_cond.restrict_chromosomes | 42 #set restrict_chromosomes = $specify_genomic_window_cond.restrict_chromosomes_cond.restrict_chromosomes |
| 41 #if str($restrict_chromosomes) == "yes": | 43 #if str($restrict_chromosomes) == "yes": |
| 42 #set chroms = [] | 44 #set chroms = [] |
| 43 #set chrom_repeat = $specify_chrom_window_cond.restrict_chromosomes_cond.chrom_repeat | 45 #set chrom_repeat = $specify_genomic_window_cond.restrict_chromosomes_cond.chrom_repeat |
| 44 #for $i in $chrom_repeat.chrom | 46 #for $i in $chrom_repeat.chrom |
| 45 $chroms.append($i) | 47 $chroms.append($i) |
| 46 #end for | 48 #end for |
| 47 --restrict_to_chroms ",".join(chroms) | 49 --restrict_to_chroms ",".join(chroms) |
| 48 #end if | 50 #end if |
| 82 #else: | 84 #else: |
| 83 #for $input_items in $cell_type_epigenetic_factor_cond.input_repeat: | 85 #for $input_items in $cell_type_epigenetic_factor_cond.input_repeat: |
| 84 ${input_items.cell_type_name} ${input_items.epigenetic_factor_name} ${input_items.input} ${file_name} ${input_items.input.ext} | 86 ${input_items.cell_type_name} ${input_items.epigenetic_factor_name} ${input_items.input} ${file_name} ${input_items.input.ext} |
| 85 #end for | 87 #end for |
| 86 #end if]]></configfile> | 88 #end if]]></configfile> |
| 87 <configfile name="gen_chromosome_windows"><