Skip to content

Commit 2e2f688

Browse files
authored
Merge pull request #171 from CEGRcode/galaxy-wrappers-corepipeline
Complete draft set of galaxy wrappers including ones used for the core pipeline
2 parents 31734cb + b6171a0 commit 2e2f688

40 files changed

Lines changed: 924 additions & 882 deletions

.DS_Store

6 KB
Binary file not shown.

galaxy/.DS_Store

8 KB
Binary file not shown.

galaxy/wrapper/.DS_Store

10 KB
Binary file not shown.

galaxy/wrapper/README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,27 @@ sudo git clone https://github.com/CEGRcode/scriptmanager-galaxy_tools.git
4545
2. Tell galaxy where to look for scriptmanager tools by adding the following section to `/mnt/mountpoint/srv/galaxy/config/local_tool_conf.xml` file.
4646

4747
```
48-
<section id="ScriptManager" name="ScriptManager" >
49-
50-
<tool file="scriptmanager-galaxy_tools/script_manager_heatmap.xml" />
51-
<tool file="scriptmanager-galaxy_tools/script_manager_tag_pileup.xml" />
52-
<tool file="scriptmanager-galaxy_tools/scriptmanager_heatmap_add_label.xml" />
53-
<tool file="scriptmanager-galaxy_tools/script_manager_4color.xml" />
54-
55-
</section>
48+
<section id="scriptmanager-owlang" name="ScriptManager" >
49+
<tool file="scriptmanager-owlang/scriptmanager_bam-correlation.xml" />
50+
<tool file="scriptmanager-owlang/scriptmanager_bam-to-bed.xml" />
51+
<tool file="scriptmanager-owlang/scriptmanager_bam-to-bedgraph.xml" />
52+
<tool file="scriptmanager-owlang/scriptmanager_bam-to-gff.xml" />
53+
<tool file="scriptmanager-owlang/scriptmanager_bam-to-scidx.xml" />
54+
<tool file="scriptmanager-owlang/scriptmanager_bed-to-gff.xml" />
55+
<tool file="scriptmanager-owlang/scriptmanager_expand-bed.xml" />
56+
<tool file="scriptmanager-owlang/scriptmanager_expand-gff.xml" />
57+
<tool file="scriptmanager-owlang/scriptmanager_four-color.xml" />
58+
<tool file="scriptmanager-owlang/scriptmanager_gff-to-bed.xml" />
59+
<tool file="scriptmanager-owlang/scriptmanager_heatmap.xml" />
60+
<tool file="scriptmanager-owlang/scriptmanager_label-heatmap.xml" />
61+
<tool file="scriptmanager-owlang/scriptmanager_merge-heatmap.xml" />
62+
<tool file="scriptmanager-owlang/scriptmanager_pe-stat.xml" />
63+
<tool file="scriptmanager-owlang/scriptmanager_se-stat.xml" />
64+
<tool file="scriptmanager-owlang/scriptmanager_shift-coord.xml" />
65+
<tool file="scriptmanager-owlang/scriptmanager_sort-bed.xml" />
66+
<tool file="scriptmanager-owlang/scriptmanager_sort-gff.xml" />
67+
<tool file="scriptmanager-owlang/scriptmanager_tag-pileup.xml" />
68+
</section>
5669
```
5770

