annotate bam2fastx.xml @ 0:61a6b93ee6e1 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
author iuc
date Tue, 12 Mar 2024 15:42:13 +0000
parents
children 7f7f2ee03430
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
1 <tool id="bam2fastx" name="PacBio bam2fastx" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.01">
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
2 <description>PacBio BAM to Fastx</description>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
3 <macros>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
4 <token name="@TOOL_VERSION@">3.1.1</token>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
5 <token name="@VERSION_SUFFIX@">0</token>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
6 </macros>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
7 <requirements>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
8 <requirement type="package" version="@TOOL_VERSION@">pbtk</requirement>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
9 </requirements>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
10 <command><![CDATA[
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
11 mkdir -p output_files/ &&
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
12 ln -s '$input_bam' input.bam &&
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
13 pbindex input.bam &&
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
14 #if $output_format == "fasta_gz":
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
15 bam2fasta -o output
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
16 #elif $output_format == "fastq_gz":
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
17 bam2fastq -o output
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
18 #end if
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
19 input.bam
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
20 --num-threads "\${GALAXY_SLOTS:-1}" &&
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
21 #if $output_format == "fasta":
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
22 mv output.fasta.gz '$output_fasta_gz'
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
23 #elif $output_format == "fastq":
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
24 mv output.fastq.gz '$output_fastq_gz'
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
25 #end if
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
26 ]]></command>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
27 <inputs>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
28 <param name="input_bam" type="data" format="unsorted.bam" label="PacBio Bam file "/>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
29 <param name="output_format" type="select" label="Output Format" help="Output a fasta.gz or fastq.gz">
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
30 <option value="fastq_gz">fastq.gz</option>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
31 <option value="fasta_gz">fasta.gz</option>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
32 </param>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
33 </inputs>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
34 <outputs>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
35 <data name="output_fasta_gz" format="fasta.gz" label="${tool.name} on ${on_string}: Fasta">
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
36 <filter>output_format == "fasta"</filter>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
37 </data>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
38 <data name="output_fastq_gz" format="fastqsanger.gz" label="${tool.name} on ${on_string}: Fastq">
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
39 <filter>output_format == "fastq"</filter>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
40 </data>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
41 </outputs>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
42 <tests>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
43 <test expect_num_outputs="1">
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
44 <param name="input_bam" ftype="unsorted.bam" value="sample.bam"/>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
45 <param name="output_format" value="fastq_gz" />
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
46 <output name="output_fastq_gz">
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
47 <assert_contents>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
48 <has_size min="9000" />
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
49 </assert_contents>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
50 </output>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
51 </test>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
52 <test expect_num_outputs="1" >
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
53 <param name="input_bam" ftype="bam" value="sample.bam"/>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
54 <param name="output_format" value="fasta_gz" />
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
55 <output name="output_fasta_gz" >
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
56 <assert_contents>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
57 <has_size min="9000" />
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
58 </assert_contents>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
59 </output>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
60 </test>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
61 </tests>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
62 <help><![CDATA[
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
63 Convert a PacBio BAM file to Fastq or Fasta file.
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
64 ]]></help>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
65 <citations>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
66 <citation type="bibtex">
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
67 @misc{githubpbtk,
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
68 author = {},
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
69 year = {2024},
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
70 title = {pbtk},
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
71 publisher = {GitHub},
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
72 journal = {GitHub repository},
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
73 url = {https://github.com/PacificBiosciences/pbtk},
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
74 }
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
75 </citation>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
76 </citations>
61a6b93ee6e1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pbtk commit cd34bba7aafb92ea993d4ef17a3669957de7c537
iuc
parents:
diff changeset
77 </tool>