Mercurial > repos > jbrayet > samtools_1_2_docker
changeset 8:bb21f59022f8 draft
Uploaded
author | jbrayet |
---|---|
date | Wed, 25 Nov 2015 03:23:11 -0500 |
parents | 2f69634a480e |
children | 96f453b29673 |
files | samtools_reheader.xml |
diffstat | 1 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samtools_reheader.xml Wed Nov 25 03:23:11 2015 -0500 @@ -0,0 +1,32 @@ +<tool id="samtools_reheader" name="Reheader" version="2.0"> + <description>copy SAM/BAM header between datasets</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="requirements"></expand> + <expand macro="stdio"></expand> + <expand macro="version_command"></expand> + <command><![CDATA[samtools reheader "${input_header}" "${input_file}" > "${output}"]]></command> + <inputs> + <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."/> + <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."/> + </inputs> + <outputs> + <data format="bam" name="output" label="${tool.name} on ${on_string}" /> + </outputs> + <tests> + <test> + <param name="input_header" ftype="bam" value="reheader_input_header.bam"/> + <param name="input_file" ftype="bam" value="reheader_input_file.bam"/> + <output name="output" ftype="bam" file="reheader_out.bam"/> + </test> + </tests> + <help> +**What it does** + +Copies header from *source* dataset into *target* dataset using ``samtools reheader`` command. + + </help> + <expand macro="citations"></expand> +</tool> +