annotate hicup_mapper.xml @ 2:320a2d826a00 draft

planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit c546c919808a853d3e1556cb28bb4a5f7e1f9932
author bgruening
date Tue, 07 Nov 2017 02:48:35 -0500
parents 9ba09ebeb5aa
children 99dd0efa992b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
320a2d826a00 planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit c546c919808a853d3e1556cb28bb4a5f7e1f9932
bgruening
parents: 0
diff changeset
1 <tool id="hicup_mapper" name="Hicup Mapper" version="@VERSION@.0">
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" />
2
320a2d826a00 planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit c546c919808a853d3e1556cb28bb4a5f7e1f9932
bgruening
parents: 0
diff changeset
65 </tool>