comparison samtools_reheader.xml @ 6:747cd1b9ae98 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_reheader commit f667915d861dbf0a25cc8fd132cc956d82e73ee9"
author iuc
date Mon, 06 Jul 2020 18:13:42 +0000
parents 0b97d4e945ab
children 71db7f3a33b9
comparison
equal deleted inserted replaced
5:f4d18be9994a 6:747cd1b9ae98
1 <tool id="samtools_reheader" name="Reheader" version="2.0.1"> 1 <tool id="samtools_reheader" name="Reheader" version="2.0.1+galaxy1">
2 <description>copy SAM/BAM header between datasets</description> 2 <description>copy SAM/BAM header between datasets</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="requirements"/> 6 <expand macro="requirements"/>
8 <expand macro="version_command"/> 8 <expand macro="version_command"/>
9 <command><![CDATA[ 9 <command><![CDATA[
10 samtools reheader 10 samtools reheader
11 '${input_header}' 11 '${input_header}'
12 '${input_file}' 12 '${input_file}'
13 ${no_pg}
13 > '${output}' 14 > '${output}'
14 ]]></command> 15 ]]></command>
15 <inputs> 16 <inputs>
16 <param name="input_header" type="data" format="sam,bam" label="Select source dataset" help="Header from this dataset will be used to replace header in the target dataset. May be either SAM or BAM dataset."/> 17 <param name="input_header" type="data" format="sam,bam" label="Select source dataset" help="Header from this dataset will be used to replace header in the target dataset. May be either SAM or BAM dataset."/>
17 <param name="input_file" type="data" format="bam" label="Select target dataset" help="Header from the source dataset will be inserted here. Should be a BAM dataset."/> 18 <param name="input_file" type="data" format="bam" label="Select target dataset" help="Header from the source dataset will be inserted here. Should be a BAM dataset."/>
19 <param argument="--no-PG" name="no_pg" type="boolean" truevalue="--no-PG" falsevalue=""
20 label="Keep the new header unmodified?"
21 help="By default, samtools reheader will add itself to the chain of tools used to manipulate the target dataset, which will cause one or more @PG records to be inserted into the new header. If you want the output dataset to end up with the header of the source dataset exactly, you should activate this option." />
18 </inputs> 22 </inputs>
19 <outputs> 23 <outputs>
20 <data format="bam" name="output" label="${tool.name} on ${on_string}" /> 24 <data format="bam" name="output" label="${tool.name} on ${on_string}" />
21 </outputs> 25 </outputs>
22 <tests> 26 <tests>
23 <test> 27 <test>
24 <param name="input_header" ftype="bam" value="reheader_input_header.bam"/> 28 <param name="input_header" ftype="bam" value="reheader_input_header.bam"/>
25 <param name="input_file" ftype="bam" value="reheader_input_file.bam"/> 29 <param name="input_file" ftype="bam" value="reheader_input_file.bam"/>
26 <output name="output" ftype="bam" file="reheader_out.bam" lines_diff="1"/><!-- samtools adds reheader line --> 30 <output name="output" ftype="bam" file="reheader_out.bam" lines_diff="1"/><!-- samtools adds reheader line -->
27 </test> 31 </test>
32 <test>
33 <param name="input_header" ftype="bam" value="reheader_input_header.bam"/>
34 <param name="input_file" ftype="bam" value="reheader_input_file.bam"/>
35 <param name="no_pg" value="true"/>
36 <output name="output" ftype="bam" file="reheader_out.bam" />
37 </test>
28 </tests> 38 </tests>
29 <help> 39 <help>
30 **What it does** 40 **What it does**
31 41
32 Copies header from *source* dataset into *target* dataset using ``samtools reheader`` command. 42 Generates a new BAM dataset with the contents of *target* dataset, but the header of *source* dataset using the ``samtools reheader`` command.
33 </help> 43 </help>
34 <expand macro="citations"/> 44 <expand macro="citations"/>
35 </tool> 45 </tool>
36 46