Mercurial > repos > devteam > bowtie2
diff bowtie2_wrapper.xml @ 5:42bb952b4e3c draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bowtie2 commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
author | devteam |
---|---|
date | Tue, 21 Jul 2015 13:01:59 -0400 |
parents | 1fc845afa3ac |
children | e23b0cdeeba6 |
line wrap: on
line diff
--- a/bowtie2_wrapper.xml Tue Jul 21 13:00:51 2015 -0400 +++ b/bowtie2_wrapper.xml Tue Jul 21 13:01:59 2015 -0400 @@ -1,6 +1,9 @@ -<tool id="bowtie2" name="Bowtie2" version="0.5"> +<tool id="bowtie2" name="Bowtie2" version="0.6"> <!-- Wrapper compatible with Bowtie version 2.2.4 --> <description>- map reads against reference genome</description> + <macros> + <import>read_group_macros.xml</import> + </macros> <version_command>bowtie2 --version</version_command> <requirements> <requirement type="package" version="2.2.4">bowtie2</requirement> @@ -70,12 +73,30 @@ #end if #end if - ## Readgroups - #if str( $read_group.read_group_selector ) == "yes": - --rg-id "${read_group.rgid}" - --rg "SM:${read_group.rgsm}" - --rg "LB:${read_group.rglb}" - --rg "PL:${read_group.rgpl}" + ## Read group information. + @define_read_group_helpers@ + #if str( $library.type ) == "single": + #set $rg_auto_name = $read_group_name_default($library.input_1) + #elif str( $library.type ) == "paired": + #set $rg_auto_name = $read_group_name_default($library.input_1, $library.input_2) + #else + #set $rg_auto_name = $read_group_name_default($library.input_1) + #end if + @set_use_rg_var@ + @set_read_group_vars@ + #if $use_rg + $format_read_group("", $rg_id, '"', arg='--rg-id ') + $format_read_group("SM:", $rg_sm, '"', arg='--rg ') + $format_read_group("PL:", $rg_pl, '"', arg='--rg ') + $format_read_group("LB:", $rg_lb, '"', arg='--rg ') + $format_read_group("CN:", $rg_cn, '"', arg='--rg ') + $format_read_group("DS:", $rg_ds, '"', arg='--rg ') + $format_read_group("DT:", $rg_dt, '"', arg='--rg ') + $format_read_group("FO:", $rg_fo, '"', arg='--rg ') + $format_read_group("KS:", $rg_ks, '"', arg='--rg ') + $format_read_group("PG:", $rg_pg, '"', arg='--rg ') + $format_read_group("PI:", $rg_pi, '"', arg='--rg ') + $format_read_group("PU:", $rg_pu, '"', arg='--rg ') #end if ## Analysis type @@ -257,20 +278,7 @@ </conditional> <!-- read group settings --> - <conditional name="read_group"> - <param name="read_group_selector" type="select" label="Specify the read group for this file?" help="Specifying readgroup information can greatly simplify your downstream analyses by allowing combining multiple datasets. See help below for more details"> - <option value="yes">Yes</option> - <option value="no" selected="True">No</option> - </param> - <when value="yes"> - <param name="rgid" type="text" size="25" label="Read group identifier (ID). Each @RG line must have a unique ID. The value of ID is used in the RG tags of alignment records. Must be unique among all read groups in header section." help="--rg-id; Required if RG specified. Read group IDs may be modified when merging SAM files in order to handle collisions." /> - <param name="rglb" type="text" size="25" label="Library name (LB)" help="--rg; Required if RG specified" /> - <param name="rgpl" type="text" size="25" label="Platform/technology used to produce the reads (PL)" help="--rg; Required if RG specified. Valid values : CAPILLARY, LS454, ILLUMINA, SOLID, HELICOS, IONTORRENT and PACBIO" /> - <param name="rgsm" type="text" size="25" label="Sample (SM)" help="--rg; Required if RG specified. Use pool name where a pool is being sequenced" /> - </when> - <when value="no" /> - </conditional> - + <expand macro="read_group_conditional" /> <conditional name="analysis_type"> <param name="analysis_type_selector" type="select" label="Select analysis mode"> <option value="simple">1: Default setting only</option> @@ -479,6 +487,22 @@ <param name="own_file" value="bowtie2-ref.fasta" /> <output name="output" file="bowtie2-test1.bam" ftype="bam" lines_diff="2"/> </test> + <test> + <!-- basic test on single paired default run --> + <param name="type" value="paired"/> + <param name="selection" value="no"/> + <param name="paired_options_selector" value="no"/> + <param name="unaligned_file" value="false"/> + <param name="analysis_type_selector" value="simple"/> + <param name="rg_selector" value="set"/> + <param name="ID" value="rg1"/> + <param name="PL" value="CAPILLARY"/> + <param name="source" value="history" /> + <param name="input_1" value="bowtie2-fq1.fq" ftype="fastqsanger"/> + <param name="input_2" value="bowtie2-fq2.fq" ftype="fastqsanger"/> + <param name="own_file" value="bowtie2-ref.fasta" /> + <output name="output" file="bowtie2-test2.bam" ftype="bam" lines_diff="2"/> + </test> </tests> <help>