Mercurial > repos > devteam > samtools_reheader
diff samtools_reheader.xml @ 0:c50efc142ad0 draft
Uploaded initial tool definition.
author | devteam |
---|---|
date | Fri, 17 Oct 2014 14:03:47 -0400 |
parents | |
children | 77a6694ebf7a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samtools_reheader.xml Fri Oct 17 14:03:47 2014 -0400 @@ -0,0 +1,35 @@ +<tool id="samtools_reheader" name="Replace header" version="1.0.0"> + <description>on a BAM or SAM file</description> + <requirements> + <requirement type="package" version="1.1">samtools</requirement> + </requirements> + <version_command>samtools --version | head -n 1 | awk '{ print $2 }'</version_command> + <command><![CDATA[samtools reheader "${input_header}" "${input_file}" > "${output}"]]></command> + <stdio> + <exit_code range="1:" level="fatal" description="Error" /> + </stdio> + <inputs> + <param name="input_header" type="data" format="sam" label="SAM file or header" /> + <param name="input_file" type="data" format="sam,bam" label="File to reheader" /> + </inputs> + <outputs> + <data format="bam" name="output" label="${tool.name} on ${on_string}" /> + </outputs> + <tests> + </tests> + <help> +**What it does** + +This tool runs the ``samtools reheader`` command in the SAMtools toolkit. + +Replace the header for a SAM or BAM file with a different header. + +**Citation** + +For the underlying tool, please cite `Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, Homer N, Marth G, Abecasis G, Durbin R; 1000 Genome Project Data Processing Subgroup. The Sequence Alignment/Map format and SAMtools. Bioinformatics. 2009 Aug 15;25(16):2078-9. <http://www.ncbi.nlm.nih.gov/pubmed/19505943>`_ + + +If you use this tool in Galaxy, please cite Blankenberg D, et al. *In preparation.* + </help> +</tool> +