comparison bamhash.xml @ 0:63f6f42d112b draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/bamhash commit 7aa0b566d492b1830c0bd2e54ddf4a26be95f76d
author bgruening
date Thu, 17 Sep 2015 08:00:35 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:63f6f42d112b
1 <tool id="bamhash" name="BamHash" version="1.1">
2 <description>Hash BAM and FASTQ files to verify data integrity</description>
3 <requirements>
4 <requirement type="package" version="1.1">bamhash</requirement>
5 </requirements>
6 <stdio>
7 <exit_code range="1:" />
8 <exit_code range=":-1" />
9 <regex match="Error:" />
10 <regex match="Exception:" />
11 </stdio>
12 <version_command>bamhash_checksum_fastq --version</version_command>
13 <command><![CDATA[
14 #if $tool.tool_choice=="bam":
15 #for $counter, $file in enumerate($tool.input_bam):
16 ln -s "${file}" "${counter}.bam" ## 1.bam ... 2.bam
17 &&
18 #end for
19 bamhash_checksum_bam
20 $tool.noQuality_bam
21 $tool.noPaired_bam
22 #for $counter, $filename in enumerate($tool.input_bam):
23 "${counter}.bam"
24 #end for
25 #elif $tool.tool_choice=="fastq":
26 #for $counter, $file in enumerate($tool.input_fastq):
27 ln -s "${file}" "${counter}.fastq" ## 1.fastq ... 2.fastq
28 &&
29 #end for
30 bamhash_checksum_fastq
31 $tool.noQuality_fastq
32 $tool.noPaired_fastq
33 #for $counter, $filename in enumerate($tool.input_fastq):
34 "${counter}.fastq"
35 #end for
36 #elif $tool.tool_choice=="fasta":
37 #for $counter, $file in enumerate($tool.input_fasta):
38 ln -s "${file}" "${counter}.fasta" ## 1.fasta ... 2.fasta
39 &&
40 #end for
41 bamhash_checksum_fasta
42 #for $counter, $filename in enumerate($tool.input_fasta):
43 "${counter}.fasta"
44 #end for
45 #end if
46 $readnames
47 > output.txt
48 ]]></command>
49 <inputs>
50 <conditional name="tool">
51 <param name="tool_choice" type="select" label="Choose file type:"
52 help="">
53 <option value="bam">BAM file(s)</option>
54 <option value="fastq">FASTQ file(s)</option>
55 <option value="fasta">FASTA file(s)</option>
56 </param>
57 <when value="bam">
58 <param name="input_bam" multiple="True" type="data" format="bam" label="Input file in BAM format"/>
59 <param name="noQuality_bam" type="boolean" checked="false" truevalue="--no-quality"
60 falsevalue=""
61 label="Ignore read quality?"
62 help="Do not use read quality as part of checksum. (--no-quality)"/>
63 <param name="noPaired_bam" type="boolean" checked="false" truevalue="--no-paired"
64 falsevalue=""
65 label="Bam files were not generated with paired-end reads?"
66 help="(--no-paired)" />
67 </when>
68 <when value="fasta">
69 <param name="input_fasta" multiple="True" type="data" format="fasta" label="Input file in FASTA format"/>
70 </when>
71 <when value="fastq">
72 <param name="input_fastq" multiple="True" type="data" format="fastq" label="Input file in FASTQ format"/>
73 <param name="noQuality_fastq" type="boolean" checked="false" truevalue="--no-quality"
74 falsevalue=""
75 label="Ignore read quality?"
76 help="Do not use read quality as part of checksum. (--no-quality)"/>
77 <param name="noPaired_fastq" type="boolean" checked="false" truevalue="--no-paired"
78 falsevalue=""
79 label="List of fastq files are not paired-end reads?"
80 help="(--no-paired)" />
81 </when>
82 </conditional>
83 <param name="readnames" type="boolean" checked="false" truevalue="--no-readnames"
84 falsevalue=""
85 label="Ignore readnames?"
86 help="Do not use read names as part of checksum. (--no-readnames)"/>
87
88 </inputs>
89 <outputs>
90 <data name="output" format="txt" from_work_dir="./output.txt"
91 label="${tool.name} on ${on_string}">
92 </data>
93 </outputs>
94 <tests>
95 <test>
96 <param name="input_bam" value="Example.bam" ftype="bam"/>
97 <param name="tool_choice" value="bam"/>
98 <output name="output" file="output1_bam.txt" ftype="txt"/>
99 </test>
100 <test>
101 <param name="input_fasta" value="UnAligSeq24606.fasta" ftype="fasta"/>
102 <param name="tool_choice" value="fasta"/>
103 <param name="readnames" value="--no-readnames"/>
104 <output name="output" file="output2_fasta.txt" ftype="txt"/>
105 </test>
106 <test>
107 <param name="input_fastq" value="1_mismatch.fastq,2_mismatch.fastq" ftype="fastq"/>
108 <param name="tool_choice" value="fastq"/>
109 <param name="noQuality" value="--no-quality"/>
110 <output name="output" file="output3_fastq.txt" ftype="txt"/>
111 </test>
112 <test>
113 <param name="input_fastq" value="1_mismatch.fastq,2_mismatch.fastq" ftype="fastq"/>
114 <param name="tool_choice" value="fastq"/>
115 <output name="output" file="output4_fastq.txt" ftype="txt"/>
116 </test>
117 </tests>
118 <help><![CDATA[
119
120 **WHAT IT DOES**
121
122 Hash BAM and FASTQ files to verify data integrity
123
124 For each pair of reads in a BAM or FASTQ file we compute a hash value composed of the readname,
125 whether it is first or last in pair, sequence and quality value. All the hash values are summed
126 up so the result is independent of the ordering within the files. The result can be compared to
127 verify that the pair of FASTQ files contain the same read information as the aligned BAM file.
128
129 -----
130
131 **BAM**
132
133 processes a number of BAM files. BAM files are assumed to contain paired end reads.
134 If you run with --no-paired it treats all reads as single end and displays a warning if any read is marked as "second in pair" in the BAM file.
135
136 -----
137
138 **FASTA**
139
140 processes a number of FASTA files. All FASTA files are assumed to be single end reads with no quality information.
141 To compare to a BAM file, run bamhash_checksum_bam --no-paired --no-quality
142
143 -----
144
145
146 **FASTQ**
147
148 processes a number of FASTQ files. FASTQ files are assumed to contain paired end reads,
149 such that the first two files contain the first pair of reads, etc. If any of the read names in the two pairs don't match the program exits with failure.
150
151
152 -----
153
154
155 **BamHash** is a Free and Open Source Software, see more details on the BamHash github_ Website.
156
157 .. _github: https://github.com/DecodeGenetics/BamHash
158
159 ]]></help>
160 <citations>
161 </citations>
162 </tool>