|
| 1 | +<tool id="scriptmanager_cross-corr" name="ScriptManager: Cross Correlation" |
| 2 | + version="0.1.0+galaxy0" python_template_version="3.5" profile="21.05"> |
| 3 | + <description> BAM Cross Correlation </description> |
| 4 | + <requirements> |
| 5 | + <requirement type="package" version="11.0.11">openjdk</requirement> |
| 6 | + </requirements> |
| 7 | + <command detect_errors="exit_code"><![CDATA[ |
| 8 | + ln -s "$input" "temp_input.bam" && |
| 9 | + samtools index "temp_input.bam" && |
| 10 | +
|
| 11 | + |
| 12 | + java -jar $__tool_directory__/ScriptManager-v0.14-bugfix153.jar bam-statistics cross-corr |
| 13 | + |
| 14 | + #if str($output_file_name.bool) == "Yes" : |
| 15 | + -o "$output_file_name.file_name" |
| 16 | + #end if |
| 17 | +
|
| 18 | + #if str($cpu) != "1" : |
| 19 | + -t "$cpu" |
| 20 | + #end if |
| 21 | + |
| 22 | + #if str($correlation_strategy.bool) == "Yes" : |
| 23 | + -r |
| 24 | + -w "$correlation_strategy.window_size" |
| 25 | + -i "$correlation_strategy.iterations" |
| 26 | + #else if str($correlation_strategy.bool) == "No" : |
| 27 | + -g |
| 28 | + #end if |
| 29 | +
|
| 30 | + "temp_input.bam" |
| 31 | + ]]></command> |
| 32 | + <inputs> |
| 33 | + <param name="input" type="data" format="bam" label="Input BAM file"/> |
| 34 | + |
| 35 | + <conditional name="output_file_name"> |
| 36 | + <param type="boolean" name="bool" truevalue="Yes" falsevalue="No" label="Output File Name" > |
| 37 | + </param> |
| 38 | + <when value="Yes"> |
| 39 | + <param type="text" name="file_name" value="" label="File Name" /> |
| 40 | + </when> |
| 41 | + <when value="No"> |
| 42 | + </when> |
| 43 | + </conditional> |
| 44 | + |
| 45 | + <param type="integer" name="cpu" value="1" label="CPU's to Use" /> |
| 46 | + |
| 47 | + <conditional name="correlation_strategy"> |
| 48 | + <param type="boolean" name="bool" truevalue="Yes" falsevalue="No" label="Use Full Genome Correlation Method as Opposed to Random Sampling Correlation"> |
| 49 | + </param> |
| 50 | + <when value="Yes"> |
| 51 | + <param type="integer" name="window_size" value="50000" label="Window Size (bp)" /> |
| 52 | + <param type="integer" name="iterations" value="10" label="Number of Samplings" /> |
| 53 | + </when> |
| 54 | + <when value="No"> |
| 55 | + </when> |
| 56 | + </conditional> |
| 57 | + |
| 58 | + </inputs> |
| 59 | + |
| 60 | + <outputs> |
| 61 | + <data name="output" format="text" label="${tool.name} on ${on_string}"/> |
| 62 | + </outputs> |
| 63 | + <help> |
| 64 | + |
| 65 | + **What it does** |
| 66 | + Calculate optimal tag shift based on ArchTEx implementation |
| 67 | + </help> |
| 68 | +</tool> |
0 commit comments