# HG changeset patch # User greg # Date 1516649719 18000 # Node ID f060a0fbd4fe528381f0e8e0f2fd8d2d83b19b15 Uploaded diff -r 000000000000 -r f060a0fbd4fe ideas_preprocessor.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ideas_preprocessor.xml Mon Jan 22 14:35:19 2018 -0500 @@ -0,0 +1,195 @@ + + + + deeptools + r-data.table + r-optparse + samtools + ucsc-bigwigaverageoverbed + + ideas_preprocessor_log.txt; +if [[ $? -ne 0 ]]; then + cp ideas_preprocessor_log.txt '$output'; + 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_dir/*.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 +#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} ${i.filename} ${i.ext} + #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} ${input_items.input.filename} ${input_items.input.ext} + #end for +#end if]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +**What it does** + +----- + +**Required options** + + + + 10.1093/nar/gkw278 + +