annotate bam_to_psl.xml @ 0:b6794f4cb1c6 draft default tip

Uploaded
author greg
date Mon, 12 Dec 2022 14:42:58 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
1 <tool id="bam_to_psl" name="Convert BAM to PSL format" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
2 <description></description>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
3 <macros>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
4 <import>macros.xml</import>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
5 </macros>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
6 <expand macro="requirements"/>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
8 #if $input.ext == 'bam':
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
9 samtools view -o 'input.sam' -h '$input' &&
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
10 #else:
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
11 ln -s '$input' 'input.sam' &&
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
12 #end if
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
13 python '${__tool_directory__}/bam_to_psl.py'
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
14 --input_file 'input.sam'
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
15 --output_file '$output'
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
16 ]]></command>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
17 <inputs>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
18 <param name="input" type="data" format="bam,sam" label="BAM or SAM file"/>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
19 </inputs>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
20 <outputs>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
21 <data name="output" format="psl"/>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
22 </outputs>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
23 <tests>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
24 <test>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
25 <param name="input" value="input_1.sam" ftype="sam"/>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
26 <output name="output" value="output_1.psl" ftype="psl" compare="contains"/>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
27 </test>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
28 <test>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
29 <param name="input" value="input_2.bam" ftype="bam"/>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
30 <output name="output" value="output_2.psl" ftype="psl" compare="contains"/>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
31 </test>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
32 </tests>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
33 <help>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
34 **What it does**
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
35
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
36 Converts a BAM or SAM dataset to PSL format - https://genome.ucsc.edu/FAQ/FAQformat.html#format2.
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
37 </help>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
38 <expand macro="citations"/>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
39 </tool>
b6794f4cb1c6 Uploaded
greg
parents:
diff changeset
40