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