Mercurial > repos > crs4 > seal_galaxy
diff seal-galaxy-cc1b1911/seal/generate_sam_header.xml @ 0:244073d9abc1 draft default tip
Uploaded
author | crs4 |
---|---|
date | Wed, 15 Oct 2014 09:41:10 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/seal-galaxy-cc1b1911/seal/generate_sam_header.xml Wed Oct 15 09:41:10 2014 -0400 @@ -0,0 +1,100 @@ + +<!-- + Copyright (C) 2011-2014 CRS4. + + This file is part of Seal. + + Seal is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation, either version 3 of the License, or (at your option) + any later version. + + Seal is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License along + with Seal. If not, see <http://www.gnu.org/licenses/>. +--> + + +<tool id="generate_sam_header" name="Generate SAM header" version="13986416aa79561bd0102cb7ccc1e0668ac9f0a4"> + <description>Generate a SAM header for the given reference</description> + <requirements> + <requirement type="package" version="13986416aa79561bd0102cb7ccc1e0668ac9f0a4">seal</requirement> + <requirement type="package" version="0.11">pydoop</requirement> + <requirement type="package" version="0.1.3">hadoop-galaxy</requirement> + </requirements> + + <command interpreter="python"> + #set $ref_path = 'file://' + $reference.fields.path if $reference.fields.path.startswith('/') else $reference.fields.path + generate_sam_header.py + --header-only + --annotations ${ref_path}.ann + --sort-order $sort_order + + #if $compute_md5: + --md5 + #end if + + #if $assembly: + --sq-assembly "$assembly" + #end if + + #if $rg.set_rg == 'true': + --rg_cn "$rg.rg_cn" + --rg_dt "$rg.rg_dt" + --rg_id "$rg.rg_id" + --rg_lb "$rg.rg_lb" + --rg_pl "$rg.rg_pl" + --rg_pu "$rg.rg_pu" + --rg_sm "$rg.rg_sm" + #end if + + ${output} + </command> + + <inputs> + <param name="reference" type="select" label="Reference (should be the same one used for alignment)"> + <options from_data_table="bwa_0510_indexes" /> + </param> + + <param name="sort_order" type="select" default="coordinate"> + <option value="coordinate">Coordinate</option> + <option value="read_id">Read ID</option> + <option value="unsorted">Unsorted</option> + </param> + + <param name="compute_md5" type="boolean" checked="false" label="Whether to compute the MD5 checksums of the reference contigs" /> + <param name="assembly" type="text" label="Genome assembly identifier (@SQ AS:XXX tag)" /> + + <conditional name="rg"> + <param name="set_rg" type="boolean" checked="false" label="Set a Read Group line" truevalue="true" falsevalue="false" /> + + <when value="true"> + <param name="rg_cn" type="text" label="Read group center" /> + <param name="rg_dt" type="text" label="Read group date" /> + <param name="rg_id" type="text" label="Read group id" /> + <param name="rg_lb" type="text" label="Read group library" /> + <param name="rg_pl" type="text" label="Read group platform" /> + <param name="rg_pu" type="text" label="Read group platform unit" /> + <param name="rg_sm" type="text" label="Read group sample" /> + </when> + </conditional> + </inputs> + + <outputs> + <data name="output" format="sam" /> + </outputs> + + <stdio> + <exit_code range="1:" level="fatal" /> + </stdio> + + <help> +ReadSort is a Hadoop-based program for sorting reads by alignment position. +For the full help see the `manual <http://biodoop-seal.sourceforge.net/read_sort_index.html>`_. + </help> + +</tool>