annotate bam2fastx.xml @ 1:df0fa70d83e5 draft default tip

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