# HG changeset patch # User devteam # Date 1415303483 18000 # Node ID 6bfb657c8fe158f12c8c7dad2e5ca2a54180a37c # Parent 19fa4f8a60887ea0e0e33146fc13619d1d7c96cd Uploaded diff -r 19fa4f8a6088 -r 6bfb657c8fe1 bwa.xml --- a/bwa.xml Mon Sep 29 16:41:05 2014 -0400 +++ b/bwa.xml Thu Nov 06 14:51:23 2014 -0500 @@ -1,5 +1,6 @@ - + + bwa samtools @@ -50,7 +51,7 @@ ####### Fastq paired - #if str( $input_type.input_type_selector ) == "paired": + #if str( $input_type.input_type_selector ) == "paired" or str( $input_type.input_type_selector ) == "paired_collection": bwa aln -t "\${GALAXY_SLOTS:-1}" @@ -58,7 +59,13 @@ @command_options@ "${reference_fasta_filename}" - "${input_type.fastq_input1}" + + #if str( $input_type.input_type_selector ) == "paired_collection": + "${input_type.fastq_input1.forward}" + #else + "${input_type.fastq_input1}" + #end if + > first.sai && bwa aln @@ -67,7 +74,13 @@ @command_options@ "${reference_fasta_filename}" - "${input_type.fastq_input2}" + + #if str( $input_type.input_type_selector ) == "paired_collection": + "${input_type.fastq_input1.reverse}" + #else + "${input_type.fastq_input2}" + #end if + > second.sai && bwa sampe @@ -83,7 +96,15 @@ @read_group_options@ - "${reference_fasta_filename}" first.sai second.sai "${input_type.fastq_input1}" "${input_type.fastq_input2}" + #if str( $input_type.input_type_selector ) == "paired_collection": + + "${reference_fasta_filename}" first.sai second.sai "${input_type.fastq_input1.forward}" "${input_type.fastq_input1.reverse}" + + #else: + + "${reference_fasta_filename}" first.sai second.sai "${input_type.fastq_input1}" "${input_type.fastq_input2}" + + #end if ####### Fastq single @@ -178,11 +199,15 @@ #end if - | samtools view -Sb - > $bam_output + | samtools view -Sb - > temporary_bam_file.bam && + + samtools sort -f temporary_bam_file.bam ${bam_output} + + bwa_macros.xml #if str( $analysis_type.analysis_type_selector ) == "illumina": @@ -226,7 +251,10 @@ - + + + + @@ -238,8 +266,11 @@ - - + + + + + @@ -266,12 +297,13 @@ - + + @@ -284,12 +316,23 @@ - + + + + + + + + + + + + - + @@ -304,11 +347,12 @@ + - + @@ -316,7 +360,10 @@ - + + + + @@ -465,32 +512,12 @@ -n INT maximum hits to output for paired reads [3] -r STR read group header line [null] ------- -.. class:: warningmark - -**An important note on Read Groups** - -One of the recommended best practices in NGS analysis is adding read group information to BAM files. You can do thid directly in BWA interface using the -**Specify readgroup information?** widget. If you are not familiar with readgroups you shold know that this is effectively a way to tag reads with an additional ID. -This allows you to combine BAM files from, for example, multiple BWA runs into a single dataset. This significantly simplifies downstream processing as -instead of dealing with multiple datasets you only have to handle only one. This is possible because the readgroup information allows you to identify -data from different experiments even if they are combined in one file. Many downstream analysis tools such as varinat callers (e.g., FreeBayes or Naive Varinat Caller -present in Galaxy) are aware of readgtroups and will automatically generate calls for each individual sample even if they are combined within a single file. +@dataset_collections@ ------ - -.. class:: infomark - -**More info** +@RG@ -To obtain more information about BWA and ask questions use these resources: - - 1. https://biostar.usegalaxy.org/ - 2. https://www.biostars.org/ - 3. https://github.com/lh3/bwa - 4. http://bio-bwa.sourceforge.net/ - +@info@