Mercurial > repos > bgruening > hicup_mapper
annotate hicup_mapper.xml @ 1:7f6fa513960e draft
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b4d9ad47b45abb117a059214e1f7b29d084b4ca3
author | bgruening |
---|---|
date | Sat, 19 Aug 2017 07:39:47 -0400 |
parents | 9ba09ebeb5aa |
children | 320a2d826a00 |
rev | line source |
---|---|
0
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
1 <tool id="hicup_mapper" name="Hicup Mapper" version="0.1.0"> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
2 <description>aligns paired reads independently to a reference genome and retains reads where both partners align.</description> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
3 <macros> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
4 <import>hicup_macros.xml</import> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
5 </macros> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
6 <expand macro="requirements_hicup" /> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
7 <expand macro="stdio" /> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
8 |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
9 <command><![CDATA[ |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
10 BOWTIE_PATH_BASH="\$(which bowtie2)" && |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
11 #set index_path = '' |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
12 #if str($reference_genome.source) == "history": |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
13 bowtie2-build "$reference_genome.own_file" genome && |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
14 ln -s "$reference_genome.own_file" genome.fa && |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
15 #set index_path = 'genome' |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
16 #else: |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
17 #set index_path = $reference_genome.index.fields.path |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
18 #end if |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
19 hicup_mapper |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
20 --index '$index_path' |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
21 --bowtie2 \$BOWTIE_PATH_BASH |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
22 |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
23 $input_first_sequence $input_second_sequence |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
24 |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
25 ## output handling |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
26 && mv hicup_mapper_summary* hicup_mapper_summary.txt |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
27 && mv *.pair.sam result.pair.sam |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
28 && trunc_result_1=\$(echo '$input_first_sequence' | rev | cut -d'/' -f1 | rev) |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
29 && trunc_result_2=\$(echo '$input_second_sequence' | rev | cut -d'/' -f1 | rev) |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
30 && mv \$trunc_result_1*.mapper_barchart.svg dataset1.mapper_barchart.svg |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
31 && mv \$trunc_result_2*.mapper_barchart.svg dataset2.mapper_barchart.svg |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
32 && echo \$trunc_result_1.mapper_barchart.svg |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
33 && echo \$trunc_result_2.mapper_barchart.svg |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
34 ]]></command> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
35 <inputs> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
36 <expand macro="input_files" /> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
37 <expand macro="reference_genome_macro" /> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
38 </inputs> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
39 <outputs> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
40 <expand macro="mapper_output" /> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
41 </outputs> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
42 <tests> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
43 <test> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
44 <param name="input_first_sequence" value="dataset1.trunc.fastq" ftype="fastq"/> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
45 <param name="input_second_sequence" value="dataset2.trunc.fastq" ftype="fastq"/> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
46 |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
47 <conditional name="reference_genome"> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
48 <param name="source" value="history" /> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
49 <param name="own_file" value="chr1.fa"/> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
50 </conditional> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
51 <output name="hicup_mapper_summary" file="hicup_mapper_summary.txt" lines_diff="4"/> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
52 <output name="result_pair" file="result.pair.sam" lines_diff="8"/> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
53 <output name="dataset1_mapper_barchart" file="dataset1.mapper_barchart.svg" ftype="svg" lines_diff="1000"/> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
54 <output name="dataset2_mapper_barchart" file="dataset2.mapper_barchart.svg" ftype="svg" lines_diff="1000"/> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
55 |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
56 </test> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
57 </tests> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
58 <help><![CDATA[ |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
59 |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
60 For help please consult the documentation of HiCUP: http://www.bioinformatics.babraham.ac.uk/projects/hicup/overview/ |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
61 |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
62 To get more information about the mapper visit: http://www.bioinformatics.babraham.ac.uk/projects/hicup/scripts_description/#Mapper |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
63 ]]></help> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
64 <expand macro="citation_hicup" /> |
9ba09ebeb5aa
planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit b77cbc104261f8aa1524922f41c2a9a23052f5da
bgruening
parents:
diff
changeset
|
65 </tool> |