comparison arriba_draw_fusions.xml @ 0:e6f0f0da3b61 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/arriba commit c1d05da7c2c76feae94cbc640be7b010f31397d2-dirty"
author jjohnson
date Fri, 11 Feb 2022 19:08:17 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e6f0f0da3b61
1 <tool id="arriba_draw_fusions" name="Arriba Draw Fusions" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="3.5">
2 <description></description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <expand macro="version_command" />
8 <command detect_errors="exit_code"><![CDATA[
9 #if $alignments.extension == 'sam'
10 ln -sf '$genome.assembly' input.fa &&
11 samtools faidx input.fa &&
12 samtools view -b -@ \${GALAXY_SLOTS:-1} -t input.fa.fai '$alignments' |
13 samtools sort -O bam -@ \${GALAXY_SLOTS:-1} -T "\${TMPDIR:-.}" -o Aligned.sortedByCoord.out.bam &&
14 samtools index Aligned.sortedByCoord.out.bam &&
15 #else
16 ln -sf '${alignments}' 'Aligned.sortedByCoord.out.bam' &&
17 ln -sf '$alignments.metadata.bam_index' 'Aligned.sortedByCoord.out.bam.bai' &&
18 #end if
19 @DRAW_FUSIONS@
20 ]]></command>
21 <inputs>
22 <param argument="--fusions" type="data" format="tabular" label="Arriba fusions.tsv"/>
23 <param argument="--alignments" type="data" format="sam,bam" label="STAR Aligned.out.bam"/>
24 <expand macro="genome_source" assembly_optional="true"/>
25 <param name="protein_domains" argument="-p" type="data" format="gff3" optional="true" label="File containing protein domains"/>
26 <section name="visualization" expanded="true" title="Visualization Options">
27 <expand macro="visualization_options" />
28 </section>
29 </inputs>
30 <outputs>
31 <data name="fusions_pdf" format="pdf" label="${tool.name} on ${on_string}: fusions.pdf" from_work_dir="fusions.pdf">
32 <filter>visualization['do_viz'] == "yes"</filter>
33 </data>
34 </outputs>
35 <tests>
36 <!-- Test 1 - From exisitng BAM -->
37 <test>
38 <param name="fusions" ftype="tabular" value="fusions.tsv"/>
39 <param name="alignments" ftype="sam" value="Aligned.out.sam"/>
40 <conditional name="genome">
41 <param name="genome_source" value="history"/>
42 <param name="assembly" ftype="fasta" value="genome.fasta.gz"/>
43 <param name="annotation" ftype="gtf" value="genome.gtf.gz"/>
44 </conditional>
45 <param name="protein_domains" ftype="gff3" value="protein_domains.gff3"/>
46 <section name="visualization">
47 <param name="cytobands" ftype="tabular" value="cytobands.tsv"/>
48 </section>
49 <output name="fusions_pdf">
50 <assert_contents>
51 <has_size value="64000" delta="5000" />
52 </assert_contents>
53 </output>
54 </test>
55 </tests>
56 <help><![CDATA[
57 **Arriba Draw Fusions**
58
59 Arriba_Draw_Fusions_ (draw_fusions.R) renders publication-quality visualizations of the transcripts involved in predicted fusions. It generates a PDF file with one page for each predicted fusion. Each page depicts the fusion partners, their orientation, the retained exons in the fusion transcript, statistics about the number of supporting reads, and - if the column fusion_transcript has a value - an excerpt of the sequence around the breakpoint.
60
61
62 **INPUTS**
63
64 See: https://arriba.readthedocs.io/en/latest/command-line-options/#draw_fusionsr
65
66 - Fusions
67
68 File containing fusion predictions from Arriba_ (fusions.tsv) or STAR-Fusion (star-fusion.fusion_predictions.tsv or star-fusion.fusion_predictions.abridged.coding_effect.tsv).
69
70 - Annotation
71
72 Gene annotation in GTF format that was used by the STAR aligner.
73
74 - Alignments
75
76 BAM file containing normal alignments from STAR.
77
78 - Annotation
79
80 The gene annotation (parameter -g) is used for multiple purposes:
81
82 - Assembly (Optional)
83
84 Only required when alignments are not sorted bam format. The genonme assembly will be used by samtools to produce a sorted bam file.
85
86 - Protein domains (Optional)
87
88 GFF3 file containing the genomic coordinates of protein domains. Distributions of Arriba offer protein domain annotations for all supported assemblies in the database directory. When this file is given, a plot is generated, which shows the protein domains retained in the fusion transcript.
89
90 - Cytobands (Optional)
91
92 Coordinates of the Giemsa staining bands. This information is used to draw ideograms. If the argument is omitted, then no ideograms are rendered. The file must have the following columns: contig, start, end, name, giemsa. Recognized values for the Giemsa staining intensity are: gneg, gpos followed by a percentage, acen, stalk. Cytobands forahuman and mouse reference can be retrieved from the Arriba distribution with the **Arriba Get Filters** tool.
93
94
95 **OPTIONS**
96
97 See: https://arriba.readthedocs.io/en/latest/command-line-options/#draw_fusionsr
98
99
100 **OUTPUTS**
101
102 See: https://arriba.readthedocs.io/en/latest/visualization/
103
104 - fusions.pdf
105
106 A PDF file with one page for each predicted fusion. Each page depicts the fusion partners, their orientation, the retained exons in the fusion transcript, statistics about the number of supporting reads, and if the column fusion_transcript has a value an excerpt of the sequence around the breakpoint.
107
108 .. image:: draw-fusions-example.png
109 :width: 800
110 :height: 467
111
112
113
114
115 .. _Arriba_Draw_Fusions: https://arriba.readthedocs.io/en/latest/visualization/
116 .. _Arriba: https://arriba.readthedocs.io/en/latest/
117
118 ]]></help>
119 <expand macro="citations" />
120 </tool>