# HG changeset patch # User devteam # Date 1492031382 14400 # Node ID 937aa69e715f6a6a0f3012327638329143c72c0c # Parent 12450efac659d99c955de03973ed835383cfc43b planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bowtie2 commit 954b2052cb74a0bc88f65df37f429ff27c45ea8f diff -r 12450efac659 -r 937aa69e715f bowtie2_wrapper.xml --- a/bowtie2_wrapper.xml Mon Jan 09 04:31:00 2017 -0500 +++ b/bowtie2_wrapper.xml Wed Apr 12 17:09:42 2017 -0400 @@ -1,4 +1,4 @@ - + - map reads against reference genome read_group_macros.xml @@ -19,6 +19,66 @@ #set index_path = $reference_genome.index.fields.path #end if + ## Link in the input files, so bowtie2 can tell their type + + #set compressed="False" + #if str($library.type) == 'paired': + #if $library.input_1.is_of_type("fastq.gz", "fastqsanger.gz"): + #set read1 = "input_f.fastq.gz" + #set compressed = "GZ" + #else if $library.input_1.is_of_type("fastq.bz2", "fastqsanger.bz2"): + #set read1 = "input_f.fastq.bz2" + #set compressed = "BZ2" + #else: + #set read1 = "input_f.fastq" + #end if + ln -f -s '${library.input_1}' ${read1} && + + #if $library.input_2.is_of_type("fastq.gz", "fastqsanger.gz"): + #set read2 = "input_r.fastq.gz" + #set compressed = "GZ" + #else if $library.input_2.is_of_type("fastq.bz2", "fastqsanger.bz2"): + #set read2 = "input_r.fastq.bz2" + #set compressed = "BZ2" + #else: + #set read2 = "input_r.fastq" + #end if + ln -f -s '${library.input_2}' ${read2} && + #else if str($library.type) == 'paired_collection': + #if $library.input_1.forward.is_of_type("fastq.gz", "fastqsanger.gz"): + #set read1 = "input_f.fastq.gz" + #set compressed = "GZ" + #else if $library.input_1.forward.is_of_type("fastq.bz2", "fastqsanger.bz2"): + #set read1 = "input_f.fastq.bz2" + #set compressed = "BZ2" + #else: + #set read1 = "input_f.fastq" + #end if + ln -s '${library.input_1.forward}' ${read1} && + + #if $library.input_1.reverse.is_of_type("fastq.gz", "fastqsanger.gz"): + #set read2 = "input_r.fastq.gz" + #set compressed = "GZ" + #else if $library.input_1.reverse.is_of_type("fastq.bz2", "fastqsanger.bz2"): + #set read2 = "input_r.fastq.bz2" + #set compressed = "BZ2" + #else: + #set read2 = "input_r.fastq" + #end if + ln -s '${library.input_1.reverse}' ${read2} && + #else: + #if $library.input_1.is_of_type("fastq.gz", "fastqsanger.gz"): + #set read1 = "input_f.fastq.gz" + #set compressed = "GZ" + #else if $library.input_1.is_of_type("fastq.bz2", "fastqsanger.bz2"): + #set read1 = "input_f.fastq.bz2" + #set compressed = "BZ2" + #else: + #set read1 = "input_f.fastq" + #end if + ln -s '${library.input_1}' ${read1} && + #end if + ## execute bowtie2 bowtie2 @@ -31,16 +91,46 @@ ## Fastq inputs #if str( $library.type ) == "single": - -U '${library.input_1}' + -U '${read1}' #if str( $library.unaligned_file ) == "true": - --un '$output_unaligned_reads_l' + #if $compressed == "GZ": + --un-gz '${output_unaligned_reads_l}' + #else if $compressed == "BZ2": + --un-bz2 '${output_unaligned_reads_l}' + #else: + --un '${output_unaligned_reads_l}' + #end if #end if #if str( $library.aligned_file ) == "true": - --al '$output_aligned_reads_l' + #if $compressed == "GZ": + --al-gz '${output_aligned_reads_l}' + #else if $compressed == "BZ2": + --al-bz2 '${output_aligned_reads_l}' + #else: + --al '${output_aligned_reads_l}' + #end if #end if - #elif str( $library.type ) == "paired": - -1 '${library.input_1}' - -2 '${library.input_2}' + #else: + -1 '${read1}' + -2 '${read2}' + #if str( $library.unaligned_file ) == "true": + #if $compressed == "GZ": + --un-conc-gz '${output_unaligned_reads_l}' + #else if $compressed == "BZ2": + --un-conc-bz2 '${output_unaligned_reads_l}' + #else: + --un-conc '${output_unaligned_reads_l}' + #end if + #end if + #if str( $library.aligned_file ) == "true": + #if $compressed == "GZ": + --al-conc-gz '${output_aligned_reads_l}' + #else if $compressed == "BZ2": + --al-conc-bz2 '${output_aligned_reads_l}' + #else: + --al-conc '${output_aligned_reads_l}' + #end if + #end if #if str( $library.paired_options.paired_options_selector ) == "yes": -I "${library.paired_options.I}" -X "${library.paired_options.X}" @@ -51,29 +141,6 @@ ${library.paired_options.no_contain} ${library.paired_options.no_overlap} #end if - #if str( $library.unaligned_file ) == "true": - --un-conc $output_unaligned_reads_l - #end if - #if str( $library.aligned_file ) == "true": - --al-conc $output_aligned_reads_l - #end if - #else - ## prepare collection - -1 $library.input_1.forward - -2 $library.input_1.reverse - #if str( $library.paired_options.paired_options_selector ) == "yes": - -I "${library.paired_options.I}" - -X "${library.paired_options.X}" - ${library.paired_options.fr_rf_ff} - ${library.paired_options.no_mixed} - ${library.paired_options.no_discordant} - ${library.paired_options.dovetail} - ${library.paired_options.no_contain} - ${library.paired_options.no_overlap} - #end if - #if str( $library.unaligned_file ) == "true": - --un-conc '$output_unaligned_reads_l' - #end if #end if ## Read group information. @@ -209,15 +276,15 @@ - - - + + + - - - - + + + + @@ -243,9 +310,9 @@ - - - + + + @@ -622,6 +689,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +