annotate tophat_fusion_post.xml @ 2:3279e193b966 draft default tip

planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
author devteam
date Tue, 13 Oct 2015 12:33:55 -0400
parents 47e483967b48
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
devteam@galaxyproject.org
parents:
diff changeset
1 <tool id="tophat_fusion_post" name="Tophat Fusion Post" version="0.1">
devteam@galaxyproject.org
parents:
diff changeset
2 <description>post-processing to identify fusion genes</description>
devteam@galaxyproject.org
parents:
diff changeset
3 <version_command>tophat-fusion-post --version</version_command>
devteam@galaxyproject.org
parents:
diff changeset
4 <requirements>
2
3279e193b966 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
5 <requirement type="package" version="2.2.28">blast+</requirement>
3279e193b966 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
6 <requirement type="package" version="0.12.7">bowtie</requirement>
3279e193b966 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
7 <requirement type="package" version="2.0.9">tophat2</requirement>
0
devteam@galaxyproject.org
parents:
diff changeset
8 </requirements>
devteam@galaxyproject.org
parents:
diff changeset
9 <command>
devteam@galaxyproject.org
parents:
diff changeset
10 ## Set up tophat_out structure.
devteam@galaxyproject.org
parents:
diff changeset
11 mkdir tophat_out; ln -s $accepted_hits tophat_out/accepted_hits.bam; ln -s $fusions tophat_out/fusions.out;
devteam@galaxyproject.org
parents:
diff changeset
12
devteam@galaxyproject.org
parents:
diff changeset
13 ## Set up blast directory structure.
2
3279e193b966 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
14 #set blast_db_path = $__get_data_table_entry__('tophat_fusion_blastdb_indexes', 'dbkey', $accepted_hits.dbkey, 'path')
0
devteam@galaxyproject.org
parents:
diff changeset
15 ln -s ${blast_db_path}/ blast;
devteam@galaxyproject.org
parents:
diff changeset
16
devteam@galaxyproject.org
parents:
diff changeset
17 ## Set up additional files:
devteam@galaxyproject.org
parents:
diff changeset
18 ln -s ${blast_db_path}/refGene.txt .;
devteam@galaxyproject.org
parents:
diff changeset
19 ln -s ${blast_db_path}/ensGene.txt .;
devteam@galaxyproject.org
parents:
diff changeset
20 ln -s ${blast_db_path}/mcl .;
devteam@galaxyproject.org
parents:
diff changeset
21
devteam@galaxyproject.org
parents:
diff changeset
22 ## Run tophat-fusion-post
2
3279e193b966 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
23 tophat-fusion-post -p \${GALAXY_SLOTS:-4}
0
devteam@galaxyproject.org
parents:
diff changeset
24 --num-fusion-reads $num_fusion_reads --num-fusion-pairs $num_fusion_pairs --num-fusion-both $num_fusion_both --fusion-read-mismatches $fusion_read_mismatches --fusion-multireads $fusion_multireads
devteam@galaxyproject.org
parents:
diff changeset
25 #if str($is_human) == 'No':
devteam@galaxyproject.org
parents:
diff changeset
26 --non-human
devteam@galaxyproject.org
parents:
diff changeset
27 #end if
devteam@galaxyproject.org
parents:
diff changeset
28
2
3279e193b966 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
29 ## Bowtie indices.
3279e193b966 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
30 ${__get_data_table_entry__('bowtie_indexes', 'value', $accepted_hits.dbkey, 'path')}
0
devteam@galaxyproject.org
parents:
diff changeset
31 </command>
devteam@galaxyproject.org
parents:
diff changeset
32
devteam@galaxyproject.org
parents:
diff changeset
33 <inputs>
devteam@galaxyproject.org
parents:
diff changeset
34 <param format="bam" name="accepted_hits" type="data" label="BAM file of aligned RNA-Seq reads" help=""/>
devteam@galaxyproject.org
parents:
diff changeset
35 <param format="tabular" name="fusions" type="data" label="Tabular file of potential fusions" help=""/>
devteam@galaxyproject.org
parents:
diff changeset
36 <param name="num_fusion_reads" type="integer" value="3" label="Num Fusion Reads" help="Fusions with at least this many supporting reads will be reported."/>
devteam@galaxyproject.org
parents:
diff changeset
37 <param name="num_fusion_pairs" type="integer" value="2" label="Num Fusion Pairs" help="Fusions with at least this many supporting pairs will be reported."/>
devteam@galaxyproject.org
parents:
diff changeset
38 <param name="num_fusion_both" type="integer" value="0" label="Num Fusion Reads + Pairs" help="The sum of supporting reads and pairs is at least this number for a fusion to be reported."/>
devteam@galaxyproject.org
parents:
diff changeset
39 <param name="fusion_read_mismatches" type="integer" value="2" label="Fusion Read Mismatches" help="Reads support fusions if they map across fusion with at most this many mismatches."/>
devteam@galaxyproject.org
parents:
diff changeset
40 <param name="fusion_multireads" type="integer" value="2" label="Reads that map to more than this many places will be ignored." help=""/>
devteam@galaxyproject.org
parents:
diff changeset
41 <param name="is_human" type="select" label="Is your data from humans?">
devteam@galaxyproject.org
parents:
diff changeset
42 <option value="Yes" selected="True">Yes</option>
devteam@galaxyproject.org
parents:
diff changeset
43 <option value="No">No</option>
devteam@galaxyproject.org
parents:
diff changeset
44 </param>
devteam@galaxyproject.org
parents:
diff changeset
45 </inputs>
devteam@galaxyproject.org
parents:
diff changeset
46
devteam@galaxyproject.org
parents:
diff changeset
47 <stdio>
devteam@galaxyproject.org
parents:
diff changeset
48 <regex match=".*" source="both" level="log" description="tool progress"/>
devteam@galaxyproject.org
parents:
diff changeset
49 </stdio>
devteam@galaxyproject.org
parents:
diff changeset
50
devteam@galaxyproject.org
parents:
diff changeset
51 <outputs>
2
3279e193b966 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
52 <data format="tabular" name="results_txt" label="${tool.name} on ${on_string}: text results" from_work_dir="tophatfusion_out/result.txt"/>
0
devteam@galaxyproject.org
parents:
diff changeset
53 <data format="html" name="results_html" label="${tool.name} on ${on_string}: html results" from_work_dir="tophatfusion_out/result.html"/>
devteam@galaxyproject.org
parents:
diff changeset
54 </outputs>
2
3279e193b966 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
55
0
devteam@galaxyproject.org
parents:
diff changeset
56 </tool>