0
|
1 <tool id="fetch_interval" name="Fetch Interval" version="1.0.0">
|
|
2 <description> Creates Interval files used to parallelize certain Galaxy Tools </description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="1.0.0">fetch_interval</requirement>
|
|
5 <requirement type="set_environment">FETCH_REPOSITORY_DIR</requirement>
|
|
6 </requirements>
|
|
7 <command>
|
|
8 <![CDATA[
|
|
9
|
|
10 mkdir outputs;
|
|
11 #if $output_option.output_option_selector == "collection":
|
|
12 python \$FETCH_REPOSITORY_DIR/fetch_interval.py --mode by_rname --input $input --order $order --output output.txt --chromosome --group_according_to_largest_chromosome --prefixes_to_ignore GL NC MT;
|
|
13
|
|
14 #else:
|
|
15 python \$FETCH_REPOSITORY_DIR/fetch_interval.py --mode by_rname --input $input --output $order --chromosome --prefixes_to_ignore GL NC MT;
|
|
16 cat $order > ./outputs/samp1.bed;
|
|
17
|
|
18 #end if
|
|
19
|
|
20 ]]>
|
|
21 </command>
|
|
22 <inputs>
|
|
23 <conditional name="output_option">
|
|
24 <param type="select" name="output_option_selector" label="How to Output?">
|
|
25 <option value="collection">Collection</option>
|
|
26 <option value="file">Single File</option>
|
|
27 </param>
|
|
28 </conditional>
|
|
29 <param type="data" format="bam" name="input" label="BAM Alignment File" help="Information is pulled from the header, ensure consistent across BAMs"/>
|
|
30 </inputs>
|
|
31 <outputs>
|
|
32 <collection name="list_output" type="list" description="Interval Files">
|
|
33 <discover_datasets pattern="__name_and_ext__" directory="outputs"/>
|
|
34 </collection>
|
|
35 <data format="txt" name="order"/>
|
|
36 </outputs>
|
|
37 </tool>
|