5871
3. Restart Galaxy
@@ -66,3 +79,4 @@ sudo git clone https://github.com/CEGRcode/scriptmanager-galaxy_tools.git
6679
6780
6881
Thank you to Ali Nematbakhsh(https://github.com/AliNemat) and Audrey Sackey(https://github.com/Adjekai) for their initial work in writing these wrappers.
82+

galaxy/wrapper/macros.xml

Lines changed: 0 additions & 116 deletions
This file was deleted.

galaxy/wrapper/scriptmanager_aggregate-data.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<tool id="scriptmanager_aggregate-data" name="ScriptManager: Aggregate Data"
22
version="0.1.0+galaxy0" python_template_version="3.5" profile="21.05">
33
<description> Aggregate Data </description>
4+
<macros>
5+
<import>scriptmanager_macros.xml</import>
6+
</macros>
47
<requirements>
5-
<requirement type="package" version="11.0.11">openjdk</requirement>
8+
<expand macro="requirement_openjdk" />
69
</requirements>
710
<command detect_errors="exit_code"><![CDATA[
8-
java -jar $__tool_directory__/ScriptManager-v0.14.jar read-analysis aggregate-data
11+
java -jar $__tool_directory__/@JAR_FILENAME@ read-analysis aggregate-data
912
1013
#if str($output_file_name.bool) == "Yes" :
1114
-o "$output_file_name.directory"

galaxy/wrapper/scriptmanager_bam-correlation.xml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<tool id="bamcorrelation_test" name="ScriptManager: BAM Correlation" version="0.1.0+galaxy0" python_template_version="3.5" profile="21.05">
1+
<tool id="scriptmanager_bam-correlation" name="ScriptManager: BAM Correlation" version="0.1.0" profile="22.01" >
22
<description> Genome-Genome correlations for replicate comparisons given multiple sorted and indexed (BAI) BAM files. </description>
3-
<requirements>
4-
<requirement type="package" version="11.0.11">openjdk</requirement>
5-
<requirement type="package" version="1.9">samtools</requirement>
6-
</requirements>
73
<macros>
8-
<import>macros.xml</import>
4+
<import>scriptmanager_macros.xml</import>
95
</macros>
6+
<requirements>
7+
<expand macro="requirement_openjdk" />
8+
<expand macro="requirement_samtools" />
9+
</requirements>
1010
<command detect_errors="exit_code"><![CDATA[
1111
ln -s '$BAM' bamfile.bam &&
1212
ln -s '$output1' output1.tab &&
@@ -18,9 +18,10 @@
1818
#end if
1919
#end if
2020
21-
java -jar $__tool_directory__/ScriptManager-v0.14-dev.jar bam-statistics bam-correlation
21+
java -jar $__tool_directory__/@JAR_FILENAME@ bam-statistics bam-correlation
22+
23+
2224
23-
2425
#if str($read) == "read_1" :
2526
-1
2627
#else if str($read) == "read_2" :
@@ -33,14 +34,14 @@
3334
3435
-b "$bin_size"
3536
--cpu "$cpu"
36-
37-
'$output1'
38-
37+
38+
'$output1'
39+
3940
-t "$tag_shift"
40-
41+
4142
bamfile.bam
4243
43-
44+
4445
]]></command>
4546
<inputs>
4647
<param type="data" name="BAM" format="bam" multiple="True" label="Input BAM files"/>
@@ -61,7 +62,8 @@
6162
</outputs>
6263
<help>
6364
**What it does**
64-
Genome-Genome correlations for replicate comparisons given multiple sorted and indexed (BAI) BAM files.
6565

66+
Genome-Genome correlations for replicate comparisons given multiple sorted and indexed (BAI) BAM files.
6667
</help>
67-
</tool>
68+
<expand macro="citations_pearc" />
69+
</tool>
Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
1-
<tool id="scriptmanager_bam-to-bed" name="ScriptManager: Convert BAM to BED" version="0.1.0+galaxy0" python_template_version="3.5" profile="21.05">
1+
<tool id="scriptmanager_bam-to-bed" name="ScriptManager: Convert BAM to BED" version="0.1.0" profile="22.01" >
22
<description> Convert BAM file to BED file </description>
3+
<macros>
4+
<import>scriptmanager_macros.xml</import>
5+
</macros>
36
<requirements>
4-
<requirement type="package" version="11.0.11">openjdk</requirement>
7+
<expand macro="requirement_openjdk" />
8+
<expand macro="requirement_samtools" />
59
</requirements>
610
<command detect_errors="exit_code"><![CDATA[
7-
ln -s '$BAM' bamfile.bam &&
8-
ln -s '$output1' output1.bed &&
9-
#if $BAM.is_of_type('bam'):
10-
#if str( $BAM.metadata.bam_index ) != "None":
11-
ln -s '${BAM.metadata.bam_index}' bamfile.bam.bai &&
11+
ln -s '$input' bamfile.bam &&
12+
#if $input.is_of_type('bam'):
13+
#if str( $input.metadata.bam_index ) != "None":
14+
ln -s '${input.metadata.bam_index}' bamfile.bam.bai &&
1215
#else:
1316
samtools index bamfile.bam bamfile.bai &&
1417
#end if
1518
#end if
1619
17-
java -jar $__tool_directory__/ScriptManager-v0.14.jar bam-format-converter bam-to-bed
20+
java -jar $__tool_directory__/@JAR_FILENAME@ bam-format-converter bam-to-bed
1821
22+
#if str($gzip) == "Yes" :
23+
--gzip
24+
#end if
1925
#if str($read) == "read_1" :
2026
-1
2127
#else if str($read) == "read_2" :
@@ -27,62 +33,55 @@
2733
#else if str($read) == "fragment" :
2834
-f
2935
#end if
30-
31-
#if str($mate_pair) == "Yes" :
36+
#if str($require_paired_end.mate_pair) == "Yes" :
3237
-p
38+
#if str($require_paired_end.filter_by_min.filter_min) == "Yes" :
39+
-n "$require_paired_end.filter_by_min.min_insert"
40+
#end if
41+
#if str($require_paired_end.filter_by_max.filter_max) == "Yes" :
42+
-x "$require_paired_end.filter_by_max.max_insert"
43+
#end if
3344
#end if
34-
35-
#if str($filter_by_min.filter_min) == "Yes" :
36-
-n "$filter_by_min.min_insert"
37-
#end if
38-
39-
-o output1.bed
40-
41-
#if str($filter_by_max.filter_max) == "Yes" :
42-
-x "$filter_by_max.max_insert"
43-
#end if
44-
45+
-o '$output'
4546
bamfile.bam
4647
]]></command>
4748
<inputs>
48-
<param type="data" name="BAM" format="bam" label="Input BAM file"/>
49-
49+
<param type="data" name="input" format="bam" label="Input BAM file"/>
5050
<param type="select" name="read" label="Select which read to output">
5151
<option value="read_1" selected="True" >Read 1</option>
5252
<option value="read_2" >Read 2</option>
5353
<option value="combined" >Combined </option>
5454
<option value="midpoint" >Midpoint (Require PE) </option>
5555
<option value="fragment" >Fragment (Require PE) </option>
5656
</param>
57-
58-
<param type="boolean" name="mate_pair" truevalue="Yes" falsevalue="No" label="Require proper mate-pair" />
59-
60-
<conditional name="filter_by_min">
61-
<param type="boolean" name="filter_min" truevalue="Yes" falsevalue="No" label="Filter by min insert size (bp)" >
62-
</param>
57+
<conditional name="require_paired_end">
58+
<param type="boolean" name="mate_pair" truevalue="Yes" falsevalue="No" label="Require proper mate-pair" />
6359
<when value="Yes">
64-
<param type="integer" name="min_insert" value="0" label="Min insert size (bp)" />
65-
</when>
66-
<when value="No">
60+
<conditional name="filter_by_min">
61+
<param type="boolean" name="filter_min" truevalue="Yes" falsevalue="No" label="Filter by min insert size (bp)" />
62+
<when value="Yes">
63+
<param type="integer" name="min_insert" value="0" label="Min insert size (bp)" />
64+
</when>
65+
<when value="No" />
66+
</conditional>
67+
<conditional name="filter_by_max">
68+
<param type="boolean" name="filter_max" truevalue="Yes" falsevalue="No" label="Filter by max insert size (bp)" />
69+
<when value="Yes">
70+
<param type="integer" name="max_insert" value="1000" label="Max insert size (bp)" />
71+
</when>
72+
<when value="No" />
73+
</conditional>
6774
</when>
6875
</conditional>
69-
70-
<conditional name="filter_by_max">
71-
<param type="boolean" name="filter_max" truevalue="Yes" falsevalue="No" label="Filter by max insert size (bp)" >
72-
</param>
73-
<when value="Yes">
74-
<param type="integer" name="max_insert" value="1000" label="Max insert size (bp)" />
75-
</when>
76-
<when value="No">
77-
</when>
78-
</conditional>
79-
76+
<param name="gzip" type="boolean" checked="true" truevalue="Yes" falsevalue="No" label="Gzip output" />
8077
</inputs>
8178
<outputs>
82-
<data name="output1" format="bed" label="${tool.name} (composite) on ${on_string}"/>
79+
<data name="output" format="bed" label="${tool.name} (composite) on ${on_string}"/>
8380
</outputs>
8481
<help>
85-
**What it does**
86-
Convert BAM file to BED file.
82+
**What it does**
83+
84+
Convert BAM file to BED file.
8785
</help>
88-
</tool>
86+
<expand macro="citations_pearc" />
87+
</tool>

0 commit comments

Comments
 (0)